Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-rspec-support for
openSUSE:Factory checked in at 2021-12-25 20:16:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-rspec-support (Old)
and /work/SRC/openSUSE:Factory/.rubygem-rspec-support.new.2520 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-rspec-support"
Sat Dec 25 20:16:40 2021 rev:16 rq:942439 version:3.10.3
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-rspec-support/rubygem-rspec-support.changes
2021-02-11 12:45:42.265341858 +0100
+++
/work/SRC/openSUSE:Factory/.rubygem-rspec-support.new.2520/rubygem-rspec-support.changes
2021-12-25 20:17:05.125271080 +0100
@@ -1,0 +2,15 @@
+Sat Dec 25 09:32:57 UTC 2021 - Manuel Schnitzer <[email protected]>
+
+- updated to version 3.10.3
+
+ ### 3.10.3 / 2021-11-03
+ [Full
Changelog](http://github.com/rspec/rspec-support/compare/v3.10.2...v3.10.3)
+
+ Bug Fixes:
+
+ * Use `Mutex#owned?` to allow `RSpec::Support::ReentrantMutex` to work in
+ nested Fibers on Ruby 3.0 and later. (Benoit Daloze, #503, #504)
+ * Support `end`-less methods in `RSpec::Support::Source::Token`
+ so that RSpec won't hang when an `end`-less method raises an error. (Yuji
Nakayama, #505)
+
+-------------------------------------------------------------------
Old:
----
rspec-support-3.10.2.gem
New:
----
rspec-support-3.10.3.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-rspec-support.spec ++++++
--- /var/tmp/diff_new_pack.AualwG/_old 2021-12-25 20:17:05.601271467 +0100
+++ /var/tmp/diff_new_pack.AualwG/_new 2021-12-25 20:17:05.605271471 +0100
@@ -24,7 +24,7 @@
#
Name: rubygem-rspec-support
-Version: 3.10.2
+Version: 3.10.3
Release: 0
%define mod_name rspec-support
%define mod_full_name %{mod_name}-%{version}
++++++ rspec-support-3.10.2.gem -> rspec-support-3.10.3.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Changelog.md new/Changelog.md
--- old/Changelog.md 2021-01-29 00:14:58.000000000 +0100
+++ new/Changelog.md 2021-11-03 06:10:52.000000000 +0100
@@ -1,3 +1,13 @@
+### 3.10.3 / 2021-11-03
+[Full
Changelog](http://github.com/rspec/rspec-support/compare/v3.10.2...v3.10.3)
+
+Bug Fixes:
+
+* Use `Mutex#owned?` to allow `RSpec::Support::ReentrantMutex` to work in
+ nested Fibers on Ruby 3.0 and later. (Benoit Daloze, #503, #504)
+* Support `end`-less methods in `RSpec::Support::Source::Token`
+ so that RSpec won't hang when an `end`-less method raises an error. (Yuji
Nakayama, #505)
+
### 3.10.2 / 2021-01-28
[Full
Changelog](http://github.com/rspec/rspec-support/compare/v3.10.1...v3.10.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 2021-01-29 00:14:58.000000000
+0100
+++ new/lib/rspec/support/reentrant_mutex.rb 2021-11-03 06:10:52.000000000
+0100
@@ -27,17 +27,34 @@
private
- def enter
- @mutex.lock if @owner != Thread.current
- @owner = Thread.current
- @count += 1
- end
+ # This is fixing a bug #501 that is specific to Ruby 3.0. The new
implementation
+ # depends on `owned?` that was introduced in Ruby 2.0, so both should
work for Ruby 2.x.
+ if RUBY_VERSION.to_f >= 3.0
+ def enter
+ @mutex.lock unless @mutex.owned?
+ @count += 1
+ end
+
+ def exit
+ unless @mutex.owned?
+ raise ThreadError, "Attempt to unlock a mutex which is locked by
another thread/fiber"
+ end
+ @count -= 1
+ @mutex.unlock if @count == 0
+ end
+ else
+ def enter
+ @mutex.lock if @owner != Thread.current
+ @owner = Thread.current
+ @count += 1
+ end
- def exit
- @count -= 1
- return unless @count == 0
- @owner = nil
- @mutex.unlock
+ def exit
+ @count -= 1
+ return unless @count == 0
+ @owner = nil
+ @mutex.unlock
+ end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rspec/support/source/token.rb
new/lib/rspec/support/source/token.rb
--- old/lib/rspec/support/source/token.rb 2021-01-29 00:14:58.000000000
+0100
+++ new/lib/rspec/support/source/token.rb 2021-11-03 06:10:52.000000000
+0100
@@ -54,12 +54,16 @@
type == :on_kw
end
+ def equals_operator?
+ type == :on_op && string == '='
+ end
+
def opening?
opening_delimiter? || opening_keyword?
end
def closed_by?(other)
- closed_by_delimiter?(other) || closed_by_keyword?(other)
+ delimiter_closed_by?(other) || keyword_closed_by?(other)
end
private
@@ -73,13 +77,16 @@
CLOSING_KEYWORDS_BY_OPENING_KEYWORD.key?(string)
end
- def closed_by_delimiter?(other)
+ def delimiter_closed_by?(other)
other.type == CLOSING_TYPES_BY_OPENING_TYPE[type]
end
- def closed_by_keyword?(other)
- return false unless other.keyword?
- other.string == CLOSING_KEYWORDS_BY_OPENING_KEYWORD[string]
+ def keyword_closed_by?(other)
+ return false unless keyword?
+ return true if other.string ==
CLOSING_KEYWORDS_BY_OPENING_KEYWORD[string]
+
+ # Ruby 3's `end`-less method definition: `def method_name = body`
+ string == 'def' && other.equals_operator? && location.line ==
other.location.line
end
end
end
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 2021-01-29 00:14:58.000000000 +0100
+++ new/lib/rspec/support/version.rb 2021-11-03 06:10:52.000000000 +0100
@@ -1,7 +1,7 @@
module RSpec
module Support
module Version
- STRING = '3.10.2'
+ STRING = '3.10.3'
end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2021-01-29 00:14:58.000000000 +0100
+++ new/metadata 2021-11-03 06:10:52.000000000 +0100
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: rspec-support
version: !ruby/object:Gem::Version
- version: 3.10.2
+ version: 3.10.3
platform: ruby
authors:
- David Chelimsky
@@ -48,7 +48,7 @@
ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
F3MdtaDehhjC
-----END CERTIFICATE-----
-date: 2021-01-28 00:00:00.000000000 Z
+date: 2021-11-03 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: rake
@@ -125,7 +125,7 @@
- MIT
metadata:
bug_tracker_uri: https://github.com/rspec/rspec-support/issues
- changelog_uri:
https://github.com/rspec/rspec-support/blob/v3.10.2/Changelog.md
+ changelog_uri:
https://github.com/rspec/rspec-support/blob/v3.10.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
@@ -145,8 +145,8 @@
- !ruby/object:Gem::Version
version: '0'
requirements: []
-rubygems_version: 3.2.4
+rubygems_version: 3.2.22
signing_key:
specification_version: 4
-summary: rspec-support-3.10.2
+summary: rspec-support-3.10.3
test_files: []
Binary files old/metadata.gz.sig and new/metadata.gz.sig differ