govuk-lint 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/govuk/lint/diff.rb +3 -1
- data/lib/govuk/lint/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6bb85caaeb14de85ede954dca6546fdcbcc3b4f
|
4
|
+
data.tar.gz: e6f4af27735c9df193368e1d35c29ff1db6d0f81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4badbd44392f0cdd1c1f7ec384606fd1d27737e8f9a3f68afc3495fb4d5d392fd19dc5c26135e7dcb71f52fb2dc82c3246dfb1cc6d9cbe00635718daa629762f
|
7
|
+
data.tar.gz: ec3d929b2499ad83e6a44b9b52e5b58539d1784c53dc726cd826edc5c4da05871e662bc4856a8c2f6e8a1a5d1c26a5b58ada585da08f120166de05d0740f95b8
|
data/lib/govuk/lint/diff.rb
CHANGED
@@ -3,8 +3,10 @@ module Govuk
|
|
3
3
|
module Diff
|
4
4
|
module EnabledLines
|
5
5
|
def enabled_line?(line_number)
|
6
|
+
return true unless processed_source
|
7
|
+
|
6
8
|
super(line_number) &&
|
7
|
-
Diff.changed_lines[
|
9
|
+
Diff.changed_lines[processed_source.path].include?(line_number)
|
8
10
|
end
|
9
11
|
end
|
10
12
|
|
data/lib/govuk/lint/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk-lint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Government Digital Service
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|