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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b6e7534142c5135038f8f2356caa28230e9ad8f
4
- data.tar.gz: 007271aae33c43c66995d72100b210eccae947f5
3
+ metadata.gz: b6bb85caaeb14de85ede954dca6546fdcbcc3b4f
4
+ data.tar.gz: e6f4af27735c9df193368e1d35c29ff1db6d0f81
5
5
  SHA512:
6
- metadata.gz: f24265d32db57b2a39d7e40d5bba926eabfed2c55df3af28a30072f3b0910aa146c6186c99b8698b800efe80c8e7b1f427bcedd8d0d37cc2cd165c2a98f28c45
7
- data.tar.gz: dcf7dfc12cc804a1f5f36b37ec83d5cf3df2d28e0317bc1cca3927985d4525dc1a77dc936e27dd89e1526547e38a22962d4f0b56265d37d97da1c35180da2053
6
+ metadata.gz: 4badbd44392f0cdd1c1f7ec384606fd1d27737e8f9a3f68afc3495fb4d5d392fd19dc5c26135e7dcb71f52fb2dc82c3246dfb1cc6d9cbe00635718daa629762f
7
+ data.tar.gz: ec3d929b2499ad83e6a44b9b52e5b58539d1784c53dc726cd826edc5c4da05871e662bc4856a8c2f6e8a1a5d1c26a5b58ada585da08f120166de05d0740f95b8
@@ -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[@processed_source.path].include?(line_number)
9
+ Diff.changed_lines[processed_source.path].include?(line_number)
8
10
  end
9
11
  end
10
12
 
@@ -1,5 +1,5 @@
1
1
  module Govuk
2
2
  module Lint
3
- VERSION = "0.6.1"
3
+ VERSION = "0.6.2"
4
4
  end
5
5
  end
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.1
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-15 00:00:00.000000000 Z
11
+ date: 2016-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler