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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 15960c336f8efd0adaefc5ae539e710a4707094f
4
- data.tar.gz: 7380ff20bad55808d7a792580daa3172455add80
3
+ metadata.gz: ef7411dd7822dfa7e765a92c0a9fe7b73c7d5f04
4
+ data.tar.gz: eeb8709989cb8a385d39d6de99d0dc6da38c6f65
5
5
  SHA512:
6
- metadata.gz: bd59666a8b5d0313384f0787664c54a19b652e64cd6f04c88b63979daa94ffa791bcc2b5b9989f29f60ec3b522b4f1e9887eae3c643e8e41e9f4a6f29a6e733f
7
- data.tar.gz: 245463bbf67d411c85dea4b8c06a02bfa5fc9e1fd8611f519d594fe879e37b3a854dd21bda93b9e38bddb5b1acaf24352866e8870a22bd1816f9e5ef58b4b8e1
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 && body.type == :begin
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.")
@@ -1,3 +1,3 @@
1
1
  module Outrigger
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
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.0
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-25 00:00:00.000000000 Z
11
+ date: 2016-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord