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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d83f59fd0e86b57e1f9007ddcd710071091255333a97c4d58da168769f62b882
4
- data.tar.gz: 83824a404a65eb8d6d05d4946d1747823dab4d70fdcc5cd5a589e09c8cfdb67a
3
+ metadata.gz: df33d530f4332c047cc6a14af980d43085e74136a2b74221d94aad9d8ad5b43b
4
+ data.tar.gz: f0755472fffc30564bd332d9a21ec807cf3c34a43cbffc902ee205f7bfc441d2
5
5
  SHA512:
6
- metadata.gz: 8dddc57f6cc13086ff9b84d400156726fa06bd3c5468298cdf324088bad93e18c83f275bd17a01628a58f7ec06cfbd95f85bbebfd51a987c9ed426b3f839beba
7
- data.tar.gz: e5599be38bde11643bb4fe83edbf9a3722fee7e6139a8368acb3ee545dc58711b6784b63b3989f0412f7ecc9164150f7b61bb6fdc90092aa5c0a8341e43d84b5
6
+ metadata.gz: e2a4359d066d4db18317083cd458a94a37a288ec76864f8a2ff07fbf9d9443ed5500d826a3de27a72c219a8be5d3c2c71495f8e5e4762c6960996f489f211a57
7
+ data.tar.gz: 55c84e4f33eb00bc015651f06e1801ba6865d5751a7f0dc6c1ea6aa108eda992f3f135b95e8cba31baca6b42c34910b67ebdad240042004e84104d8fea5aa8e2
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.4.0
6
+
7
+ ### Added
8
+
9
+ - Support csend on RailsDeprecation/ToFormattedS.
10
+
5
11
  ## 0.3.0
6
12
 
7
13
  ### Changed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubocop-rails_deprecation (0.3.0)
4
+ rubocop-rails_deprecation (0.4.0)
5
5
  rubocop
6
6
 
7
7
  GEM
@@ -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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Deprecation
5
- VERSION = '0.3.0'
5
+ VERSION = '0.4.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-rails_deprecation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura