Hello community, here is the log from the commit of package rubygem-rspec-expectations for openSUSE:Factory checked in at 2015-04-13 20:29:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-rspec-expectations (Old) and /work/SRC/openSUSE:Factory/.rubygem-rspec-expectations.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-rspec-expectations" Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-rspec-expectations/rubygem-rspec-expectations.changes 2015-02-08 13:03:12.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-rspec-expectations.new/rubygem-rspec-expectations.changes 2015-04-13 20:29:28.000000000 +0200 @@ -1,0 +2,11 @@ +Sat Apr 11 06:03:42 UTC 2015 - co...@suse.com + +- updated to version 3.2.1 + Bug Fixes: + + * Prevent `Range`s from being enumerated when generating matcher + descriptions. (Jon Rowe, #755) + * Ensure exception messages are compared as strings in the `raise_error` + matcher. (Jon Rowe, #755) + +------------------------------------------------------------------- Old: ---- rspec-expectations-3.2.0.gem New: ---- rspec-expectations-3.2.1.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-rspec-expectations.spec ++++++ --- /var/tmp/diff_new_pack.pidlXU/_old 2015-04-13 20:29:28.000000000 +0200 +++ /var/tmp/diff_new_pack.pidlXU/_new 2015-04-13 20:29:28.000000000 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-rspec-expectations -Version: 3.2.0 +Version: 3.2.1 Release: 0 %define mod_name rspec-expectations %define mod_full_name %{mod_name}-%{version} ++++++ rspec-expectations-3.2.0.gem -> rspec-expectations-3.2.1.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Changelog.md new/Changelog.md --- old/Changelog.md 2015-02-03 16:33:35.000000000 +0100 +++ new/Changelog.md 2015-04-07 01:35:55.000000000 +0200 @@ -1,3 +1,13 @@ +### 3.2.1 / 2015-04-06 +[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.2.0...v3.2.1) + +Bug Fixes: + +* Prevent `Range`s from being enumerated when generating matcher + descriptions. (Jon Rowe, #755) +* Ensure exception messages are compared as strings in the `raise_error` + matcher. (Jon Rowe, #755) + ### 3.2.0 / 2015-02-03 [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.1.2...v3.2.0) 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/rspec/expectations/version.rb new/lib/rspec/expectations/version.rb --- old/lib/rspec/expectations/version.rb 2015-02-03 16:33:35.000000000 +0100 +++ new/lib/rspec/expectations/version.rb 2015-04-07 01:35:55.000000000 +0200 @@ -2,7 +2,7 @@ module Expectations # @private module Version - STRING = '3.2.0' + STRING = '3.2.1' end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rspec/matchers/built_in/contain_exactly.rb new/lib/rspec/matchers/built_in/contain_exactly.rb --- old/lib/rspec/matchers/built_in/contain_exactly.rb 2015-02-03 16:33:35.000000000 +0100 +++ new/lib/rspec/matchers/built_in/contain_exactly.rb 2015-04-07 01:35:55.000000000 +0200 @@ -50,7 +50,7 @@ def convert_actual_to_an_array if actual.respond_to?(:to_ary) @actual = actual.to_ary - elsif enumerable?(actual) && actual.respond_to?(:to_a) + elsif should_enumerate?(actual) && actual.respond_to?(:to_a) @actual = actual.to_a else return false diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rspec/matchers/built_in/raise_error.rb new/lib/rspec/matchers/built_in/raise_error.rb --- old/lib/rspec/matchers/built_in/raise_error.rb 2015-02-03 16:33:35.000000000 +0100 +++ new/lib/rspec/matchers/built_in/raise_error.rb 2015-04-07 01:35:55.000000000 +0200 @@ -115,7 +115,7 @@ def verify_message return true if @expected_message.nil? - values_match?(@expected_message, @actual_error.message) + values_match?(@expected_message, @actual_error.message.to_s) end def prevent_invalid_expectations diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rspec/matchers/composable.rb new/lib/rspec/matchers/composable.rb --- old/lib/rspec/matchers/composable.rb 2015-02-03 16:33:35.000000000 +0100 +++ new/lib/rspec/matchers/composable.rb 2015-04-07 01:35:55.000000000 +0200 @@ -103,7 +103,7 @@ Hash[surface_descriptions_in(item.to_a)] elsif Struct === item item.inspect - elsif enumerable?(item) + elsif should_enumerate?(item) begin item.map { |subitem| surface_descriptions_in(subitem) } rescue IOError # STDOUT is enumerable but `map` raises an error @@ -137,7 +137,7 @@ Hash[with_matchers_cloned(object.to_a)] elsif Struct === object object - elsif enumerable?(object) + elsif should_enumerate?(object) begin object.map { |subobject| with_matchers_cloned(subobject) } rescue IOError # STDOUT is enumerable but `map` raises an error @@ -155,17 +155,17 @@ # a single 1-character string, which is an enumerable, etc. # # @api private - def enumerable?(item) + def should_enumerate?(item) return false if String === item - Enumerable === item + Enumerable === item && !(Range === item) end else # @api private - def enumerable?(item) - Enumerable === item + def should_enumerate?(item) + Enumerable === item && !(Range === item) end end - module_function :surface_descriptions_in, :enumerable? + module_function :surface_descriptions_in, :should_enumerate? # Wraps an item in order to surface its `description` via `inspect`. # @api private diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2015-02-03 16:33:35.000000000 +0100 +++ new/metadata 2015-04-07 01:35:55.000000000 +0200 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: rspec-expectations version: !ruby/object:Gem::Version - version: 3.2.0 + version: 3.2.1 platform: ruby authors: - Steven Baker @@ -45,7 +45,7 @@ ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ F3MdtaDehhjC -----END CERTIFICATE----- -date: 2015-02-03 00:00:00.000000000 Z +date: 2015-04-06 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: rspec-support @@ -218,6 +218,6 @@ rubygems_version: 2.2.2 signing_key: specification_version: 4 -summary: rspec-expectations-3.2.0 +summary: rspec-expectations-3.2.1 test_files: [] has_rdoc: Files old/metadata.gz.sig and new/metadata.gz.sig differ