rubocop-rails_deprecation 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/lib/rubocop/cop/rails_deprecation/to_formatted_s.rb +2 -1
- data/lib/rubocop/rails_deprecation/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: df33d530f4332c047cc6a14af980d43085e74136a2b74221d94aad9d8ad5b43b
|
4
|
+
data.tar.gz: f0755472fffc30564bd332d9a21ec807cf3c34a43cbffc902ee205f7bfc441d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2a4359d066d4db18317083cd458a94a37a288ec76864f8a2ff07fbf9d9443ed5500d826a3de27a72c219a8be5d3c2c71495f8e5e4762c6960996f489f211a57
|
7
|
+
data.tar.gz: 55c84e4f33eb00bc015651f06e1801ba6865d5751a7f0dc6c1ea6aa108eda992f3f135b95e8cba31baca6b42c34910b67ebdad240042004e84104d8fea5aa8e2
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -30,7 +30,7 @@ module RuboCop
|
|
30
30
|
MSG = 'Use `to_fs(...)` instead of `to_s(...)`.'
|
31
31
|
|
32
32
|
def_node_matcher :to_s_with_any_argument?, <<~PATTERN
|
33
|
-
(send _ :to_s _ ...)
|
33
|
+
({csend | send} _ :to_s _ ...)
|
34
34
|
PATTERN
|
35
35
|
|
36
36
|
def on_send(node)
|
@@ -43,6 +43,7 @@ module RuboCop
|
|
43
43
|
)
|
44
44
|
end
|
45
45
|
end
|
46
|
+
alias on_csend on_send
|
46
47
|
end
|
47
48
|
end
|
48
49
|
end
|