Hello community,
here is the log from the commit of package rubygem-rspec-support for openSUSE:Factory checked in at 2017-11-01 11:08:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-rspec-support (Old)
and /work/SRC/openSUSE:Factory/.rubygem-rspec-support.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-rspec-support"
Wed Nov 1 11:08:18 2017 rev:7 rq:537498 version:3.7.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-rspec-support/rubygem-rspec-support.changes 2017-05-27 13:11:50.050904099 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-rspec-support.new/rubygem-rspec-support.changes 2017-11-01 11:08:17.444726703 +0100
@@ -1,0 +2,24 @@
+Thu Oct 26 10:13:12 UTC 2017 - coolo@suse.com
+
+- updated to version 3.7.0
+ see installed Changelog.md
+
+ ### Development
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.7.0...master)
+
+ ### 3.7.0 / 2017-05-04
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.6.0...v3.7.0)
+
+ Enhancements:
+
+ * Improve compatibility with `--enable-frozen-string-literal` option
+ on Ruby 2.3+. (Pat Allan, #320)
+ * Add `Support.class_of` for extracting class of any object.
+ (Yuji Nakayama, #325)
+
+ Bug Fixes:
+
+ * Fix recursive const support to not blow up when given buggy classes
+ that raise odd errors from `#to_str`. (Myron Marston, #317)
+
+-------------------------------------------------------------------
Old:
----
rspec-support-3.6.0.gem
New:
----
rspec-support-3.7.0.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-rspec-support.spec ++++++
--- /var/tmp/diff_new_pack.XUPOEv/_old 2017-11-01 11:08:17.964707708 +0100
+++ /var/tmp/diff_new_pack.XUPOEv/_new 2017-11-01 11:08:17.964707708 +0100
@@ -24,7 +24,7 @@
#
Name: rubygem-rspec-support
-Version: 3.6.0
+Version: 3.7.0
Release: 0
%define mod_name rspec-support
%define mod_full_name %{mod_name}-%{version}
@@ -34,7 +34,7 @@
BuildRequires: %{rubygem rdoc > 3.10}
BuildRequires: ruby-macros >= 5
Url: https://github.com/rspec/rspec-support
-Source: http://rubygems.org/gems/%{mod_full_name}.gem
+Source: https://rubygems.org/gems/%{mod_full_name}.gem
Source1: gem2rpm.yml
Summary: Common code needed by the other RSpec gems
License: MIT
++++++ rspec-support-3.6.0.gem -> rspec-support-3.7.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Changelog.md new/Changelog.md
--- old/Changelog.md 2017-05-05 01:59:55.000000000 +0200
+++ new/Changelog.md 2017-10-17 17:15:35.000000000 +0200
@@ -1,3 +1,21 @@
+### Development
+[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.7.0...master)
+
+### 3.7.0 / 2017-05-04
+[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.6.0...v3.7.0)
+
+Enhancements:
+
+* Improve compatibility with `--enable-frozen-string-literal` option
+ on Ruby 2.3+. (Pat Allan, #320)
+* Add `Support.class_of` for extracting class of any object.
+ (Yuji Nakayama, #325)
+
+Bug Fixes:
+
+* Fix recursive const support to not blow up when given buggy classes
+ that raise odd errors from `#to_str`. (Myron Marston, #317)
+
### 3.6.0 / 2017-05-04
[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.6.0.beta2...3.6.0)
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
Binary files old/checksums.yaml.gz.sig and new/checksums.yaml.gz.sig differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/data.tar.gz.sig new/data.tar.gz.sig
--- old/data.tar.gz.sig 2017-05-05 01:59:55.000000000 +0200
+++ new/data.tar.gz.sig 2017-10-17 17:15:35.000000000 +0200
@@ -1,2 +1,7 @@
-RkiÛ㬠ÞÛ|MûN°`cû#3¡Q®èWÓÝ;LÐçÉ÷ß?bÊ=t¹xÕ<l!#ÖŒ
@?ÛIkEÞ£°«/ü1~î»y0ó öAd2©Â¿B±
º2zYfõ2_Þ®FT|á5ħá&qùMèbàóíPzaç;sÇ{úzÆUöªt¥ÏÔÕE¯.DŒËýÌŒÞÈⶠQÛqÇηøgÊm^ó£ò;7€fudùþ`wYqJðAê~P9×ašIÖD=» 9jäÎ0ÂM'`GjÓÌ«ÞÊ×'|€.æÕYÊéègS=JFgËϱz¢ØCIÒË»øÄñŒXÄÍî{£!l\.epdTùÁ«
ºÝðë#OISh×ðùÜKuê4.°ª^ïΣ±gúÓÇÄ3ÚI%a "ö¢ôðPb;yÙDPAW;Ž³Õµ¥Gœ³p»5j%=ªâH01Ù®Õ~«®*ïÆMP
-@Õå=ÔúÈK8¥"q¡Ùµ€MúVpD@Ívzv¶ôc!Ùsvf®Eäb« x*þx[ÏA1"
\ No newline at end of file
+¯x%¿Îá¡¢ËxªBÛv3kõDx0ípÒ)jŸÈ«ðÇty¡w¿ÂÁ©õtgÌS ©`õý7ó
+ª\³cFQÑOuTâÔýU¥HI`ªÄEgýÂ_DïjÓ¬L»7Àób_.IœÒ²(aö÷ÉâxûÄc@§«`%a_SÁWáµßú«D\ØZûR×#ÏhŠ'}z"|sìóTJF[Eص³vUKo/êi)Ù
+d`¹N£f1MŒìò'4Ò§.Ð1^ã!`Nz'hyšóž
+³º$úeú8¶#XÂë>Üíõ)5úÀ'%J
Gy
+ŒæÀ|CàòÕ¡dâžI9}ª$±¯4\Tê<Ëi`È.Ý9÷ò¶Å|©y?9pC£pÛ]È&ËF ]°O"úk,Ñ9¶BTûvi< `û+O€YLð&íWô9fý«îÅ*º.Ž²WL÷ÞË[·èd
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rspec/support/differ.rb new/lib/rspec/support/differ.rb
--- old/lib/rspec/support/differ.rb 2017-05-05 01:59:55.000000000 +0200
+++ new/lib/rspec/support/differ.rb 2017-10-17 17:15:35.000000000 +0200
@@ -181,19 +181,19 @@
when Hash
hash_to_string(object)
when Array
- PP.pp(ObjectFormatter.prepare_for_inspection(object), "")
+ PP.pp(ObjectFormatter.prepare_for_inspection(object), "".dup)
when String
object =~ /\n/ ? object : object.inspect
else
- PP.pp(object, "")
+ PP.pp(object, "".dup)
end
end
def hash_to_string(hash)
formatted_hash = ObjectFormatter.prepare_for_inspection(hash)
formatted_hash.keys.sort_by { |k| k.to_s }.map do |key|
- pp_key = PP.singleline_pp(key, "")
- pp_value = PP.singleline_pp(formatted_hash[key], "")
+ pp_key = PP.singleline_pp(key, "".dup)
+ pp_value = PP.singleline_pp(formatted_hash[key], "".dup)
"#{pp_key} => #{pp_value},"
end.join("\n")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rspec/support/object_formatter.rb new/lib/rspec/support/object_formatter.rb
--- old/lib/rspec/support/object_formatter.rb 2017-05-05 01:59:55.000000000 +0200
+++ new/lib/rspec/support/object_formatter.rb 2017-10-17 17:15:35.000000000 +0200
@@ -199,8 +199,7 @@
end
def klass
- singleton_class = class << object; self; end
- singleton_class.ancestors.find { |ancestor| !ancestor.equal?(singleton_class) }
+ Support.class_of(object)
end
# http://stackoverflow.com/a/2818916
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rspec/support/recursive_const_methods.rb new/lib/rspec/support/recursive_const_methods.rb
--- old/lib/rspec/support/recursive_const_methods.rb 2017-05-05 01:59:55.000000000 +0200
+++ new/lib/rspec/support/recursive_const_methods.rb 2017-10-17 17:15:35.000000000 +0200
@@ -64,7 +64,7 @@
parts.inject([Object, '']) do |(mod, full_name), name|
yield(full_name, name) if block_given? && !(Module === mod)
return false unless const_defined_on?(mod, name)
- [get_const_defined_on(mod, name), [mod, name].join('::')]
+ [get_const_defined_on(mod, name), [mod.name, name].join('::')]
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rspec/support/ruby_features.rb new/lib/rspec/support/ruby_features.rb
--- old/lib/rspec/support/ruby_features.rb 2017-05-05 01:59:55.000000000 +0200
+++ new/lib/rspec/support/ruby_features.rb 2017-10-17 17:15:35.000000000 +0200
@@ -80,9 +80,9 @@
if Ruby.jruby?
ripper_requirements.push(Ruby.jruby_version >= '1.7.5')
- # Ripper on JRuby 9.0.0.0.rc1 or later reports wrong line number
+ # Ripper on JRuby 9.0.0.0.rc1 - 9.1.8.0 reports wrong line number
# or cannot parse source including `:if`.
- ripper_requirements.push(Ruby.jruby_version < '9.0.0.0.rc1')
+ ripper_requirements.push(!Ruby.jruby_version.between?('9.0.0.0.rc1', '9.1.8.0'))
end
if ripper_requirements.all?
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rspec/support/version.rb new/lib/rspec/support/version.rb
--- old/lib/rspec/support/version.rb 2017-05-05 01:59:55.000000000 +0200
+++ new/lib/rspec/support/version.rb 2017-10-17 17:15:35.000000000 +0200
@@ -1,7 +1,7 @@
module RSpec
module Support
module Version
- STRING = '3.6.0'
+ STRING = '3.7.0'
end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rspec/support/warnings.rb new/lib/rspec/support/warnings.rb
--- old/lib/rspec/support/warnings.rb 2017-05-05 01:59:55.000000000 +0200
+++ new/lib/rspec/support/warnings.rb 2017-10-17 17:15:35.000000000 +0200
@@ -28,8 +28,8 @@
# Used internally to print longer warnings
def warn_with(message, options={})
call_site = options.fetch(:call_site) { CallerFilter.first_non_rspec_line }
- message << " Use #{options[:replacement]} instead." if options[:replacement]
- message << " Called from #{call_site}." if call_site
+ message += " Use #{options[:replacement]} instead." if options[:replacement]
+ message += " Called from #{call_site}." if call_site
Support.warning_notifier.call message
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rspec/support.rb new/lib/rspec/support.rb
--- old/lib/rspec/support.rb 2017-05-05 01:59:55.000000000 +0200
+++ new/lib/rspec/support.rb 2017-10-17 17:15:35.000000000 +0200
@@ -73,6 +73,16 @@
end
end
+ # @api private
+ #
+ # Used internally to get a class of a given object, even if it does not respond to #class.
+ def self.class_of(object)
+ object.class
+ rescue NoMethodError
+ singleton_class = class << object; self; end
+ singleton_class.ancestors.find { |ancestor| !ancestor.equal?(singleton_class) }
+ end
+
# A single thread local variable so we don't excessively pollute that namespace.
def self.thread_local_data
Thread.current[:__rspec] ||= {}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2017-05-05 01:59:55.000000000 +0200
+++ new/metadata 2017-10-17 17:15:35.000000000 +0200
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: rspec-support
version: !ruby/object:Gem::Version
- version: 3.6.0
+ version: 3.7.0
platform: ruby
authors:
- David Chelimsky
@@ -48,7 +48,7 @@
ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
F3MdtaDehhjC
-----END CERTIFICATE-----
-date: 2017-05-04 00:00:00.000000000 Z
+date: 2017-10-17 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: bundler
@@ -153,8 +153,8 @@
version: '0'
requirements: []
rubyforge_project:
-rubygems_version: 2.4.5.2
+rubygems_version: 2.6.14
signing_key:
specification_version: 4
-summary: rspec-support-3.6.0
+summary: rspec-support-3.7.0
test_files: []
Binary files old/metadata.gz.sig and new/metadata.gz.sig differ