rubocop-rspec 3.10.1 → 3.10.2

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: 4dd90ecda80edb7aeadd84bf5866b0d6b7d44dca8d56601782b5686fa75c970e
4
- data.tar.gz: 5205b01345d70457d949142a464639589df5f87f3cd1ddfe7c8a64439bb519a1
3
+ metadata.gz: 61b047dc2dcdafc0499a7df00f8689fa68090a92b3a9897d37fee92a88655523
4
+ data.tar.gz: 52f2bd8775f31951731ca043c75297722f40d6fe943f5b8d9fadc9f54b6dfc66
5
5
  SHA512:
6
- metadata.gz: cca8c27b7c61499264c8dd30009dd00a1c3d13cc5dda8efa4ff930706845d8c7ce7630f1402520dd421d36a1ed2971dfa62f0f182fc032ebae7920618ba3aaa9
7
- data.tar.gz: b605960f8d588ccab7ebfa78874fe317e0fdf9c7db3b5cd0bdf682d226ac5326475f0cb05a123b491c21ccde6c60f82cc2cee18c30e593b6dc0ac204520fdebc
6
+ metadata.gz: 5f68a310bb36188a5bc1d0114c8c31606d3e7f280607f26a032177dd42c7fdf88b283166b8f41d3968559527985b9c3ea10f0da036b09945c3696c8632bab3a5
7
+ data.tar.gz: 37d2040cb0b7d48fed88ba954a4ec0601d9ba11c6a1b3547ef553e3b35f509b9dc89b23820635ed9e7048da6a7fe4611dc5167b679a3e26336b2f940c6858e73
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## Master (Unreleased)
4
4
 
5
+ ## 3.10.2 (2026-06-06)
6
+
7
+ - Fix false positives for `RSpec/SpecFilePathFormat` when `CustomTransform` maps a namespace to an empty string. ([@sakuro])
8
+ - Fix `RSpec/MatchWithSimpleRegex` to ignore regular expressions with options. ([@bquorning])
9
+
5
10
  ## 3.10.1 (2026-06-05)
6
11
 
7
12
  - Add `Strict` option to `RSpec/SharedContext` to flag `shared_context` whenever it contains examples, even alongside setup code. ([@Darhazer])
@@ -55,6 +55,7 @@ module RuboCop
55
55
 
56
56
  def simple_regexp?(node)
57
57
  return false if node.interpolation?
58
+ return false if node.regopt.children.any?
58
59
 
59
60
  parsed = Regexp::Parser.parse(node.content)
60
61
  parsed.expressions.all? { |expr| simple_expression?(expr) }
@@ -159,8 +159,9 @@ module RuboCop
159
159
  constants = namespace(constant) + constant.const_name.split('::')
160
160
 
161
161
  File.join(
162
- constants.map do |name|
163
- custom_transform.fetch(name) { camel_to_snake_case(name) }
162
+ constants.filter_map do |name|
163
+ path = custom_transform.fetch(name) { camel_to_snake_case(name) }
164
+ path unless path.empty?
164
165
  end
165
166
  )
166
167
  end
@@ -4,7 +4,7 @@ module RuboCop
4
4
  module RSpec
5
5
  # Version information for the RSpec RuboCop plugin.
6
6
  module Version
7
- STRING = '3.10.1'
7
+ STRING = '3.10.2'
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.10.1
4
+ version: 3.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Backus