outrigger 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/outrigger/cops/migration/tagged.rb +2 -2
- data/lib/outrigger/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef7411dd7822dfa7e765a92c0a9fe7b73c7d5f04
|
4
|
+
data.tar.gz: eeb8709989cb8a385d39d6de99d0dc6da38c6f65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ce3434a5319add1e8e7859944dd1bf11a305645432a8e38349e295d36e3fe0e00c63453d552ac69f0c1b95e9b17fb6b401b6e8667edd678af9f4f753c79c00c
|
7
|
+
data.tar.gz: 2e29a9b19047e23e9b55113fb3f7567b881443c657e45e0de292eaaf721ab379db4d2e679a94f56faee83301ef5220f8784010c8c3965fdf6767bb34e4f81a4a
|
@@ -5,7 +5,7 @@ module RuboCop
|
|
5
5
|
def on_class(node)
|
6
6
|
_name, superclass, body = *node
|
7
7
|
if superclass == s(:const, s(:const, nil, :ActiveRecord), :Migration)
|
8
|
-
check(node, body) if body
|
8
|
+
check(node, body) if body
|
9
9
|
end
|
10
10
|
end
|
11
11
|
|
@@ -16,7 +16,7 @@ module RuboCop
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def check(klass, node)
|
19
|
-
tag_node = node.children.compact.find { |n| n.type == :send && n.to_a[1] == :tag }
|
19
|
+
tag_node = node.type == :begin && node.children.compact.find { |n| n.type == :send && n.to_a[1] == :tag }
|
20
20
|
|
21
21
|
if allowed_tags.empty?
|
22
22
|
add_offense(tag_node, :expression, "No allowed tags have been defined in the RuboCop configuration.")
|
data/lib/outrigger/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: outrigger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Drew Bowman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|