nucop 0.12.0 → 0.12.1

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: 75e14093d66eefb64ddcab42c17e132a0ffedb4038dfdb13b3f3530efb2b8ce4
4
- data.tar.gz: 7f9301976fb9e2f6faeea1c554600c475b652658b9650c21ce2485a83aa45f45
3
+ metadata.gz: 7bc650e535691f0d09ccd90f59e3f3f0eca7a977f1f3cb5c623fd8c05cc80eb3
4
+ data.tar.gz: 41a869f59a5703a02b08af096dfa2236932c35dafee36edb19891109afb5f443
5
5
  SHA512:
6
- metadata.gz: dc89dae160e8633cc9d227c2e204e49411a29fa184d5dd33f005d68950445d78abdd43b8b419dafcf0d3f28d2e235812fce4fe7f2270813a31a4473532ab07b5
7
- data.tar.gz: 4965b8c0304655c314ea4aa945809449c4a7ab85d43db419845ec832791a3dc9465b75e986d6463c0dfb0eeebf723b88a049b074e8503cdbdae22af63ce8444e
6
+ metadata.gz: 165ad594b4a3c4b397fd579a090a611fd4a5f1a2bd1759ac12131096b33a1d4de4ad63f8c90cf89f9080e09f91ebe3ccd683b06f637150f6dbe059e6add961d8
7
+ data.tar.gz: e376201db12a2f62a92cd3a3ac1dae6e555cc4ba90828b2a82504e593a3d3223bceadeb9d8f7606e965f6b28b9c1ca2e69cabc89510fd23a055e65e360320bd6
@@ -27,7 +27,7 @@ module Nucop
27
27
 
28
28
  def on_send(node)
29
29
  explicit_factory_bot_usage(node) do
30
- add_offense(node, location: :expression, message: format(MSG, constant: node.receiver.const_name, method: node.method_name)) do |corrector|
30
+ add_offense(node, message: format(MSG, constant: node.receiver.const_name, method: node.method_name)) do |corrector|
31
31
  corrector.replace(node.source_range, node.source.sub(/(?:FactoryGirl|FactoryBot)[.]/, ""))
32
32
  end
33
33
  end
@@ -24,7 +24,7 @@ module Nucop
24
24
 
25
25
  def on_def(node)
26
26
  core_methods(node) do |method|
27
- add_offense(node, location: :expression, message: format(MSG, method: method))
27
+ add_offense(node, message: format(MSG, method: method))
28
28
  end
29
29
  end
30
30
  end
@@ -27,7 +27,7 @@ module Nucop
27
27
 
28
28
  def on_send(node)
29
29
  ordered_hash_usage(node) do
30
- add_offense(node, location: :expression, message: MSG) do |corrector|
30
+ add_offense(node, message: MSG) do |corrector|
31
31
  corrector.replace(node.source_range, "{}")
32
32
  end
33
33
  end
@@ -26,7 +26,7 @@ module Nucop
26
26
 
27
27
  def on_def(node)
28
28
  factory_bot_methods(node) do |method|
29
- add_offense(node, location: :expression, message: format(MSG, method: method))
29
+ add_offense(node, message: format(MSG, method: method))
30
30
  end
31
31
  end
32
32
 
data/lib/nucop/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Nucop
2
- VERSION = "0.12.0"
2
+ VERSION = "0.12.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nucop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Schweier
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.67'
19
+ version: '1.66'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.67'
26
+ version: '1.66'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-capybara
29
29
  requirement: !ruby/object:Gem::Requirement