inspec_tools 2.3.4 → 2.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/happy_mapper_tools/benchmark.rb +9 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80ef2e3696f25c1381c8ca69f7c8c0c7183c5e7d2e8ab12d2d0764afd6071f8d
|
4
|
+
data.tar.gz: e34d31358000c88def3e19dcbc7b936752749cf02cc28d7c99a0cdc9875e022c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9a2ce7f04c865c6ba18bf8121bc20701c005b7357b5ba41fa4e33f3320ff96a82087c2b41e478e006c1ee1ce2f416b11d744f62eefad00765432915ca993fd5
|
7
|
+
data.tar.gz: b1d43d8d8eb302d9121e4ffe3f51eebb4116a75d8762cd6feb14e90a89320245ac5a5758aaf8760ba2460c62550fc6f18aaa801ac5b2436320ef568b5c735267
|
@@ -67,11 +67,17 @@ module HappyMapperTools
|
|
67
67
|
content :ident, String
|
68
68
|
def initialize(ident_str)
|
69
69
|
@ident = ident_str
|
70
|
-
|
70
|
+
if ident_str =~ /^(CCI-[0-9]{6})$/
|
71
|
+
# Match CCI IDs; e.g. CCI-123456
|
71
72
|
@system = 'http://cyber.mil/cci'
|
72
|
-
|
73
|
+
elsif ident_str =~ /^(S?V-[0-9]{5})$/
|
74
|
+
# Match SV- IDs; e.g. SV-12345
|
75
|
+
# Match V- IDs; e.g. V-12345
|
73
76
|
@system = 'http://cyber.mil/legacy'
|
74
|
-
|
77
|
+
else
|
78
|
+
# for all other ident_str, use the old identifier
|
79
|
+
@system = 'https://public.cyber.mil/stigs/cci/'
|
80
|
+
end
|
75
81
|
end
|
76
82
|
end
|
77
83
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inspec_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Thew
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: exe
|
13
13
|
cert_chain: []
|
14
|
-
date: 2021-
|
14
|
+
date: 2021-05-03 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: colorize
|