Hello community,
here is the log from the commit of package rubygem-rspec-support for
openSUSE:Factory checked in at 2020-05-11 13:32:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-rspec-support (Old)
and /work/SRC/openSUSE:Factory/.rubygem-rspec-support.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-rspec-support"
Mon May 11 13:32:07 2020 rev:13 rq:802374 version:3.9.3
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-rspec-support/rubygem-rspec-support.changes
2020-01-30 09:35:13.641291880 +0100
+++
/work/SRC/openSUSE:Factory/.rubygem-rspec-support.new.2738/rubygem-rspec-support.changes
2020-05-11 13:34:41.124278863 +0200
@@ -1,0 +2,16 @@
+Thu May 7 21:26:01 UTC 2020 - Stephan Kulow <[email protected]>
+
+- updated to version 3.9.3
+ see installed Changelog.md
+
+ ### 3.9.3 / 2020-05-02
+ [Full
Changelog](http://github.com/rspec/rspec-support/compare/v3.9.2...v3.9.3)
+
+ Bug Fixes:
+
+ * Mark ripper as unsupported on Truffle Ruby. (Brandon Fish, #395)
+ * Mark ripper as unsupported on JRuby 9.2.0.0. (Brian Hawley, #400)
+ * Capture `Mutex.new` for our `RSpec::Support:Mutex` in order to
+ allow stubbing `Mutex.new`. (Jon Rowe, #411)
+
+-------------------------------------------------------------------
Old:
----
rspec-support-3.9.2.gem
New:
----
rspec-support-3.9.3.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-rspec-support.spec ++++++
--- /var/tmp/diff_new_pack.E0dBfQ/_old 2020-05-11 13:34:42.276281278 +0200
+++ /var/tmp/diff_new_pack.E0dBfQ/_new 2020-05-11 13:34:42.276281278 +0200
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-rspec-support
#
-# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
#
Name: rubygem-rspec-support
-Version: 3.9.2
+Version: 3.9.3
Release: 0
%define mod_name rspec-support
%define mod_full_name %{mod_name}-%{version}
@@ -33,7 +33,7 @@
BuildRequires: %{rubygem gem2rpm}
BuildRequires: %{rubygem rdoc > 3.10}
BuildRequires: ruby-macros >= 5
-Url: https://github.com/rspec/rspec-support
+URL: https://github.com/rspec/rspec-support
Source: https://rubygems.org/gems/%{mod_full_name}.gem
Source1: gem2rpm.yml
Summary: Common code needed by the other RSpec gems
++++++ rspec-support-3.9.2.gem -> rspec-support-3.9.3.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Changelog.md new/Changelog.md
--- old/Changelog.md 2019-12-30 11:45:17.000000000 +0100
+++ new/Changelog.md 2020-05-02 22:54:23.000000000 +0200
@@ -1,3 +1,13 @@
+### 3.9.3 / 2020-05-02
+[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.9.2...v3.9.3)
+
+Bug Fixes:
+
+* Mark ripper as unsupported on Truffle Ruby. (Brandon Fish, #395)
+* Mark ripper as unsupported on JRuby 9.2.0.0. (Brian Hawley, #400)
+* Capture `Mutex.new` for our `RSpec::Support:Mutex` in order to
+ allow stubbing `Mutex.new`. (Jon Rowe, #411)
+
### 3.9.2 / 2019-12-30
[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.9.1...v3.9.2)
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
Binary 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/support/reentrant_mutex.rb
new/lib/rspec/support/reentrant_mutex.rb
--- old/lib/rspec/support/reentrant_mutex.rb 2019-12-30 11:45:17.000000000
+0100
+++ new/lib/rspec/support/reentrant_mutex.rb 2020-05-02 22:54:23.000000000
+0200
@@ -43,7 +43,15 @@
if defined? ::Mutex
# On 1.9 and up, this is in core, so we just use the real one
- Mutex = ::Mutex
+ class Mutex < ::Mutex
+ # If you mock Mutex.new you break our usage of Mutex, so
+ # instead we capture the original method to return Mutexs.
+ NEW_MUTEX_METHOD = Mutex.method(:new)
+
+ def self.new
+ NEW_MUTEX_METHOD.call
+ end
+ end
else # For 1.8.7
# :nocov:
RSpec::Support.require_rspec_support "mutex"
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 2019-12-30 11:45:17.000000000
+0100
+++ new/lib/rspec/support/ruby_features.rb 2020-05-02 22:54:23.000000000
+0200
@@ -47,6 +47,10 @@
def mri?
!defined?(RUBY_ENGINE) || RUBY_ENGINE == 'ruby'
end
+
+ def truffleruby?
+ defined?(RUBY_ENGINE) && RUBY_ENGINE == 'truffleruby'
+ end
end
# @api private
@@ -101,13 +105,14 @@
end
ripper_requirements = [ComparableVersion.new(RUBY_VERSION) >= '1.9.2']
- ripper_requirements.push(false) if Ruby.rbx?
+ ripper_requirements.push(false) if Ruby.rbx? || Ruby.truffleruby?
if Ruby.jruby?
ripper_requirements.push(Ruby.jruby_version >= '1.7.5')
# 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.between?('9.0.0.0.rc1',
'9.1.8.0'))
+ # Ripper on JRuby 9.x.x.x < 9.2.1.0 can't handle keyword arguments.
+ ripper_requirements.push(!Ruby.jruby_version.between?('9.0.0.0.rc1',
'9.2.0.0'))
end
if ripper_requirements.all?
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rspec/support/spec/stderr_splitter.rb
new/lib/rspec/support/spec/stderr_splitter.rb
--- old/lib/rspec/support/spec/stderr_splitter.rb 2019-12-30
11:45:17.000000000 +0100
+++ new/lib/rspec/support/spec/stderr_splitter.rb 2020-05-02
22:54:23.000000000 +0200
@@ -6,6 +6,7 @@
def initialize(original)
@orig_stderr = original
@output_tracker = ::StringIO.new
+ @last_line = nil
end
respond_to_name = (::RUBY_VERSION.to_f < 1.9) ? :respond_to? :
:respond_to_missing?
@@ -38,12 +39,19 @@
def write(line)
return if line =~ %r{^\S+/gems/\S+:\d+: warning:} #
http://rubular.com/r/kqeUIZOfPG
+ # Ruby 2.7.0 warnings from keyword argments span multiple lines,
extend check above
+ # to look for the next line.
+ return if @last_line =~ %r{^\S+/gems/\S+:\d+: warning:} &&
+ line =~ %r{warning: The called method .* is defined here}
+
# Ruby 2.7.0 complains about hashes used in place of keyword arguments
# Aruba 0.14.2 uses this internally triggering that here
return if line =~ %r{lib/ruby/2\.7\.0/fileutils\.rb:622: warning:}
@orig_stderr.write(line)
@output_tracker.write(line)
+ ensure
+ @last_line = line
end
def has_output?
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 2019-12-30 11:45:17.000000000 +0100
+++ new/lib/rspec/support/version.rb 2020-05-02 22:54:23.000000000 +0200
@@ -1,7 +1,7 @@
module RSpec
module Support
module Version
- STRING = '3.9.2'
+ STRING = '3.9.3'
end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rspec/support/with_keywords_when_needed.rb
new/lib/rspec/support/with_keywords_when_needed.rb
--- old/lib/rspec/support/with_keywords_when_needed.rb 1970-01-01
01:00:00.000000000 +0100
+++ new/lib/rspec/support/with_keywords_when_needed.rb 2020-05-02
22:54:23.000000000 +0200
@@ -0,0 +1,33 @@
+RSpec::Support.require_rspec_support("method_signature_verifier")
+
+module RSpec
+ module Support
+ module WithKeywordsWhenNeeded
+ # This module adds keyword sensitive support for core ruby methods
+ # where we cannot use `ruby2_keywords` directly.
+
+ module_function
+
+ if RSpec::Support::RubyFeatures.kw_args_supported?
+ # Remove this in RSpec 4 in favour of explictly passed in kwargs where
+ # this is used. Works around a warning in Ruby 2.7
+
+ def class_exec(klass, *args, &block)
+ if MethodSignature.new(block).has_kw_args_in?(args)
+ binding.eval(<<-CODE, __FILE__, __LINE__)
+ kwargs = args.pop
+ klass.class_exec(*args, **kwargs, &block)
+ CODE
+ else
+ klass.class_exec(*args, &block)
+ end
+ end
+ ruby2_keywords :class_exec if respond_to?(:ruby2_keywords, true)
+ else
+ def class_exec(klass, *args, &block)
+ klass.class_exec(*args, &block)
+ end
+ end
+ end
+ end
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2019-12-30 11:45:17.000000000 +0100
+++ new/metadata 2020-05-02 22:54:23.000000000 +0200
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: rspec-support
version: !ruby/object:Gem::Version
- version: 3.9.2
+ version: 3.9.3
platform: ruby
authors:
- David Chelimsky
@@ -48,20 +48,20 @@
ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
F3MdtaDehhjC
-----END CERTIFICATE-----
-date: 2019-12-30 00:00:00.000000000 Z
+date: 2020-05-02 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: rake
requirement: !ruby/object:Gem::Requirement
requirements:
- - - "~>"
+ - - ">"
- !ruby/object:Gem::Version
version: 10.0.0
type: :development
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - - "~>"
+ - - ">"
- !ruby/object:Gem::Version
version: 10.0.0
- !ruby/object:Gem::Dependency
@@ -118,12 +118,13 @@
- lib/rspec/support/spec/with_isolated_stderr.rb
- lib/rspec/support/version.rb
- lib/rspec/support/warnings.rb
+- lib/rspec/support/with_keywords_when_needed.rb
homepage: https://github.com/rspec/rspec-support
licenses:
- MIT
metadata:
bug_tracker_uri: https://github.com/rspec/rspec-support/issues
- changelog_uri:
https://github.com/rspec/rspec-support/blob/v3.9.2/Changelog.md
+ changelog_uri:
https://github.com/rspec/rspec-support/blob/v3.9.3/Changelog.md
documentation_uri: https://rspec.info/documentation/
mailing_list_uri: https://groups.google.com/forum/#!forum/rspec
source_code_uri: https://github.com/rspec/rspec-support
@@ -146,5 +147,5 @@
rubygems_version: 3.1.2
signing_key:
specification_version: 4
-summary: rspec-support-3.9.2
+summary: rspec-support-3.9.3
test_files: []
Binary files old/metadata.gz.sig and new/metadata.gz.sig differ