dark_finger 0.1.1 → 0.1.2

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
- SHA1:
3
- metadata.gz: 2175e36eaa195b08572b40995a9291bf961bba87
4
- data.tar.gz: 5419ca9cfd34ccf28fc360da5b57cc98697c04fb
2
+ SHA256:
3
+ metadata.gz: 691ef579dbf429a052c26b395f134eac60b966b88530532d081ba2a7c1be539e
4
+ data.tar.gz: b7c3a20843d94b65acf5724f2673d6d4fbb65308a34a92b770aa90f13ce6be4d
5
5
  SHA512:
6
- metadata.gz: 29e2b1f85d9d3ceb0027cc5596faf57fcd31de49460f1b6bca740ffb6be9f6a1d85f8bbef1f285c881c13bc8c8e768f1dfc24a5c5667f8ad2e0b145086a3d735
7
- data.tar.gz: 528bfdced0087243bede4441486f3c63aa53cc0d284043dc42a85a97a0df08bd0fc582620b2e593e2f9a60188b091b54d61fb30f7be4780327a5fdcb909f4896
6
+ metadata.gz: fbf4ff76ee9deb51e4266367a8abd2dda6308be95673f22e84d03509dbac76212fc4fd489823e65f065ad05070bdfa524fa8359c317af8143c48f3a667768ec9
7
+ data.tar.gz: 5103957b6498e03a508fc8722363eb6f297090534c2206f6134b62218bcb82a2380c0736847d76530fc9ba586fa5d6c33e9c47e68018a5f98cb2b90c785529c6
@@ -1,3 +1,3 @@
1
1
  module DarkFinger
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -56,7 +56,8 @@ module RuboCop
56
56
  private
57
57
 
58
58
  def nested_in_with_options?
59
- parent&.method_name == :with_options
59
+ return true if parent&.method_name == :with_options
60
+ return true if parent&.begin_type? && parent&.parent&.method_name == :with_options
60
61
  end
61
62
 
62
63
  def nested_directly_in_class?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dark_finger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Professor Wang Matrix PhD
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2018-09-30 00:00:00.000000000 Z
12
+ date: 2018-10-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  requirements: []
125
125
  rubyforge_project:
126
- rubygems_version: 2.5.2.1
126
+ rubygems_version: 2.7.6
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: ActiveModel layout cop for Rubocop