rubocop-cask 0.4.0 → 0.4.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: 7d6e78ae374d9b9bb43976cd4095483e0210ba89
4
- data.tar.gz: b5607d074e11f612320d4cb001ec2a8e21d46bb9
3
+ metadata.gz: 9bf5b20c746471e14ca9683d02925add5e158c4a
4
+ data.tar.gz: 851a48fb146dd40985f66c032d7cb95441822d5f
5
5
  SHA512:
6
- metadata.gz: 00431a8517d5749a6b7879c38bd152f99e971af4deb698d49d8e7034c0c85558628a32f7db4f7502f242c64727e34fd619cde56df67dd68aac1125e584c23b77
7
- data.tar.gz: 2ec4844850ff3bf570d8f29692e9f246a640915b7b24ebca1796919d88be809c8f4b81ea3c6ce4e776f015a3cddba33820a47108ddcee4d4458e2233675132a8
6
+ metadata.gz: b63a7a90cbf7536a60e99ebfa5e1c50abc22f1ce561ab4ce20b6129c0215cd51218db3d589f38e738ff4d893afb26371bc500e1b060511474d71b1b3ae8c2d08
7
+ data.tar.gz: dc86e374ae7e00881c59e004d37546c20797e468bb0e8c802e02bb63f35af6632bd6435cba0e68c12e6d9b52fad4334baf20738ffee7f5134742833ec8c178f4
@@ -58,7 +58,9 @@ module RuboCop
58
58
  end
59
59
 
60
60
  def stanza_comments(stanza_node)
61
- comments_hash[stanza_node.loc]
61
+ stanza_node.each_node.reduce([]) do |comments, node|
62
+ comments | comments_hash[node.loc]
63
+ end
62
64
  end
63
65
 
64
66
  def comments_hash
@@ -4,7 +4,7 @@ module RuboCop
4
4
  module Cask
5
5
  # Version information for the Cask RuboCop plugin.
6
6
  module Version
7
- STRING = '0.4.0'
7
+ STRING = '0.4.1'
8
8
 
9
9
  def self.gem_version
10
10
  Gem::Version.new(STRING)
@@ -157,7 +157,7 @@ describe RuboCop::Cop::Cask::StanzaOrder do
157
157
  postflight do
158
158
  puts 'We have liftoff!'
159
159
  end
160
- sha256 :no_check
160
+ sha256 :no_check # comment on same line
161
161
  end
162
162
  CASK
163
163
  end
@@ -165,7 +165,7 @@ describe RuboCop::Cop::Cask::StanzaOrder do
165
165
  <<-CASK.undent
166
166
  cask 'foo' do
167
167
  version :latest
168
- sha256 :no_check
168
+ sha256 :no_check # comment on same line
169
169
  # comment with an empty line between
170
170
 
171
171
  # comment directly above
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-cask
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Hagins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-14 00:00:00.000000000 Z
11
+ date: 2016-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop