rf-stylez 1.2.4 → 1.2.5

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: 86e894cc20a9959208f3ed851d1d5a93a6597547e0d4cec09d082edb5a441b09
4
- data.tar.gz: 8a5d5b74dd9061865272a704401b70f6922e9ef055494e6f46954078a66341bf
3
+ metadata.gz: '08dfc12d848751335a01204c44dd71f246b41f1a5c9182b345d01229e2e30eae'
4
+ data.tar.gz: 2a54cac09a961ca4824bd7db0c679eee2dd8ac5715d510e315e5ad9ca453746e
5
5
  SHA512:
6
- metadata.gz: 17c63b9e2187020b472b61888e7255d4d8f7aa93fe82b13044b2965b024a394503e580ef72657b1683390221ad90f64f881dd62cde5d2e82c61454edcb53009b
7
- data.tar.gz: f4344277de74b8535153ed5774776677ec86e0b86743104d31cbe11fd22d79bd59706d2e6494d4e8360691281e7c6bf2e5e3cd25675f948c830bc87ead4cb97d
6
+ metadata.gz: 223ba579fd8bf9064ae6337025a867db236c06bb200bfae34b7e226011cb2b3c5c5bc042f7903a53666f976a2721401ba03623e5105bea5cf998911d8bb09761
7
+ data.tar.gz: 9e8d8e2fcceb09750eabe0a124d440ad27cf0b17f15deb2b74feb2da4ef436d80738bc87e97d171f8baec65fae763fa796870d965a5f03eedb217a1521e47cb2
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rf
4
4
  module Stylez
5
- VERSION = "1.2.4"
5
+ VERSION = "1.2.5"
6
6
  end
7
7
  end
@@ -17,7 +17,7 @@ module RuboCop
17
17
  # ...
18
18
  # end
19
19
  # end
20
- class NoBangStateMachineEvents < Cop
20
+ class NoBangStateMachineEvents < Base
21
21
  MSG = "Event names ending with a `!` define `!`-ended methods that do not raise"
22
22
 
23
23
  def_node_matcher :is_state_machine_event?, "(send nil? :event (sym $_))"
@@ -12,7 +12,7 @@ module RuboCop
12
12
  #
13
13
  # # good
14
14
  # class Foo < Api::Base
15
- class NoGrapeAPI < Cop
15
+ class NoGrapeAPI < Base
16
16
  MSG = "Prefer inheriting `Api::AuthBase` or `Api::Base` instead of `Grape::API`."
17
17
 
18
18
  def_node_matcher :inherits_Grape_API?, "(class (const ...) (const (const nil? :Grape) :API) ...)"
@@ -9,7 +9,7 @@ module RuboCop
9
9
  #
10
10
  # # good
11
11
  # TimedRequest.get(...)
12
- class NoHTTParty < Cop
12
+ class NoHTTParty < Base
13
13
  MSG = "Prefer `TimedRequest` instead of raw `HTTParty` calls."
14
14
 
15
15
  def_node_matcher :is_HTTParty?, "(send (const nil? :HTTParty) ...)"
@@ -10,7 +10,7 @@ module RuboCop
10
10
  # # good
11
11
  # MultiJson.load(...)
12
12
  #
13
- class NoJSON < Cop
13
+ class NoJSON < Base
14
14
  MSG = "Use `MultiJson` instead of `JSON`."
15
15
 
16
16
  def_node_matcher :is_JSON?, "(const nil? :JSON)"
@@ -10,7 +10,7 @@ module RuboCop
10
10
  # # good
11
11
  # raise ArgumentError, 'foo'
12
12
  #
13
- class NoUntypedRaise < Cop
13
+ class NoUntypedRaise < Base
14
14
  MSG = "Do not raise untyped exceptions, specify the error type so it can be rescued specifically."
15
15
 
16
16
  def_node_matcher :is_untyped_raise?, "(send nil? {:raise :fail} (str ...) ...)"
@@ -19,7 +19,7 @@ module RuboCop
19
19
  # "%s" % "string"
20
20
  #
21
21
  # https://ruby-doc.org/core-2.4.0/String.html#method-i-25
22
- class Obscure < Cop
22
+ class Obscure < Base
23
23
  MSG = "Do not use the flipflop operator"
24
24
 
25
25
  def_node_matcher :is_stringformat?, <<-PATTERN
@@ -13,7 +13,7 @@ module RuboCop
13
13
  # params do
14
14
  # requires :id, type: Integer, positive_int32: true
15
15
  # end
16
- class UsePositiveInt32Validator < Cop
16
+ class UsePositiveInt32Validator < Base
17
17
  MSG = "If this Integer maps to a postgres Integer column, validate with `positive_int32: true`"
18
18
 
19
19
  # check if the param is `requires` / `optional`
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rf-stylez
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emanuel Evans