rubocop-cask 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bb51eac3550f067eca7d72c40f8e328b22b5025c
4
- data.tar.gz: 47d413dba32958d1ac635d8b2c6fbdd56408cef7
3
+ metadata.gz: 93ee69cb3bda02db58d3d0a80d05777c8fbba9b2
4
+ data.tar.gz: 629c266189384ea91ee6c0b49c4d2ae8ddfd5234
5
5
  SHA512:
6
- metadata.gz: 2c35ec1f44568927cdd99ebbab3fb0905dffa3452a6e8d3d29fee49cdea1f6480fa8dd86c4ba60686e6e46f294e816a1ea1bf2e5c45cab341faece793defedbc
7
- data.tar.gz: 4abb51a80d7d1a24a1ae4fd300779da7bed220b539381e8a2b84c51ddfa63361d89798be085d300a39965a451ed9e22650819e3e94db975d18e71b6806559c82
6
+ metadata.gz: cf0e65bf5b65523765923c60eac2f66eb4941f6d9e24a57d7221a7f034b82f1b178d09330d57afc0d1ceb5a40d98c838ec3c44c6982ee7538899e23d1881912e
7
+ data.tar.gz: c673de132548bac8f80f9e39925cd1b408124a8838fe2b8e642a9a52a21d05199d0898d309cedde5a1b40126b3d149b6c1f591f74b91792f1f9ab98efb4df9fe
@@ -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.3.0'
7
+ STRING = '0.3.1'
8
8
 
9
9
  def self.gem_version
10
10
  Gem::Version.new(STRING)
@@ -1,5 +1,3 @@
1
- require 'pry'
2
-
3
1
  module RuboCop
4
2
  module Cop
5
3
  module Cask
@@ -10,8 +8,8 @@ module RuboCop
10
8
 
11
9
  COMMENT_TEXT = '# TODO: change license and remove this comment; ' \
12
10
  "':unknown' is a machine-generated placeholder"
13
- MISSING_MSG = "Missing required comment: `#{COMMENT_TEXT}'"
14
- INLINE_MSG = "Comment belongs on the same line as `license :unknown'"
11
+ MISSING_MSG = "Missing required comment: `#{COMMENT_TEXT}`"
12
+ INLINE_MSG = 'Comment belongs on the same line as `license :unknown`'
15
13
 
16
14
  def on_cask(cask_block)
17
15
  license_stanza = cask_block.stanzas.find(&:license?)
@@ -1,5 +1,4 @@
1
1
  require 'forwardable'
2
- require 'pry'
3
2
 
4
3
  module RuboCop
5
4
  module Cop
@@ -48,7 +48,7 @@ describe RuboCop::Cop::Cask::LicenseUnknownComment do
48
48
  end
49
49
  let(:expected_offenses) do
50
50
  [{
51
- message: "Comment belongs on the same line as `license :unknown'",
51
+ message: 'Comment belongs on the same line as `license :unknown`',
52
52
  severity: :convention,
53
53
  line: 2,
54
54
  column: 2,
@@ -71,7 +71,7 @@ describe RuboCop::Cop::Cask::LicenseUnknownComment do
71
71
  end
72
72
  let(:expected_offenses) do
73
73
  [{
74
- message: "Missing required comment: `#{license_unknown_comment}'",
74
+ message: "Missing required comment: `#{license_unknown_comment}`",
75
75
  severity: :convention,
76
76
  line: 2,
77
77
  column: 2,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-cask
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Hagins
@@ -50,6 +50,7 @@ files:
50
50
  - lib/rubocop/cop/cask/license_unknown_comment.rb
51
51
  - lib/rubocop/cop/cask/mixin/cask_help.rb
52
52
  - lib/rubocop/cop/cask/no_dsl_version.rb
53
+ - lib/rubocop/cop/cask/official_download_host_comment.rb
53
54
  - lib/rubocop/cop/cask/stanza_grouping.rb
54
55
  - lib/rubocop/cop/cask/stanza_order.rb
55
56
  - spec/project_spec.rb