govuk-lint 0.1.1 → 0.1.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 +6 -6
- 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: c8d7eef99edf6c73cafcb97e11556cb3ce9810a0
|
4
|
+
data.tar.gz: 41657d71bd392abb4d2998bb0fbc939539d95011
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72cf5cfcc1c6009b0d91df900c24d531ea598aa9fd14aebc5ce747341d71d61ff6716b98b67cad99b2001b63265dbb56c9863e76aa493676b04d00b474235d45
|
7
|
+
data.tar.gz: 020a3ca8ba1673b5b8cd92cf7ee72afa8c78a1a52925789d8ece13c7d6030a471475706f0d59b88c824fb11daf97baab52d96fedaf0e73218c22103f311d4996
|
data/lib/govuk/lint/diff.rb
CHANGED
@@ -25,12 +25,12 @@ module Govuk
|
|
25
25
|
@changed_lines ||= begin
|
26
26
|
changes = changed_files.map do |file|
|
27
27
|
next unless File.exist?(file)
|
28
|
-
[file, `git difftool #{commit_options}
|
29
|
-
-y
|
30
|
-
-x 'diff
|
31
|
-
--new-line-format="%dn "
|
32
|
-
--unchanged-line-format=""
|
33
|
-
--changed-group-format="%>"'
|
28
|
+
[file, `git difftool #{commit_options} \
|
29
|
+
-y \
|
30
|
+
-x 'diff \
|
31
|
+
--new-line-format="%dn " \
|
32
|
+
--unchanged-line-format="" \
|
33
|
+
--changed-group-format="%>"' \
|
34
34
|
#{file}`.split.map(&:to_i)]
|
35
35
|
end
|
36
36
|
|
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.1.
|
4
|
+
version: 0.1.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: 2015-07-
|
11
|
+
date: 2015-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|