rspec-pending_for 0.1.19 → 0.1.21

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.
data/SECURITY.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Version | Supported |
6
6
  |----------|-----------|
7
- | 1.latest | ✅ |
7
+ | 0.latest | ✅ |
8
8
 
9
9
  ## Security contact information
10
10
 
data/certs/pboling.pem ADDED
@@ -0,0 +1,27 @@
1
+ -----BEGIN CERTIFICATE-----
2
+ MIIEgDCCAuigAwIBAgIBATANBgkqhkiG9w0BAQsFADBDMRUwEwYDVQQDDAxwZXRl
3
+ ci5ib2xpbmcxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkW
4
+ A2NvbTAeFw0yNTA1MDQxNTMzMDlaFw00NTA0MjkxNTMzMDlaMEMxFTATBgNVBAMM
5
+ DHBldGVyLmJvbGluZzEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPy
6
+ LGQBGRYDY29tMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAruUoo0WA
7
+ uoNuq6puKWYeRYiZekz/nsDeK5x/0IEirzcCEvaHr3Bmz7rjo1I6On3gGKmiZs61
8
+ LRmQ3oxy77ydmkGTXBjruJB+pQEn7UfLSgQ0xa1/X3kdBZt6RmabFlBxnHkoaGY5
9
+ mZuZ5+Z7walmv6sFD9ajhzj+oIgwWfnEHkXYTR8I6VLN7MRRKGMPoZ/yvOmxb2DN
10
+ coEEHWKO9CvgYpW7asIihl/9GMpKiRkcYPm9dGQzZc6uTwom1COfW0+ZOFrDVBuV
11
+ FMQRPswZcY4Wlq0uEBLPU7hxnCL9nKK6Y9IhdDcz1mY6HZ91WImNslOSI0S8hRpj
12
+ yGOWxQIhBT3fqCBlRIqFQBudrnD9jSNpSGsFvbEijd5ns7Z9ZMehXkXDycpGAUj1
13
+ to/5cuTWWw1JqUWrKJYoifnVhtE1o1DZ+LkPtWxHtz5kjDG/zR3MG0Ula0UOavlD
14
+ qbnbcXPBnwXtTFeZ3C+yrWpE4pGnl3yGkZj9SMTlo9qnTMiPmuWKQDatAgMBAAGj
15
+ fzB9MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBQE8uWvNbPVNRXZ
16
+ HlgPbc2PCzC4bjAhBgNVHREEGjAYgRZwZXRlci5ib2xpbmdAZ21haWwuY29tMCEG
17
+ A1UdEgQaMBiBFnBldGVyLmJvbGluZ0BnbWFpbC5jb20wDQYJKoZIhvcNAQELBQAD
18
+ ggGBAJbnUwfJQFPkBgH9cL7hoBfRtmWiCvdqdjeTmi04u8zVNCUox0A4gT982DE9
19
+ wmuN12LpdajxZONqbXuzZvc+nb0StFwmFYZG6iDwaf4BPywm2e/Vmq0YG45vZXGR
20
+ L8yMDSK1cQXjmA+ZBKOHKWavxP6Vp7lWvjAhz8RFwqF9GuNIdhv9NpnCAWcMZtpm
21
+ GUPyIWw/Cw/2wZp74QzZj6Npx+LdXoLTF1HMSJXZ7/pkxLCsB8m4EFVdb/IrW/0k
22
+ kNSfjtAfBHO8nLGuqQZVH9IBD1i9K6aSs7pT6TW8itXUIlkIUI2tg5YzW6OFfPzq
23
+ QekSkX3lZfY+HTSp/o+YvKkqWLUV7PQ7xh1ZYDtocpaHwgxe/j3bBqHE+CUPH2vA
24
+ 0V/FwdTRWcwsjVoOJTrYcff8pBZ8r2MvtAc54xfnnhGFzeRHfcltobgFxkAXdE6p
25
+ DVjBtqT23eugOqQ73umLcYDZkc36vnqGxUBSsXrzY9pzV5gGr2I8YUxMqf6ATrZt
26
+ L9nRqA==
27
+ -----END CERTIFICATE-----
@@ -30,7 +30,7 @@ module Rspec
30
30
  "maglev" => "MagLev",
31
31
  "ironruby" => "IronRuby",
32
32
  "cardinal" => "Cardinal",
33
- "truffleruby" => "Truffle Ruby",
33
+ "truffleruby" => "Truffle Ruby"
34
34
  }.freeze
35
35
  BROKEN_STRING = "Behavior is broken"
36
36
  BUG_STRING = "due to a bug in the Ruby engine"
@@ -71,7 +71,7 @@ module Rspec
71
71
 
72
72
  # Determine whether the current Ruby version matches any of the provided version specs.
73
73
  # A version spec may be:
74
- # - String: exact match against RubyVersion.to_s
74
+ # - String: exact match against RubyVersion.to_s, or "head" for dev/SNAPSHOT builds
75
75
  # - Range[Gem::Version, Gem::Version]: inclusive/exclusive respected
76
76
  # - Range[Integer, Integer]: compares major version from RubyVersion.to_s
77
77
  def versions_include_current?
@@ -81,13 +81,15 @@ module Rspec
81
81
  current_major = current_str.to_s.split(".").first.to_i
82
82
  current_gemv = begin
83
83
  Gem::Version.new(current_str.to_s)
84
- rescue StandardError
84
+ rescue
85
85
  nil
86
86
  end
87
87
 
88
88
  relevant_versions.any? do |spec|
89
89
  case spec
90
90
  when String
91
+ next head_build? if spec == "head"
92
+
91
93
  # Support minor-version shorthand like "3.1" to match any 3.1.x
92
94
  if spec.to_s =~ /^\d+\.\d+$/
93
95
  current_major_minor = current_str.to_s.split(".")[0, 2].join(".")
@@ -104,13 +106,13 @@ module Rspec
104
106
  if spec.exclude_end?
105
107
  b <= current_gemv && current_gemv < e
106
108
  else
107
- b <= current_gemv && current_gemv <= e
109
+ current_gemv.between?(b, e)
108
110
  end
109
111
  elsif b.is_a?(Integer) && e.is_a?(Integer)
110
112
  if spec.exclude_end?
111
113
  b <= current_major && current_major < e
112
114
  else
113
- b <= current_major && current_major <= e
115
+ current_major.between?(b, e)
114
116
  end
115
117
  else
116
118
  # Fallback: try cover? with the string form (likely false if incomparable)
@@ -122,6 +124,10 @@ module Rspec
122
124
  end
123
125
  end
124
126
 
127
+ def head_build?
128
+ RUBY_DESCRIPTION.to_s.match?(/\b(?:dev|head|SNAPSHOT)\b/i)
129
+ end
130
+
125
131
  def warn_about_unrecognized_engine
126
132
  return false if relevant_engine.nil? || !INTERPRETER_MATRIX[relevant_engine].nil?
127
133
 
@@ -3,10 +3,8 @@
3
3
  module Rspec
4
4
  module PendingFor
5
5
  module Version
6
- VERSION = "0.1.19"
6
+ VERSION = "0.1.21"
7
7
  end
8
-
9
- # Backwards compatability shim.
10
- VERSION = Version::VERSION
8
+ VERSION = Version::VERSION # Traditional Constant Location
11
9
  end
12
10
  end
@@ -1,14 +1,17 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # External Libraries
4
+ require_relative "pending_for/version"
5
+
4
6
  require "ruby_version"
5
7
  require "ruby_engine"
6
8
 
7
9
  # This gem
8
- require_relative "pending_for/version"
9
- require_relative "pending_for/engine_or_versions_required"
10
- require_relative "pending_for/build"
11
- require_relative "pending_for/rspec"
10
+ # NOTE: Switch to require_relative once dropping support for Ruby < 2.2
11
+ require "rspec/pending_for/version"
12
+ require "rspec/pending_for/engine_or_versions_required"
13
+ require "rspec/pending_for/build"
14
+ require "rspec/pending_for/rspec"
12
15
 
13
16
  module Rspec
14
17
  # Use with Rspec by including in your example groups, just like any other Rspec helpers:
@@ -31,7 +34,7 @@ module Rspec
31
34
  # @option options [String,Symbol] :engine ("ruby") Ruby engine name to match, e.g. :ruby, :jruby, :truffleruby
32
35
  # @option options [String,Range,Array<String,Range>] :versions
33
36
  # A single version string or range, or an Array of version specs. Each spec can be:
34
- # - String: exact version match (e.g., "2.7.8")
37
+ # - String: exact version match (e.g., "2.7.8") or "head" for head/dev/SNAPSHOT builds
35
38
  # - Range<Gem::Version>: inclusive/exclusive bounds respected (e.g., Gem::Version.new("2.6.0")...Gem::Version.new("3.0.0"))
36
39
  # - Range<Integer>: compares Ruby major version (e.g., 2..3). Inclusive/exclusive respected.
37
40
  # JRuby/TruffleRuby are supported via RUBY_VERSION compatibility for Integer ranges and Gem::Version ranges.
@@ -53,7 +56,7 @@ module Rspec
53
56
  # @option options [String,Symbol] :engine ("ruby") Ruby engine name to match, e.g. :ruby, :jruby, :truffleruby
54
57
  # @option options [String,Range,Array<String,Range>] :versions
55
58
  # A single version string or range, or an Array of version specs. Each spec can be:
56
- # - String: exact version match (e.g., "2.7.8")
59
+ # - String: exact version match (e.g., "2.7.8") or "head" for head/dev/SNAPSHOT builds
57
60
  # - Range<Gem::Version>: inclusive/exclusive bounds respected (e.g., Gem::Version.new("2.6.0")...Gem::Version.new("3.0.0"))
58
61
  # - Range<Integer>: compares Ruby major version (e.g., 2..3). Inclusive/exclusive respected.
59
62
  # JRuby/TruffleRuby are supported via RUBY_VERSION compatibility for Integer ranges and Gem::Version ranges.
@@ -1 +1 @@
1
- require_relative "rspec/pending_for"
1
+ require "rspec/pending_for"
@@ -0,0 +1,8 @@
1
+ module Rspec
2
+ module PendingFor
3
+ module Version
4
+ VERSION: String
5
+ end
6
+ VERSION: String
7
+ end
8
+ end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-pending_for
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
4
+ version: 0.1.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter H. Boling
@@ -37,26 +37,6 @@ cert_chain:
37
37
  -----END CERTIFICATE-----
38
38
  date: 1980-01-02 00:00:00.000000000 Z
39
39
  dependencies:
40
- - !ruby/object:Gem::Dependency
41
- name: version_gem
42
- requirement: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - "~>"
45
- - !ruby/object:Gem::Version
46
- version: '1.1'
47
- - - ">="
48
- - !ruby/object:Gem::Version
49
- version: 1.1.8
50
- type: :runtime
51
- prerelease: false
52
- version_requirements: !ruby/object:Gem::Requirement
53
- requirements:
54
- - - "~>"
55
- - !ruby/object:Gem::Version
56
- version: '1.1'
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- version: 1.1.8
60
40
  - !ruby/object:Gem::Dependency
61
41
  name: rspec-core
62
42
  requirement: !ruby/object:Gem::Requirement
@@ -105,28 +85,34 @@ dependencies:
105
85
  requirements:
106
86
  - - "~>"
107
87
  - !ruby/object:Gem::Version
108
- version: '1.0'
88
+ version: '2.2'
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: 2.2.24
109
92
  type: :development
110
93
  prerelease: false
111
94
  version_requirements: !ruby/object:Gem::Requirement
112
95
  requirements:
113
96
  - - "~>"
114
97
  - !ruby/object:Gem::Version
115
- version: '1.0'
98
+ version: '2.2'
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: 2.2.24
116
102
  - !ruby/object:Gem::Dependency
117
103
  name: bundler-audit
118
104
  requirement: !ruby/object:Gem::Requirement
119
105
  requirements:
120
106
  - - "~>"
121
107
  - !ruby/object:Gem::Version
122
- version: 0.9.2
108
+ version: 0.9.3
123
109
  type: :development
124
110
  prerelease: false
125
111
  version_requirements: !ruby/object:Gem::Requirement
126
112
  requirements:
127
113
  - - "~>"
128
114
  - !ruby/object:Gem::Version
129
- version: 0.9.2
115
+ version: 0.9.3
130
116
  - !ruby/object:Gem::Dependency
131
117
  name: rake
132
118
  requirement: !ruby/object:Gem::Requirement
@@ -167,48 +153,60 @@ dependencies:
167
153
  requirements:
168
154
  - - "~>"
169
155
  - !ruby/object:Gem::Version
170
- version: '3.0'
156
+ version: '3.1'
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: 3.1.3
171
160
  type: :development
172
161
  prerelease: false
173
162
  version_requirements: !ruby/object:Gem::Requirement
174
163
  requirements:
175
164
  - - "~>"
176
165
  - !ruby/object:Gem::Version
177
- version: '3.0'
166
+ version: '3.1'
167
+ - - ">="
168
+ - !ruby/object:Gem::Version
169
+ version: 3.1.3
178
170
  - !ruby/object:Gem::Dependency
179
171
  name: kettle-test
180
172
  requirement: !ruby/object:Gem::Requirement
181
173
  requirements:
182
174
  - - "~>"
183
175
  - !ruby/object:Gem::Version
184
- version: '1.0'
176
+ version: '2.0'
177
+ - - ">="
178
+ - !ruby/object:Gem::Version
179
+ version: 2.0.8
185
180
  type: :development
186
181
  prerelease: false
187
182
  version_requirements: !ruby/object:Gem::Requirement
188
183
  requirements:
189
184
  - - "~>"
190
185
  - !ruby/object:Gem::Version
191
- version: '1.0'
186
+ version: '2.0'
187
+ - - ">="
188
+ - !ruby/object:Gem::Version
189
+ version: 2.0.8
192
190
  - !ruby/object:Gem::Dependency
193
- name: rspec-pending_for
191
+ name: turbo_tests2
194
192
  requirement: !ruby/object:Gem::Requirement
195
193
  requirements:
196
194
  - - "~>"
197
195
  - !ruby/object:Gem::Version
198
- version: '0.0'
196
+ version: '3.1'
199
197
  - - ">="
200
198
  - !ruby/object:Gem::Version
201
- version: 0.0.17
199
+ version: 3.1.5
202
200
  type: :development
203
201
  prerelease: false
204
202
  version_requirements: !ruby/object:Gem::Requirement
205
203
  requirements:
206
204
  - - "~>"
207
205
  - !ruby/object:Gem::Version
208
- version: '0.0'
206
+ version: '3.1'
209
207
  - - ">="
210
208
  - !ruby/object:Gem::Version
211
- version: 0.0.17
209
+ version: 3.1.5
212
210
  - !ruby/object:Gem::Dependency
213
211
  name: ruby-progressbar
214
212
  requirement: !ruby/object:Gem::Requirement
@@ -232,7 +230,7 @@ dependencies:
232
230
  version: '1.0'
233
231
  - - ">="
234
232
  - !ruby/object:Gem::Version
235
- version: 1.0.2
233
+ version: 1.0.4
236
234
  type: :development
237
235
  prerelease: false
238
236
  version_requirements: !ruby/object:Gem::Requirement
@@ -242,27 +240,27 @@ dependencies:
242
240
  version: '1.0'
243
241
  - - ">="
244
242
  - !ruby/object:Gem::Version
245
- version: 1.0.2
243
+ version: 1.0.4
246
244
  - !ruby/object:Gem::Dependency
247
245
  name: gitmoji-regex
248
246
  requirement: !ruby/object:Gem::Requirement
249
247
  requirements:
250
248
  - - "~>"
251
249
  - !ruby/object:Gem::Version
252
- version: '1.0'
250
+ version: '2.0'
253
251
  - - ">="
254
252
  - !ruby/object:Gem::Version
255
- version: 1.0.3
253
+ version: 2.0.3
256
254
  type: :development
257
255
  prerelease: false
258
256
  version_requirements: !ruby/object:Gem::Requirement
259
257
  requirements:
260
258
  - - "~>"
261
259
  - !ruby/object:Gem::Version
262
- version: '1.0'
260
+ version: '2.0'
263
261
  - - ">="
264
262
  - !ruby/object:Gem::Version
265
- version: 1.0.3
263
+ version: 2.0.3
266
264
  description: "⏳️ Mark specs pending or skipped for specific Ruby engine (e.g. MRI
267
265
  or JRuby) & versions, or version ranges. Fund overlooked open source projects -
268
266
  bottom of stack, dev/test dependencies: floss-funding.dev"
@@ -276,9 +274,8 @@ extra_rdoc_files:
276
274
  - CODE_OF_CONDUCT.md
277
275
  - CONTRIBUTING.md
278
276
  - FUNDING.md
279
- - LICENSE.txt
277
+ - LICENSE.md
280
278
  - README.md
281
- - REEK
282
279
  - RUBOCOP.md
283
280
  - SECURITY.md
284
281
  files:
@@ -287,11 +284,12 @@ files:
287
284
  - CODE_OF_CONDUCT.md
288
285
  - CONTRIBUTING.md
289
286
  - FUNDING.md
290
- - LICENSE.txt
287
+ - LICENSE.md
288
+ - MIT.md
291
289
  - README.md
292
- - REEK
293
290
  - RUBOCOP.md
294
291
  - SECURITY.md
292
+ - certs/pboling.pem
295
293
  - lib/rspec-pending_for.rb
296
294
  - lib/rspec/pending_for.rb
297
295
  - lib/rspec/pending_for/build.rb
@@ -300,15 +298,16 @@ files:
300
298
  - lib/rspec/pending_for/version.rb
301
299
  - sig/rspec/pending_for.rbs
302
300
  - sig/rspec/pending_for/build.rbs
301
+ - sig/rspec/pending_for/version.rbs
303
302
  homepage: https://github.com/galtzo-floss/rspec-pending_for
304
303
  licenses:
305
304
  - MIT
306
305
  metadata:
307
306
  homepage_uri: https://rspec-pending-for.galtzo.com/
308
- source_code_uri: https://github.com/galtzo-floss/rspec-pending_for/tree/v0.1.19
309
- changelog_uri: https://github.com/galtzo-floss/rspec-pending_for/blob/v0.1.19/CHANGELOG.md
307
+ source_code_uri: https://github.com/galtzo-floss/rspec-pending_for/tree/v0.1.21
308
+ changelog_uri: https://github.com/galtzo-floss/rspec-pending_for/blob/v0.1.21/CHANGELOG.md
310
309
  bug_tracker_uri: https://github.com/galtzo-floss/rspec-pending_for/issues
311
- documentation_uri: https://www.rubydoc.info/gems/rspec-pending_for/0.1.19
310
+ documentation_uri: https://www.rubydoc.info/gems/rspec-pending_for/0.1.21
312
311
  funding_uri: https://github.com/sponsors/pboling
313
312
  wiki_uri: https://github.com/galtzo-floss/rspec-pending_for/wiki
314
313
  news_uri: https://www.railsbling.com/tags/rspec-pending_for
@@ -338,7 +337,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
338
337
  - !ruby/object:Gem::Version
339
338
  version: '0'
340
339
  requirements: []
341
- rubygems_version: 3.7.1
340
+ rubygems_version: 4.0.10
342
341
  specification_version: 4
343
342
  summary: "⏳️ Mark specs pending or skipped for specified Ruby versions or engines"
344
343
  test_files: []
metadata.gz.sig CHANGED
Binary file
data/LICENSE.txt DELETED
@@ -1,22 +0,0 @@
1
- Copyright (c) 2015-2018, 2020-2022, 2025 Peter H. Boling of Galtzo.com
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/REEK DELETED
File without changes