rubocop-vendor 0.5.0 → 0.6.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: df0960a7f70d9595e65685ba09c4ff6483eaa7f35039942d9e17522806852a05
4
- data.tar.gz: 034c31c0811ab28653b3b86526032f9b681cd0154f61faa080ac08916c020c34
3
+ metadata.gz: 69207722d1f85c15ec43d9206abb228f4051f9bf5bb6df6891975427ffbcee57
4
+ data.tar.gz: 37d1f7a6075504487894018da7f7adb11d70c7e9d774f7a659c9a20f372e93d5
5
5
  SHA512:
6
- metadata.gz: 8e6122390ff0d267bffa7fc3f91367b0e27522f0ebcc5655b7c142c0a6bd9e76fe9c5cc2f5a14adab999e72c8d2640aad5a88cc2a6f5cabe9e4809f60885cfcd
7
- data.tar.gz: faca304ed5502022918f4ed211c0528e4856ccb58311b1b3e092f408fd001913f4c59efd139f0ba6cccad35f7baec76f4a9525ce2339fbaa7c40530cdd2c1b0d
6
+ metadata.gz: 7d4bb0376770d8be587725522cacf89ee448d4476d2f92a05656c9847d6169935076cefed131de3e2aad36107fb94893cd4197d88e034358cb68584f27e63284
7
+ data.tar.gz: e0e48ef333ed5842e26ba7a8b0e3fa4326f35cd240df0d44685dd6e650ad1714daaf0388e72a5ed6ac4f39d10b59623c3eb69462977e47993cefb2c93ad2365a
@@ -32,11 +32,13 @@ module RuboCop
32
32
  class RollbarInsideRescue < Cop
33
33
  MSG = 'Only call Rollbar when handling errors inside a `rescue` block.'
34
34
 
35
+ # @!method rollbar?(node)
35
36
  def_node_matcher :rollbar?, <<-PATTERN
36
37
  (send
37
38
  (const nil? :Rollbar) {:log :debug :info :warning :error :critical} ...)
38
39
  PATTERN
39
40
 
41
+ # @!method active_support_rescuable_block?(node)
40
42
  def_node_matcher :active_support_rescuable_block?, <<-PATTERN
41
43
  (block
42
44
  (send nil? :rescue_from ...) ...)
@@ -19,6 +19,7 @@ module RuboCop
19
19
  class RollbarInterpolation < Cop
20
20
  MSG = 'Send extra fields as hash parameter instead of interpolated message.'
21
21
 
22
+ # @!method bad_method?(node)
22
23
  def_node_matcher :bad_method?, <<-PATTERN
23
24
  (send
24
25
  (const nil? :Rollbar) {:error :critical}
@@ -20,6 +20,7 @@ module RuboCop
20
20
 
21
21
  MSG = 'Use `Rollbar.%<method>s` instead of `Rollbar.log`.'
22
22
 
23
+ # @!method bad_method?(node)
23
24
  def_node_matcher :bad_method?, <<-PATTERN
24
25
  (send
25
26
  (const nil? :Rollbar) :log
@@ -20,6 +20,7 @@ module RuboCop
20
20
  class RollbarLogger < Cop
21
21
  MSG = 'Use `Rails.logger` for `debug`, `info` or `warning` calls.'
22
22
 
23
+ # @!method bad_method?(node)
23
24
  def_node_matcher :bad_method?, <<-PATTERN
24
25
  (send (const nil? :Rollbar) {:debug :info :warning} {str hash})
25
26
  PATTERN
@@ -24,6 +24,7 @@ module RuboCop
24
24
 
25
25
  MSG = 'Send exception as first parameter when calling `error` or `critical`.'
26
26
 
27
+ # @!method bad_method?(node)
27
28
  def_node_matcher :bad_method?, <<-PATTERN
28
29
  (send
29
30
  (const nil? :Rollbar) {:error :critical}
@@ -3,7 +3,7 @@
3
3
  module RuboCop
4
4
  module Vendor
5
5
  module Version
6
- STRING = '0.5.0'
6
+ STRING = '0.6.0'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-vendor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danilo Cabello
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-05-22 00:00:00.000000000 Z
13
+ date: 2021-03-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rubocop