ndr_dev_support 2.0.0 → 2.0.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 +4 -4
- data/README.md +3 -2
- data/code_safety.yml +6 -6
- data/lib/ndr_dev_support/version.rb +1 -1
- data/lib/tasks/audit_code.rake +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: 45303ab4e31bb6f4dd53f04b29b9e36e1036590c
|
|
4
|
+
data.tar.gz: edaf82e1b3401b35ec5e2f68d249e2669eb195c0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b075ed8abc60ccca091696969e94b41d95c3f9ac6e03a848e27af09a462b58b0b28a92d8afe4c603e21e2bcb2fb27abe6d0df26556d1cdd03b7df6aa482e893e
|
|
7
|
+
data.tar.gz: 6b32fba497428ddda63d72628d7a9bc36cd73de9359d61beb386b4c916f03662aaf9c9c676db18192598f2c6846a82852dfda5cc463e7a48bb2f482d19dd20dc
|
data/README.md
CHANGED
|
@@ -45,10 +45,11 @@ ndr_dev_support includes tweaks to the default Ruby Style Guide, to better suit
|
|
|
45
45
|
To use this updated style guide from within a project, add the following to top of the project's `.rubocop.yml` file:
|
|
46
46
|
|
|
47
47
|
```yaml
|
|
48
|
-
|
|
49
|
-
ndr_dev_support: .rubocop.yml
|
|
48
|
+
inherit_from: 'https://raw.githubusercontent.com/PublicHealthEngland/ndr_dev_support/master/.rubocop.yml'
|
|
50
49
|
```
|
|
51
50
|
|
|
51
|
+
RuboCop also allows `inherit_gem`, but this currently doesn't work with relative paths (paths are deemed relative to the config file, rather than the project including `ndr_dev_support`).
|
|
52
|
+
|
|
52
53
|
In order for these configuration to apply, you will need to invoke RuboCop using Bundler:
|
|
53
54
|
|
|
54
55
|
```
|
data/code_safety.yml
CHANGED
|
@@ -26,8 +26,8 @@ file safety:
|
|
|
26
26
|
safe_revision: c59a45986f8b6d087c8c21b1e889f31f7346da17
|
|
27
27
|
README.md:
|
|
28
28
|
comments:
|
|
29
|
-
reviewed_by:
|
|
30
|
-
safe_revision:
|
|
29
|
+
reviewed_by: timgentry
|
|
30
|
+
safe_revision: a5dda3d6e14d08ca21b1adbfb15c1c3f63804061
|
|
31
31
|
Rakefile:
|
|
32
32
|
comments:
|
|
33
33
|
reviewed_by: josh.pencheon
|
|
@@ -86,13 +86,13 @@ file safety:
|
|
|
86
86
|
safe_revision: a55c971cb770a8e5dc4be7ed66663dd5d695fcd1
|
|
87
87
|
lib/ndr_dev_support/version.rb:
|
|
88
88
|
comments:
|
|
89
|
-
reviewed_by:
|
|
90
|
-
safe_revision:
|
|
89
|
+
reviewed_by: timgentry
|
|
90
|
+
safe_revision: cb511a532ed4eb7bbed50261626287f887d47a1b
|
|
91
91
|
lib/tasks/audit_code.rake:
|
|
92
92
|
comments: Identical to the version reviewed by josh.pencheon when contained within
|
|
93
93
|
ndr_support
|
|
94
|
-
reviewed_by:
|
|
95
|
-
safe_revision:
|
|
94
|
+
reviewed_by: timgentry
|
|
95
|
+
safe_revision: 64fc0d768229c885e47e2a6b45a0c8c647d91af9
|
|
96
96
|
lib/tasks/rubocop.rake:
|
|
97
97
|
comments:
|
|
98
98
|
reviewed_by: josh.pencheon
|
data/lib/tasks/audit_code.rake
CHANGED
|
@@ -242,7 +242,7 @@ def set_last_changed_revision(repo, file_safety, fnames)
|
|
|
242
242
|
fnames = file_safety.keys if fnames.nil?
|
|
243
243
|
|
|
244
244
|
fnames.each_with_index do |f, i|
|
|
245
|
-
info = %x[git log -n 1 #{f}].split("\n").first[7..-1]
|
|
245
|
+
info = %x[git log -n 1 -- #{f}].split("\n").first[7..-1]
|
|
246
246
|
if info.nil? || info.empty?
|
|
247
247
|
file_safety[f]['last_changed_rev'] = -1
|
|
248
248
|
else
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ndr_dev_support
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- NCRS Development Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-02-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubocop
|