Hello community, here is the log from the commit of package rubygem-test-unit for openSUSE:Factory checked in at 2017-12-20 10:40:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-test-unit (Old) and /work/SRC/openSUSE:Factory/.rubygem-test-unit.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-test-unit" Wed Dec 20 10:40:10 2017 rev:31 rq:558534 version:3.2.7 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-test-unit/rubygem-test-unit.changes 2017-09-22 21:34:30.231671797 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-test-unit.new/rubygem-test-unit.changes 2017-12-20 10:40:15.293291397 +0100 @@ -1,0 +2,7 @@ +Tue Dec 19 09:33:20 UTC 2017 - bgeu...@suse.com + +- Update to 3.2.7 + + No changelog found + +------------------------------------------------------------------- Old: ---- test-unit-3.2.6.gem New: ---- test-unit-3.2.7.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-test-unit.spec ++++++ --- /var/tmp/diff_new_pack.OBDvxy/_old 2017-12-20 10:40:16.549200347 +0100 +++ /var/tmp/diff_new_pack.OBDvxy/_new 2017-12-20 10:40:16.553200057 +0100 @@ -24,7 +24,7 @@ # Name: rubygem-test-unit -Version: 3.2.6 +Version: 3.2.7 Release: 0 %define mod_name test-unit %define mod_full_name %{mod_name}-%{version} ++++++ test-unit-3.2.6.gem -> test-unit-3.2.7.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2017-09-21 07:42:46.000000000 +0200 +++ new/README.md 2017-12-11 16:23:14.000000000 +0100 @@ -1,7 +1,7 @@ # test-unit -[![](https://badge.fury.io/rb/test-unit.png)](http://badge.fury.io/rb/test-unit) -[![](https://travis-ci.org/test-unit/test-unit.png?branch=master)](https://travis-ci.org/test-unit/test-unit) +[![](https://badge.fury.io/rb/test-unit.svg)](http://badge.fury.io/rb/test-unit) +[![](https://travis-ci.org/test-unit/test-unit.svg?branch=master)](https://travis-ci.org/test-unit/test-unit) * http://test-unit.github.io/ * https://github.com/test-unit/test-unit Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/doc/text/news.md new/doc/text/news.md --- old/doc/text/news.md 2017-09-21 07:42:46.000000000 +0200 +++ new/doc/text/news.md 2017-12-11 16:23:14.000000000 +0100 @@ -1,5 +1,34 @@ # News +## 3.2.7 - 2017-12-12 {#version-3-2-7} + +### Improvements + + * Added source code link to gemspec. + [GitHub#157][Patch by Grey Baker] + + * Changed to use SVG image for badges in README. + [GitHub#158][Patch by Olle Jonsson] + + * [UI][console]: Added `--reverse-output` option to output fault + details in reverse like Ruby 2.5. It's enabled by default only for + tty output. + +### Fixes + + * Fixed a typo. + [GitHub#156][Patch by masa kunikata] + + * [UI][console]: Fixed a bug that broken align in verbose mode. + +### Thanks + + * masa kunikata + + * Grey Baker + + * Olle Jonsson + ## 3.2.6 - 2017-09-21 {#version-3-2-6} ### Improvements diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/test/unit/autorunner.rb new/lib/test/unit/autorunner.rb --- old/lib/test/unit/autorunner.rb 2017-09-21 07:42:46.000000000 +0200 +++ new/lib/test/unit/autorunner.rb 2017-12-11 16:23:15.000000000 +0100 @@ -139,7 +139,7 @@ attr_accessor :default_test_paths attr_accessor :pattern, :exclude, :base, :workdir attr_accessor :color_scheme, :listeners - attr_writer :stop_on_failuere + attr_writer :stop_on_failure attr_writer :runner, :collector def initialize(standalone) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/test/unit/runner/console.rb new/lib/test/unit/runner/console.rb --- old/lib/test/unit/runner/console.rb 2017-09-21 07:42:46.000000000 +0200 +++ new/lib/test/unit/runner/console.rb 2017-12-11 16:23:15.000000000 +0100 @@ -1,3 +1,22 @@ +# Copyright (C) 2008-2017 Kouhei Sutou <k...@clear-code.com> +# +# License: Ruby OR LGPL-2.1+ +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301 USA + module Test module Unit AutoRunner.register_runner(:console) do |auto_runner| @@ -54,6 +73,12 @@ "(default is yes)") do |boolean| auto_runner.runner_options[:show_detail_immediately] = boolean end + + opts.on("--[no-]reverse-output", + "Shows fault details in reverse.", + "(default is yes for tty output, no otherwise)") do |boolean| + auto_runner.runner_options[:reverse_output] = boolean + end end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/test/unit/ui/console/testrunner.rb new/lib/test/unit/ui/console/testrunner.rb --- old/lib/test/unit/ui/console/testrunner.rb 2017-09-21 07:42:46.000000000 +0200 +++ new/lib/test/unit/ui/console/testrunner.rb 2017-12-11 16:23:15.000000000 +0100 @@ -3,7 +3,7 @@ # Author:: Nathaniel Talbott. # Copyright:: # * Copyright (c) 2000-2003 Nathaniel Talbott. All rights reserved. -# * Copyright (c) 2008-2013 Kouhei Sutou <k...@clear-code.com> +# * Copyright (c) 2008-2017 Kouhei Sutou <k...@clear-code.com> # License:: Ruby license. begin @@ -47,6 +47,8 @@ @progress_row_max ||= guess_progress_row_max @show_detail_immediately = @options[:show_detail_immediately] @show_detail_immediately = true if @show_detail_immediately.nil? + @reverse_output = @options[:reverse_output] + @reverse_output = @output.tty? if @reverse_output.nil? @already_outputted = false @indent = 0 @top_level = true @@ -110,8 +112,10 @@ end def finished(elapsed_time) - nl if output?(NORMAL) and !output?(VERBOSE) - output_faults unless @show_detail_immediately + unless @show_detail_immediately + nl if output?(NORMAL) and !output?(VERBOSE) + output_faults + end nl(PROGRESS_ONLY) change_output_level(IMPORTANT_FAULTS_ONLY) do output_statistics(elapsed_time) @@ -178,22 +182,31 @@ def output_fault_in_detail(fault) if fault.is_a?(Failure) and - fault.inspected_expected and fault.inspected_actual - output_single("#{fault.label}: ") - output(fault.test_name, fault_color(fault)) - output_fault_backtrace(fault) - output_failure_message(fault) + fault.inspected_expected and + fault.inspected_actual + if @reverse_output + output_fault_backtrace(fault) + output_failure_message(fault) + output_single("#{fault.label}: ") + output(fault.test_name, fault_color(fault)) + else + output_single("#{fault.label}: ") + output(fault.test_name, fault_color(fault)) + output_fault_backtrace(fault) + output_failure_message(fault) + end else - if fault.is_a?(Error) + if @reverse_output + output_fault_backtrace(fault) output_single("#{fault.label}: ") output_single(fault.test_name, fault_color(fault)) output_fault_message(fault) else - output_single(fault.label, fault_color(fault)) + output_single("#{fault.label}: ") + output_single(fault.test_name, fault_color(fault)) output_fault_message(fault) - output(fault.test_name) + output_fault_backtrace(fault) end - output_fault_backtrace(fault) end end @@ -218,6 +231,7 @@ # workaround for test-spec. :< # see also GitHub:#22 backtrace ||= [] + backtrace = backtrace.reverse if @reverse_output backtrace.each_with_index do |entry, i| output(entry) next if snippet_is_shown @@ -303,9 +317,17 @@ end def output_fault_in_short(fault) - output_single(fault.message, fault_color(fault)) - output(" [#{fault.test_name}]") - output(fault.location.first) + if @reverse_output + output(fault.location.first) + output_single("#{fault.label}: ") + output_single(fault.message, fault_color(fault)) + output(" [#{fault.test_name}]") + else + output_single("#{fault.label}: ") + output_single(fault.message, fault_color(fault)) + output(" [#{fault.test_name}]") + output(fault.location.first) + end end def format_fault(fault) @@ -330,24 +352,34 @@ end def output_summary_marker - term_width = guess_term_width - if term_width.zero? - marker_width = 6 + if @progress_row_max > 0 + output("-" * @progress_row_max, summary_marker_color) else - marker_width = term_width + nl end - output("-" * marker_width, summary_marker_color) end def test_started(test) return unless output?(VERBOSE) + tab_width = 8 name = test.local_name - right_space = 8 * 2 + separator = ":" + left_used = indent.size + name.size + separator.size + right_space = tab_width * 2 left_space = @progress_row_max - right_space - left_space = left_space - indent.size - name.size - tab_stop = "\t" * ([left_space - 1, 0].max / 8) - output_single("#{indent}#{name}:#{tab_stop}", nil, VERBOSE) + if (left_used % tab_width).zero? + left_space -= left_used + n_tabs = 0 + else + left_space -= ((left_used / tab_width) + 1) * tab_width + n_tabs = 1 + end + n_tabs += [left_space, 0].max / tab_width + tab_stop = "\t" * n_tabs + output_single("#{indent}#{name}#{separator}#{tab_stop}", + nil, + VERBOSE) @test_start = Time.now end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/test/unit/version.rb new/lib/test/unit/version.rb --- old/lib/test/unit/version.rb 2017-09-21 07:42:46.000000000 +0200 +++ new/lib/test/unit/version.rb 2017-12-11 16:23:15.000000000 +0100 @@ -1,5 +1,5 @@ module Test module Unit - VERSION = "3.2.6" + VERSION = "3.2.7" end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2017-09-21 07:42:46.000000000 +0200 +++ new/metadata 2017-12-11 16:23:14.000000000 +0100 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: test-unit version: !ruby/object:Gem::Version - version: 3.2.6 + version: 3.2.7 platform: ruby authors: - Kouhei Sutou @@ -9,7 +9,7 @@ autorequire: bindir: bin cert_chain: [] -date: 2017-09-21 00:00:00.000000000 Z +date: 2017-12-11 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: power_assert @@ -213,7 +213,8 @@ licenses: - Ruby - PSFL -metadata: {} +metadata: + source_code_uri: https://github.com/test-unit/test-unit post_install_message: rdoc_options: [] require_paths: @@ -230,7 +231,7 @@ version: '0' requirements: [] rubyforge_project: -rubygems_version: 2.5.2 +rubygems_version: 2.5.2.1 signing_key: specification_version: 4 summary: An xUnit family unit testing framework for Ruby.