rspec-support 3.11.1 → 3.12.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ab2db5594163c1b2bd0b6f4cc76a7f9450b6b565d0450899ba4763e873b5276
4
- data.tar.gz: 0accbb903f580db0cdebdd8bf87f0376652e3504f0d8f6ee743b7a16e8ea8436
3
+ metadata.gz: cd43ff0da6f307b7e9ccc56ceb9e3fdd972f27b7d160b8ba860c6625bb62f39b
4
+ data.tar.gz: a0c09feee171d7a1b02793888c995d9dd42f20660b6449db9c79eeed4a297b3f
5
5
  SHA512:
6
- metadata.gz: bee776ca4085e78b102d014b6e5f065f5b94a17a1f6c1f5f158e3b4a7db6830be5c0c68c782be28657d3c0902a87258b6e952aabcffa38f36eb21f76f98fd4ce
7
- data.tar.gz: b9844cbb6dcbfbbcee1b0c0f75cc901454c081b1dd95106fce0a50fbce76a4ba06ca3431b312b6384783134795cc76b28661ca55fd7640a4c0236fbc10c61d9c
6
+ metadata.gz: 247e3e818ef3c367c1ecbc4938dca5a0ca7c9b185c1b608900461e146ea1f8c5053e0d97adc692cd0871debeb764407a3403682ce425aebf1de6511f17f366fc
7
+ data.tar.gz: b3b600ca9061f37b529af60308df73b4c9724de1d173ee01eda44c0f61404396d8f2af7a52b071db93299bb607905e8b1aa3ddac29cc364ef41136a1815735d1
checksums.yaml.gz.sig CHANGED
Binary file
data/Changelog.md CHANGED
@@ -1,5 +1,20 @@
1
1
  ### Development
2
- [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.11.1...3-11-maintenance)
2
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.12.1...3-12-maintenance)
3
+
4
+ ### 3.12.1 / 2023-06-26
5
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.12.0...v3.12.1)
6
+
7
+ Bug Fixes:
8
+
9
+ * Fix `RSpec::Support.thread_local_data` to be Thread local but not Fiber local.
10
+ (Jon Rowe, #581)
11
+
12
+ ### 3.12.0 / 2022-10-26
13
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.11.1...v3.12.0)
14
+ Enhancements:
15
+
16
+ * Add `RSpec::Support::RubyFeatures.distincts_kw_args_from_positional_hash?`
17
+ (Jean byroot Boussier, #535)
3
18
 
4
19
  ### 3.11.1 / 2022-09-12
5
20
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.11.0...v3.11.1)
@@ -129,6 +129,10 @@ module RSpec
129
129
  end
130
130
  end
131
131
 
132
+ def distincts_kw_args_from_positional_hash?
133
+ RUBY_VERSION >= '3.0.0'
134
+ end
135
+
132
136
  if Ruby.mri?
133
137
  def kw_args_supported?
134
138
  RUBY_VERSION >= '2.0.0'
@@ -77,6 +77,9 @@ module RSpec
77
77
  # This is a JRuby 9.2.1.x error
78
78
  %r{jruby/kernel/gem_prelude},
79
79
  %r{lib/jruby\.jar!/jruby/preludes},
80
+ # Ignore some JRuby errors for gems
81
+ %r{jruby/\d\.\d(\.\d)?/gems/aruba},
82
+ %r{jruby/\d\.\d(\.\d)?/gems/ffi},
80
83
  ]
81
84
 
82
85
  def strip_known_warnings(input)
@@ -1,7 +1,7 @@
1
1
  module RSpec
2
2
  module Support
3
3
  module Version
4
- STRING = '3.11.1'
4
+ STRING = '3.12.1'
5
5
  end
6
6
  end
7
7
  end
data/lib/rspec/support.rb CHANGED
@@ -89,8 +89,14 @@ module RSpec
89
89
  end
90
90
 
91
91
  # A single thread local variable so we don't excessively pollute that namespace.
92
- def self.thread_local_data
93
- Thread.current[:__rspec] ||= {}
92
+ if RUBY_VERSION.to_f >= 2
93
+ def self.thread_local_data
94
+ Thread.current.thread_variable_get(:__rspec) || Thread.current.thread_variable_set(:__rspec, {})
95
+ end
96
+ else
97
+ def self.thread_local_data
98
+ Thread.current[:__rspec] ||= {}
99
+ end
94
100
  end
95
101
 
96
102
  # @api private
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-support
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.11.1
4
+ version: 3.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Chelimsky
@@ -10,7 +10,7 @@ authors:
10
10
  - Sam Phippen
11
11
  - Xaviery Shay
12
12
  - Bradley Schaefer
13
- autorequire:
13
+ autorequire:
14
14
  bindir: bin
15
15
  cert_chain:
16
16
  - |
@@ -48,7 +48,7 @@ cert_chain:
48
48
  ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
49
49
  F3MdtaDehhjC
50
50
  -----END CERTIFICATE-----
51
- date: 2022-09-12 00:00:00.000000000 Z
51
+ date: 2023-06-26 00:00:00.000000000 Z
52
52
  dependencies:
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: rake
@@ -125,11 +125,11 @@ licenses:
125
125
  - MIT
126
126
  metadata:
127
127
  bug_tracker_uri: https://github.com/rspec/rspec-support/issues
128
- changelog_uri: https://github.com/rspec/rspec-support/blob/v3.11.1/Changelog.md
128
+ changelog_uri: https://github.com/rspec/rspec-support/blob/v3.12.1/Changelog.md
129
129
  documentation_uri: https://rspec.info/documentation/
130
130
  mailing_list_uri: https://groups.google.com/forum/#!forum/rspec
131
131
  source_code_uri: https://github.com/rspec/rspec-support
132
- post_install_message:
132
+ post_install_message:
133
133
  rdoc_options:
134
134
  - "--charset=UTF-8"
135
135
  require_paths:
@@ -145,8 +145,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  - !ruby/object:Gem::Version
146
146
  version: '0'
147
147
  requirements: []
148
- rubygems_version: 3.1.6
149
- signing_key:
148
+ rubygems_version: 3.4.1
149
+ signing_key:
150
150
  specification_version: 4
151
- summary: rspec-support-3.11.1
151
+ summary: rspec-support-3.12.1
152
152
  test_files: []
metadata.gz.sig CHANGED
Binary file