rubocop-fourshark 0.5.0 → 0.5.1
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 +4 -4
- data/CHANGELOG.md +6 -0
- data/config/default.yml +6 -7
- data/lib/rubocop/fourshark/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 41cd76136c01c232f0172ee89eed1812e4c9becb8d34f53b164848d82695bad3
|
|
4
|
+
data.tar.gz: d5fda1ef5f623c50ff6cad9db4f332b44df2bf851be64c4d604adb70e558bad3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1950be7fc24c28c1b89dfd0208da4e2ac997b300ee5a01ecee42601e4bda5fe192619f36d1e26d5da00ff5ca164fb19ab087f09a8ff515ae6510547b3d938e7c
|
|
7
|
+
data.tar.gz: 78ed7eb5c9dd271902c2c857bdf2fe10f646bca60246813c5a7313e4a886e4e8e7b2ae7e7a516179b13f7bee2f0734f96690b89d2f9276cef3fb146f1eb620a1
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [0.5.1] - 2026-06-29
|
|
2
|
+
|
|
3
|
+
### Fixed
|
|
4
|
+
|
|
5
|
+
- `RSpec/Dialect` no longer remaps `subject`/`subject!` to `let`; only `let!` is remapped. The blind identifier rename rewrote value references such as `expect(subject)` into invalid `expect(let)`
|
|
6
|
+
|
|
1
7
|
## [0.5.0] - 2026-06-29
|
|
2
8
|
|
|
3
9
|
### Changed
|
data/config/default.yml
CHANGED
|
@@ -56,16 +56,15 @@ Rails/OrderedMacros:
|
|
|
56
56
|
- 'app/models/**/*.rb'
|
|
57
57
|
VersionAdded: '0.2.0'
|
|
58
58
|
|
|
59
|
-
# Stock cop configured (not a 4Shark cop): map `
|
|
60
|
-
#
|
|
61
|
-
# `
|
|
62
|
-
#
|
|
59
|
+
# Stock cop configured (not a 4Shark cop): map `let!` to `let` so every eager
|
|
60
|
+
# `let!` call is flagged in favor of a lazy `let` (force creation in an explicit
|
|
61
|
+
# `before`, not with `let!`). `subject`/`subject!` are intentionally NOT remapped:
|
|
62
|
+
# RSpec/Dialect renames the identifier blindly, so a `subject` -> `let` mapping
|
|
63
|
+
# also rewrites value references like `expect(subject)` into invalid `expect(let)`.
|
|
63
64
|
RSpec/Dialect:
|
|
64
|
-
Description: '
|
|
65
|
+
Description: 'Prefer a lazy `let` over `let!` — force creation in an explicit `before`, not with `let!`.'
|
|
65
66
|
Enabled: true
|
|
66
67
|
PreferredMethods:
|
|
67
|
-
subject: let
|
|
68
|
-
subject!: let
|
|
69
68
|
let!: let
|
|
70
69
|
Include:
|
|
71
70
|
- 'spec/**/*_spec.rb'
|