rubocop-cask 0.10.6 → 0.11.0

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: 341bc5847303a1089914ab7f56625b54146b7d1a
4
- data.tar.gz: c8120ec78683d8f64a237370812234e3bc495bce
3
+ metadata.gz: bbaf42203ee69f23608c04ca5ea1716c1be38f99
4
+ data.tar.gz: c77fa91c8897a7ee2c25bc8183a6d16d7a65edd1
5
5
  SHA512:
6
- metadata.gz: 96ac07802ac11e22bf38b35b65e924f4949bef77bc6cf7bdf18f0f583346ec0188b7532f7b163617adf43e764811a6c16d3a2d89175472f5c10e89efa8d6438f
7
- data.tar.gz: e2c2ab0ff2bc08ab3a33382e715c5cbf6a6572e59cfb17b4daa991e623c06456f30d5d5b08e1db369a4eef41c5ce3f14f4b58d9f39d13b0866baf3cbbbdc4c0e
6
+ metadata.gz: d3e31e4f8ea44916bf8246715f1a0fe002a71b9c52985c181b1fea3f22c4fe5e2009080bd2bb5dda85c21f91162d8785ae74584de74d511bb3626afd1d8d5165
7
+ data.tar.gz: 32cdd91d9c96411537cb117e7b5dc60cfe9ce687d02f728d22909a198cf3fa9b98660d28fa4291291205902d1adde499ea8d3669a23fb5d973b46c0119bcef3c
@@ -1,35 +1,37 @@
1
1
  module RuboCop
2
- # Extensions for RuboCop's AST Node class
3
- class Node
4
- include RuboCop::Cask::Constants
2
+ module AST
3
+ # Extensions for RuboCop's AST Node class
4
+ class Node
5
+ include RuboCop::Cask::Constants
5
6
 
6
- def_matcher :method_node, '{$(send ...) (block $(send ...) ...)}'
7
- def_matcher :block_args, '(block _ $_ _)'
8
- def_matcher :block_body, '(block _ _ $_)'
7
+ def_matcher :method_node, '{$(send ...) (block $(send ...) ...)}'
8
+ def_matcher :block_args, '(block _ $_ _)'
9
+ def_matcher :block_body, '(block _ _ $_)'
9
10
 
10
- def_matcher :key_node, '{(pair $_ _) (hash (pair $_ _) ...)}'
11
- def_matcher :val_node, '{(pair _ $_) (hash (pair _ $_) ...)}'
11
+ def_matcher :key_node, '{(pair $_ _) (hash (pair $_ _) ...)}'
12
+ def_matcher :val_node, '{(pair _ $_) (hash (pair _ $_) ...)}'
12
13
 
13
- def cask_block?
14
- block_type? && method_node.cask_header?
15
- end
14
+ def cask_block?
15
+ block_type? && method_node.cask_header?
16
+ end
16
17
 
17
- def cask_header?
18
- send_type? && CASK_METHOD_NAMES.include?(method_name)
19
- end
18
+ def cask_header?
19
+ send_type? && CASK_METHOD_NAMES.include?(method_name)
20
+ end
20
21
 
21
- def stanza?
22
- (send_type? || block_type?) && STANZA_ORDER.include?(method_name)
23
- end
22
+ def stanza?
23
+ (send_type? || block_type?) && STANZA_ORDER.include?(method_name)
24
+ end
24
25
 
25
- def heredoc?
26
- loc.is_a?(Parser::Source::Map::Heredoc)
27
- end
26
+ def heredoc?
27
+ loc.is_a?(Parser::Source::Map::Heredoc)
28
+ end
28
29
 
29
- def expression
30
- base_expression = loc.expression
31
- descendants.select(&:heredoc?).reduce(base_expression) do |expr, node|
32
- expr.join(node.loc.heredoc_end)
30
+ def expression
31
+ base_expression = loc.expression
32
+ descendants.select(&:heredoc?).reduce(base_expression) do |expr, node|
33
+ expr.join(node.loc.heredoc_end)
34
+ end
33
35
  end
34
36
  end
35
37
  end
@@ -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.10.6'.freeze
7
+ STRING = '0.11.0'.freeze
8
8
 
9
9
  def self.gem_version
10
10
  Gem::Version.new(STRING)
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.10.6
4
+ version: 0.11.0
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-11-15 00:00:00.000000000 Z
11
+ date: 2017-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: public_suffix
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.45.0
33
+ version: 0.47.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.45.0
40
+ version: 0.47.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.3'
47
+ version: '1.14'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.3'
54
+ version: '1.14'
55
55
  description: |2
56
56
  Code style checking for Homebrew-Cask files.
57
57
  A plugin for the RuboCop code style enforcing & linting tool.