rubocop-cask 0.8.2 → 0.8.3
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1f2b1bd54f58d2544c6e3e4ca9855a3ec6b293fb
|
|
4
|
+
data.tar.gz: d88e0a2e4ca854452e30cd7b5373c0818e02560b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 951125b0a0e1f0af8f134d8b1e05eb6f4d316b64532bb1b8b4a8691452dd4437192f461ea75ffcd7bfee5119093e65227ab31e60770690f99927fa9935cbb9f2
|
|
7
|
+
data.tar.gz: 6373f90001b562524b735cf2c80e201f4672c68fe2b8d8d7fc8a74476f85fa1efc33bf048ed225f017032b07c1f29191f24c47c18d640521c4e98342fea5cf42
|
data/lib/rubocop/cask/version.rb
CHANGED
|
@@ -14,10 +14,9 @@ module RuboCop
|
|
|
14
14
|
|
|
15
15
|
MSG_NO_MATCH = '`%s` does not match `%s`'.freeze
|
|
16
16
|
|
|
17
|
-
MSG_MISSING = '`%s` does not match `%s`, a comment
|
|
18
|
-
'
|
|
19
|
-
'
|
|
20
|
-
'`url` stanza'.freeze
|
|
17
|
+
MSG_MISSING = '`%s` does not match `%s`, a comment has to be added ' \
|
|
18
|
+
'above the `url` stanza. For details, see ' \
|
|
19
|
+
'https://github.com/caskroom/homebrew-cask/blob/master/doc/cask_language_reference/stanzas/url.md#when-url-and-homepage-hostnames-differ-add-a-comment'.freeze
|
|
21
20
|
|
|
22
21
|
MSG_UNNECESSARY = '`%s` matches `%s`, the comment above the `url` ' \
|
|
23
22
|
'stanza is unnecessary'.freeze
|
|
@@ -2,12 +2,6 @@ describe RuboCop::Cop::Cask::HomepageMatchesUrl do
|
|
|
2
2
|
include CopSharedExamples
|
|
3
3
|
|
|
4
4
|
subject(:cop) { described_class.new }
|
|
5
|
-
let(:missing_line_msg) do
|
|
6
|
-
'stanza groups should be separated by a single empty line'
|
|
7
|
-
end
|
|
8
|
-
let(:extra_line_msg) do
|
|
9
|
-
'stanzas within the same group should have no lines between them'
|
|
10
|
-
end
|
|
11
5
|
|
|
12
6
|
context 'when the url matches the homepage' do
|
|
13
7
|
context 'and there is no comment' do
|
|
@@ -164,10 +158,9 @@ describe RuboCop::Cop::Cask::HomepageMatchesUrl do
|
|
|
164
158
|
end
|
|
165
159
|
let(:expected_offenses) do
|
|
166
160
|
[{
|
|
167
|
-
message: '`example.com` does not match `example.org`, a ' \
|
|
168
|
-
'
|
|
169
|
-
'
|
|
170
|
-
'added above the `url` stanza',
|
|
161
|
+
message: '`example.com` does not match `example.org`, a comment ' \
|
|
162
|
+
'has to be added above the `url` stanza. For details, see ' \
|
|
163
|
+
'https://github.com/caskroom/homebrew-cask/blob/master/doc/cask_language_reference/stanzas/url.md#when-url-and-homepage-hostnames-differ-add-a-comment',
|
|
171
164
|
severity: :convention,
|
|
172
165
|
line: 2,
|
|
173
166
|
column: 2,
|
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.8.
|
|
4
|
+
version: 0.8.3
|
|
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-07-
|
|
11
|
+
date: 2016-07-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: public_suffix
|