Hello community,
here is the log from the commit of package rubygem-minitest for openSUSE:Factory checked in at 2015-09-30 05:51:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-minitest (Old)
and /work/SRC/openSUSE:Factory/.rubygem-minitest.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-minitest"
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-minitest/rubygem-minitest.changes 2015-06-10 09:15:47.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-minitest.new/rubygem-minitest.changes 2015-09-30 05:51:59.000000000 +0200
@@ -1,0 +2,29 @@
+Thu Sep 24 04:32:25 UTC 2015 - coolo(a)suse.com
+
+- updated to version 5.8.1
+ see installed History.rdoc
+
+ === 5.8.1 / 2015-09-23
+
+ * 1 minor enhancement:
+
+ * Refactor assert_raises to be cleaner and to pass SystemExit and SignalException. (bhenderson)
+
+-------------------------------------------------------------------
+Fri Aug 7 04:30:16 UTC 2015 - coolo(a)suse.com
+
+- updated to version 5.8.0
+ see installed History.rdoc
+
+ === 5.8.0 / 2015-08-06
+
+ * 2 minor enhancements:
+
+ * Add optional delegation mechanism to extend object with a mock. (zamith)
+ * Return early if there are no filtered methods. (jeremyevans)
+
+ * 1 bug fix:
+
+ * Don't extend io with pride if io is not a tty. (toy)
+
+-------------------------------------------------------------------
Old:
----
minitest-5.7.0.gem
New:
----
minitest-5.8.1.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-minitest.spec ++++++
--- /var/tmp/diff_new_pack.pJNDct/_old 2015-09-30 05:52:00.000000000 +0200
+++ /var/tmp/diff_new_pack.pJNDct/_new 2015-09-30 05:52:00.000000000 +0200
@@ -24,7 +24,7 @@
#
Name: rubygem-minitest
-Version: 5.7.0
+Version: 5.8.1
Release: 0
%define mod_name minitest
%define mod_full_name %{mod_name}-%{version}
++++++ minitest-5.7.0.gem -> minitest-5.8.1.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/History.rdoc new/History.rdoc
--- old/History.rdoc 2015-05-27 23:42:53.000000000 +0200
+++ new/History.rdoc 2015-09-23 23:56:39.000000000 +0200
@@ -1,3 +1,20 @@
+=== 5.8.1 / 2015-09-23
+
+* 1 minor enhancement:
+
+ * Refactor assert_raises to be cleaner and to pass SystemExit and SignalException. (bhenderson)
+
+=== 5.8.0 / 2015-08-06
+
+* 2 minor enhancements:
+
+ * Add optional delegation mechanism to extend object with a mock. (zamith)
+ * Return early if there are no filtered methods. (jeremyevans)
+
+* 1 bug fix:
+
+ * Don't extend io with pride if io is not a tty. (toy)
+
=== 5.7.0 / 2015-05-27
* 1 major enhancement:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.rdoc new/README.rdoc
--- old/README.rdoc 2015-05-27 23:42:53.000000000 +0200
+++ new/README.rdoc 2015-09-23 23:56:39.000000000 +0200
@@ -446,7 +446,6 @@
minispec-metadata :: Metadata for describe/it blocks & CLI tag filter.
E.g. `it "requires JS driver", js: true do` &
`ruby test.rb --tag js` runs tests tagged :js.
-minitest-ansi :: Colorize minitest output with ANSI colors.
minitest-around :: Around block for minitest. An alternative to
setup/teardown dance.
minitest-autotest :: autotest is a continous testing facility meant to
@@ -456,14 +455,13 @@
minitest-bang :: Adds support for RSpec-style let! to immediately
invoke let statements before each test.
minitest-bisect :: Helps you isolate and debug random test failures.
+minitest-blink1_reporter :: Display test results with a Blink1.
minitest-capistrano :: Assertions and expectations for testing
Capistrano recipes.
minitest-capybara :: Capybara matchers support for minitest unit and
spec.
minitest-chef-handler :: Run Minitest suites as Chef report handlers
minitest-ci :: CI reporter plugin for Minitest.
-minitest-colorize :: Colorize Minitest output and show failing tests
- instantly.
minitest-context :: Defines contexts for code reuse in Minitest
specs that share common expectations.
minitest-debugger :: Wraps assert so failed assertions drop into
@@ -552,7 +550,6 @@
contents of a collection, ignoring element order.
minitest-vcr :: Automatic cassette managment with Minitest::Spec
and VCR.
-minitest-wscolor :: Yet another test colorizer.
minitest_owrapper :: Get tests results as a TestResult object.
minitest_should :: Shoulda style syntax for minitest test::unit.
minitest_tu_shim :: Bridges between test/unit and minitest.
Files old/checksums.yaml.gz and new/checksums.yaml.gz differ
Files old/checksums.yaml.gz.sig and new/checksums.yaml.gz.sig differ
Files old/data.tar.gz.sig and new/data.tar.gz.sig differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/minitest/assertions.rb new/lib/minitest/assertions.rb
--- old/lib/minitest/assertions.rb 2015-05-27 23:42:53.000000000 +0200
+++ new/lib/minitest/assertions.rb 2015-09-23 23:56:39.000000000 +0200
@@ -298,17 +298,18 @@
begin
yield
- rescue Minitest::Skip => e
- return e if exp.include? Minitest::Skip
- raise e
+ rescue *exp => e
+ pass # count assertion
+ return e
+ rescue Minitest::Skip
+ # don't count assertion
+ raise
+ rescue SignalException, SystemExit
+ raise
rescue Exception => e
- expected = exp.any? { |ex| e.kind_of? ex }
-
- assert expected, proc {
+ flunk proc {
exception_details(e, "#{msg}#{mu_pp(exp)} exception expected, not")
}
-
- return e
end
exp = exp.first if exp.size == 1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/minitest/mock.rb new/lib/minitest/mock.rb
--- old/lib/minitest/mock.rb 2015-05-27 23:42:53.000000000 +0200
+++ new/lib/minitest/mock.rb 2015-09-23 23:56:39.000000000 +0200
@@ -37,7 +37,8 @@
end
end
- def initialize # :nodoc:
+ def initialize(delegator = nil) # :nodoc:
+ @delegator = delegator
@expected_calls = Hash.new { |calls, name| calls[name] = [] }
@actual_calls = Hash.new { |calls, name| calls[name] = [] }
end
@@ -111,8 +112,12 @@
def method_missing(sym, *args, &block) # :nodoc:
unless @expected_calls.key?(sym) then
- raise NoMethodError, "unmocked method %p, expected one of %p" %
- [sym, @expected_calls.keys.sort_by(&:to_s)]
+ if @delegator && @delegator.respond_to?(sym)
+ return @delegator.public_send(sym, *args, &block)
+ else
+ raise NoMethodError, "unmocked method %p, expected one of %p" %
+ [sym, @expected_calls.keys.sort_by(&:to_s)]
+ end
end
index = @actual_calls[sym].length
@@ -161,6 +166,7 @@
def respond_to?(sym, include_private = false) # :nodoc:
return true if @expected_calls.key? sym.to_sym
+ return true if @delegator && @delegator.respond_to?(sym, include_private)
__respond_to?(sym, include_private)
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/minitest/pride_plugin.rb new/lib/minitest/pride_plugin.rb
--- old/lib/minitest/pride_plugin.rb 2015-05-27 23:42:53.000000000 +0200
+++ new/lib/minitest/pride_plugin.rb 2015-09-23 23:56:39.000000000 +0200
@@ -13,7 +13,7 @@
io = klass.new options[:io]
self.reporter.reporters.grep(Minitest::Reporter).each do |rep|
- rep.io = io
+ rep.io = io if rep.io.tty?
end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/minitest.rb new/lib/minitest.rb
--- old/lib/minitest.rb 2015-05-27 23:42:53.000000000 +0200
+++ new/lib/minitest.rb 2015-09-23 23:56:39.000000000 +0200
@@ -7,7 +7,7 @@
# :include: README.rdoc
module Minitest
- VERSION = "5.7.0" # :nodoc:
+ VERSION = "5.8.1" # :nodoc:
ENCS = "".respond_to? :encoding # :nodoc:
@@installed_at_exit ||= false
@@ -289,6 +289,8 @@
filter === m || filter === "#{self}##{m}"
}
+ return if filtered_methods.empty?
+
with_info_handler reporter do
filtered_methods.each do |method_name|
run_one_method self, method_name, reporter
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2015-05-27 23:42:53.000000000 +0200
+++ new/metadata 2015-09-23 23:56:39.000000000 +0200
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: minitest
version: !ruby/object:Gem::Version
- version: 5.7.0
+ version: 5.8.1
platform: ruby
authors:
- Ryan Davis
@@ -10,9 +10,9 @@
cert_chain:
- |
-----BEGIN CERTIFICATE-----
- MIIDPjCCAiagAwIBAgIBAjANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
+ MIIDPjCCAiagAwIBAgIBAzANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
- GRYDY29tMB4XDTE0MDkxNzIzMDcwN1oXDTE1MDkxNzIzMDcwN1owRTETMBEGA1UE
+ GRYDY29tMB4XDTE1MDkxOTIwNTEyMloXDTE2MDkxODIwNTEyMlowRTETMBEGA1UE
AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
@@ -22,14 +22,14 @@
qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBBQUAA4IB
- AQAFoDJRokCQdxFfOrmsKX41KOFlU/zjrbDVM9hgB/Ur999M6OXGSi8FitXNtMwY
- FVjsiAPeU7HaWVVcZkj6IhINelTkXsxgGz/qCzjHy3iUMuZWw36cS0fiWJ5rvH+e
- hD7uXxJSFuyf1riDGI1aeWbQ74WMwvNstOxLUMiV5a1fzBhlxPqb537ubDjq/M/h
- zPUFPVYeL5KjDHLCqI2FwIk2sEMOQgjpXHzl+3NlD2LUgUhHDMevmgVua0e2GT1B
- xJcC6UN6NHMOVMyAXsr2HR0gRRx4ofN1LoP2KhXzSr8UMvQYlwPmE0N5GQv1b5AO
- VpzF30vNaJK6ZT7xlIsIlwmH
+ AQB+Hx8xUgrpZa4P8H8gR8zme5kISwQrG80MbpqJV6/G3/ZicRFhN5sjwu0uHGue
+ bd9Cymf6oIRwHVarJux2M32T6bL07Hmi07w2QaPc3MnMKB/D46SRZ2JSSGPFRBTc
+ SilobMRoGs/7B15uGFUEnNrCB/ltMqhwwSx1r++UQPfeySHEV9uqu03E5Vb7J37O
+ 2Er6PLXHRiYsIycD1LkMi6YnixdITRHmrqJYE2rsjaIfpIehiusVAPHkNf7qbpHq
+ qx3h45R1CAsObX0SQDIT+rRbQrtKz1GHIZTOFYvEJjUY1XmRTZupD3CJ8Q7sDqSy
+ NLq5jm1fq6Y9Uolu3RJbmycf
-----END CERTIFICATE-----
-date: 2015-05-27 00:00:00.000000000 Z
+date: 2015-09-23 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: rdoc
@@ -51,14 +51,14 @@
requirements:
- - ~>
- !ruby/object:Gem::Version
- version: '3.13'
+ version: '3.14'
type: :development
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - ~>
- !ruby/object:Gem::Version
- version: '3.13'
+ version: '3.14'
description: |-
minitest provides a complete suite of testing facilities supporting
TDD, BDD, mocking, and benchmarking.
@@ -123,7 +123,6 @@
- README.rdoc
files:
- .autotest
-- .gemtest
- History.rdoc
- Manifest.txt
- README.rdoc
Files old/metadata.gz.sig and new/metadata.gz.sig differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/minitest/test_minitest_unit.rb new/test/minitest/test_minitest_unit.rb
--- old/test/minitest/test_minitest_unit.rb 2015-05-27 23:42:53.000000000 +0200
+++ new/test/minitest/test_minitest_unit.rb 2015-09-23 23:56:39.000000000 +0200
@@ -1293,6 +1293,18 @@
assert_equal expected.chomp, actual
end
+ def test_assert_raises_exit
+ @tc.assert_raises SystemExit do
+ exit 1
+ end
+ end
+
+ def test_assert_raises_signals
+ @tc.assert_raises SignalException do
+ raise SignalException, :INT
+ end
+ end
+
def test_assert_respond_to
@tc.assert_respond_to "blah", :empty?
end