rspec-support 3.13.6 → 3.13.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d35005fb4ae66fc37f335b75f5e4110d13bb44227d4b6a884b7a9824e808d960
4
- data.tar.gz: 565ad2fb924d29c20b92361a7f6551862caac886a4b2126e166debd798d8f79b
3
+ metadata.gz: e7790e455c3e15e1f80ececfdf85d2b7de6e1592fdf21417e52706a67d9162b9
4
+ data.tar.gz: 370eb09bcb1ceac6e8f4e55afcae7149f08e3ef931ed2b12651c7e26969b77e2
5
5
  SHA512:
6
- metadata.gz: 465f5fc672b71a77d5c4b12eb4fae9033bfa8462ab923b555b25f07b9d5014a283016858eede89d6e9a90487b03cb0efc7bde68d8b1d661a1128978ec36a82af
7
- data.tar.gz: bc449675ed83f62b5764f09c2dd270d26d9cdfeaa2bdd85cf458588358ed3e0733831c5d2e47140ce626714465f5ca3ca3101e6efda804af9808bc2d8d2ce5a9
6
+ metadata.gz: 2d9c9d57cd1bc1645fd98541c121925ccd0662bf4b3f55ab885ae67b5c1016eaa08ee72b2ac53b9cfb9b9aaac9cd6a5c591246ef16a149fb36a60ff3d9ad7928
7
+ data.tar.gz: 22a09575404dd69ba9aa1a7a16ee79d9b8c5f2ef8f4cdc08ead28100daa9418fc6b5ef540d87fea6635de019ad0d441e88bf5076437b37ab0e1ed26e215262b6
checksums.yaml.gz.sig CHANGED
Binary file
data/Changelog.md CHANGED
@@ -1,7 +1,24 @@
1
1
  ### Development
2
- [Full Changelog](https://github.com/rspec/rspec/compare/rspec-support-v3.13.6...3-13-maintenance)
2
+ [Full Changelog](https://github.com/rspec/rspec/compare/rspec-support-v3.13.8...3-13-maintenance)
3
3
 
4
- ### 3.13.6
4
+ ### 3.13.8 / 2026-11-06
5
+ [Full Changelog](http://github.com/rspec/rspec/compare/rspec-support-v3.13.7...rspec-support-v3.13.8)
6
+
7
+ Bug Fixes:
8
+
9
+ * Always return a boolean from `RSpec::Support::Ruby.rbx?` and
10
+ `RSpec::Support::Ruby.truffleruby?` (Phil Pirozhkov, rspec/rspec-support#486)
11
+ * Switch current thread data to alias/accessors to avoid issues with mocked systems.
12
+ (Samuel Williams, Jon Rowe, rspec/rspec#99)
13
+
14
+ ### 3.13.7 / 2026-01-28
15
+ [Full Changelog](http://github.com/rspec/rspec/compare/rspec-support-v3.13.6...rspec-support-v3.13.7)
16
+
17
+ Bug Fixes:
18
+
19
+ * Stop fuzzy matching causing false positives from Range objects. (Eric Mueller, rspec/rspec#298)
20
+
21
+ ### 3.13.6 / 2025-08-18
5
22
  [Full Changelog](http://github.com/rspec/rspec/compare/rspec-support-v3.13.5...rspec-support-v3.13.6)
6
23
 
7
24
  Bug Fixes:
@@ -9,7 +26,7 @@ Bug Fixes:
9
26
  * Change `RSpec::Support::HunkGenerator` to autoload rather than manual require, avoids
10
27
  a load order issue. (Jon Rowe, rspec/rspec#249)
11
28
 
12
- ### 3.13.5
29
+ ### 3.13.5 / 2025-05-27
13
30
  [Full Changelog](http://github.com/rspec/rspec/compare/rspec-support-v3.13.4...rspec-support-v3.13.5)
14
31
 
15
32
  Bug Fixes:
@@ -18,7 +35,7 @@ Bug Fixes:
18
35
  a check for keyword arguments, meaning a hash would be wrongly detected as keyword arguments
19
36
  when it should have been a positional argument. (Malcolm O'Hare, rspec/rspec#121)
20
37
 
21
- ### 3.13.4
38
+ ### 3.13.4 / 2025-05-01
22
39
  [Full Changelog](http://github.com/rspec/rspec/compare/rspec-support-v3.13.3...rspec-support-v3.13.4)
23
40
 
24
41
  Bug Fixes:
@@ -30,7 +47,7 @@ Bug Fixes:
30
47
 
31
48
  Bug Fixes:
32
49
 
33
- * Support for changes in diff-lcs and Ruby 3.4 in spec helpers. (Jon Rowe, #164 etc)
50
+ * Support for changes in diff-lcs and Ruby 3.4 in spec helpers. (Jon Rowe, rspec/rspec#164 etc)
34
51
 
35
52
  ### 3.13.2 / 2024-12-02
36
53
  [Full Changelog](http://github.com/rspec/rspec/compare/rspec-support-v3.13.1...rspec-support-v3.13.2)
@@ -10,6 +10,9 @@ module RSpec
10
10
  def self.values_match?(expected, actual)
11
11
  if Hash === actual
12
12
  return hashes_match?(expected, actual) if Hash === expected
13
+ elsif Range === expected
14
+ # Check that actual is an equivalent Range, rather than included/covered.
15
+ return expected == actual
13
16
  elsif Array === expected && Enumerable === actual && !(Struct === actual)
14
17
  return arrays_match?(expected, actual.to_a)
15
18
  end
@@ -39,7 +39,7 @@ module RSpec
39
39
  end
40
40
 
41
41
  def rbx?
42
- defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
42
+ !!defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
43
43
  end
44
44
 
45
45
  def non_mri?
@@ -51,7 +51,7 @@ module RSpec
51
51
  end
52
52
 
53
53
  def truffleruby?
54
- defined?(RUBY_ENGINE) && RUBY_ENGINE == 'truffleruby'
54
+ !!defined?(RUBY_ENGINE) && RUBY_ENGINE == 'truffleruby'
55
55
  end
56
56
  end
57
57
 
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ RSpec::Support.require_rspec_support "ruby_features"
4
+
5
+ module RSpec
6
+ module Support
7
+ module Spec
8
+ module Warnings
9
+ if RUBY_VERSION.to_f > 2.6
10
+ SUPPORTED_WARNINGS =
11
+ [
12
+ :deprecated,
13
+ :experimental
14
+ ]
15
+ SUPPORTED_WARNINGS << :strict_unused_block if RUBY_VERSION.to_f >= 3.4 && !RSpec::Support::Ruby.jruby?
16
+ SUPPORTED_WARNINGS.freeze
17
+
18
+ def self.setup
19
+ SUPPORTED_WARNINGS.each do |flag|
20
+ Warning[flag] = true
21
+ end
22
+ end
23
+ else
24
+ def self.setup
25
+ # Skip this check on Ruby 2.6 and below
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
@@ -8,6 +8,7 @@ RSpec::Support.require_rspec_support "spec/diff_helpers"
8
8
  RSpec::Support.require_rspec_support "spec/with_isolated_stderr"
9
9
  RSpec::Support.require_rspec_support "spec/stderr_splitter"
10
10
  RSpec::Support.require_rspec_support "spec/formatting_support"
11
+ RSpec::Support.require_rspec_support "spec/warnings"
11
12
  RSpec::Support.require_rspec_support "spec/with_isolated_directory"
12
13
  RSpec::Support.require_rspec_support "ruby_features"
13
14
 
@@ -3,7 +3,7 @@
3
3
  module RSpec
4
4
  module Support
5
5
  module Version
6
- STRING = '3.13.6'
6
+ STRING = '3.13.8'
7
7
  end
8
8
  end
9
9
  end
data/lib/rspec/support.rb CHANGED
@@ -1,5 +1,15 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ if RUBY_VERSION.to_f >= 2
4
+ class Thread
5
+ attr_accessor :__rspec_local_data
6
+
7
+ class << self
8
+ alias __rspec_current_thread current
9
+ end
10
+ end
11
+ end
12
+
3
13
  module RSpec
4
14
  module Support
5
15
  # @api private
@@ -93,7 +103,7 @@ module RSpec
93
103
  # A single thread local variable so we don't excessively pollute that namespace.
94
104
  if RUBY_VERSION.to_f >= 2
95
105
  def self.thread_local_data
96
- Thread.current.thread_variable_get(:__rspec) || Thread.current.thread_variable_set(:__rspec, {})
106
+ Thread.__rspec_current_thread.__rspec_local_data ||= {}
97
107
  end
98
108
  else
99
109
  def self.thread_local_data
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.13.6
4
+ version: 3.13.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Chelimsky
@@ -14,11 +14,11 @@ bindir: bin
14
14
  cert_chain:
15
15
  - |
16
16
  -----BEGIN CERTIFICATE-----
17
- MIIFvjCCA6agAwIBAgIJAPXjfUbCjdXVMA0GCSqGSIb3DQEBCwUAMIGAMQswCQYD
17
+ MIIFvjCCA6agAwIBAgIJAPXjfUbCjdXWMA0GC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WPHxbJWHXD02omKprkNuQKHpnXrW+mmbiO4IcqAMggiud+DaEQg20x
45
+ Dae4cNbvK5p3D+5xqvcEO2G4uCMDmJjrSd61kvTLBnm1qroHqrpi9GauEVWZZmD0
46
+ n0ph8oFAXOsKQWxZ+4uh6yGISk+WhngCZEVPZUjq7SIGAuVhQy2ZgwdjnLEz//lD
47
+ x0Qexp5yGeoxAL9qKM/RXYKtuRZBJV1z+L9A1YOtwaXXNg==
48
48
  -----END CERTIFICATE-----
49
49
  date: 1980-01-02 00:00:00.000000000 Z
50
50
  dependencies:
@@ -113,6 +113,7 @@ files:
113
113
  - lib/rspec/support/spec/shell_out.rb
114
114
  - lib/rspec/support/spec/stderr_splitter.rb
115
115
  - lib/rspec/support/spec/string_matcher.rb
116
+ - lib/rspec/support/spec/warnings.rb
116
117
  - lib/rspec/support/spec/with_isolated_directory.rb
117
118
  - lib/rspec/support/spec/with_isolated_stderr.rb
118
119
  - lib/rspec/support/version.rb
@@ -123,11 +124,11 @@ licenses:
123
124
  - MIT
124
125
  metadata:
125
126
  bug_tracker_uri: https://github.com/rspec/rspec/issues
126
- changelog_uri: https://github.com/rspec/rspec/blob/rspec-support-v3.13.6/rspec-support/Changelog.md
127
+ changelog_uri: https://github.com/rspec/rspec/blob/rspec-support-v3.13.8/rspec-support/Changelog.md
127
128
  documentation_uri: https://rspec.info/documentation/
128
129
  mailing_list_uri: https://groups.google.com/forum/#!forum/rspec
129
130
  rubygems_mfa_required: 'true'
130
- source_code_uri: https://github.com/rspec/rspec/blob/rspec-support-v3.13.6/rspec-support
131
+ source_code_uri: https://github.com/rspec/rspec/blob/rspec-support-v3.13.8/rspec-support
131
132
  rdoc_options:
132
133
  - "--charset=UTF-8"
133
134
  require_paths:
@@ -143,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
144
  - !ruby/object:Gem::Version
144
145
  version: '0'
145
146
  requirements: []
146
- rubygems_version: 3.6.7
147
+ rubygems_version: 4.0.20
147
148
  specification_version: 4
148
- summary: rspec-support-3.13.6
149
+ summary: rspec-support-3.13.8
149
150
  test_files: []
metadata.gz.sig CHANGED
Binary file