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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6188a2ff394f6f733d23d032d4919e1f9e5e08267bbce30a2a4725631d5a5a13
4
- data.tar.gz: 4b3b5fc70d53d4784ef84f881493ca361d998a254c96323e4e1e65c48e7e5630
3
+ metadata.gz: 80ef2e3696f25c1381c8ca69f7c8c0c7183c5e7d2e8ab12d2d0764afd6071f8d
4
+ data.tar.gz: e34d31358000c88def3e19dcbc7b936752749cf02cc28d7c99a0cdc9875e022c
5
5
  SHA512:
6
- metadata.gz: e537d4749c34eaac49e4c80355250949f02d0db6020596d4c73e1f2995e384742cefc5d72a12fb7c2a159ceca406dbc723aa5d8e36ea8272967e9bd37f49da08
7
- data.tar.gz: 5a26c4b893a8646ae1e4ae62cd380b0603f0a45b1a88a7234af5a9a8d52a2cc71561d8d0ee784a8bedbbcda7abc26d88b58f999761649bcd29c0adfc464fec78
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
- if ident_str =~ /^(CCI-[0-9]{6})$/
70
+ if ident_str =~ /^(CCI-[0-9]{6})$/
71
+ # Match CCI IDs; e.g. CCI-123456
71
72
  @system = 'http://cyber.mil/cci'
72
- else
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
- end
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
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-04-16 00:00:00.000000000 Z
14
+ date: 2021-05-03 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: colorize