abide_dev_utils 0.9.5 → 0.9.7
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/Gemfile.lock +32 -34
- data/lib/abide_dev_utils/version.rb +1 -1
- data/lib/abide_dev_utils/xccdf.rb +10 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bc24decc17e394464d7ccfe4b461e8e6a5e74792b3a6a76092d5bc8d1fc9d87f
|
|
4
|
+
data.tar.gz: 43811951c377e43d3e6a10b9d295e807472d17b37ddda143d1a7e3f39a277a6c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8228550f80f8234306b6f47ec45d4abd62df2953826b40cd225f8431753f1d72eff7e5c4caec2d5adedeac45d77c495116e606d3d8e66cfb2f662d92306e3f79
|
|
7
|
+
data.tar.gz: 7bd968ca178a24897184997445d36ece5e6c2bcbdd0a3bed9156b984c58cce1b4e289e9e8894a71d3a3ccab0d02c25a88b2b5005190db97e49f40173c0ed6479
|
data/Gemfile.lock
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
abide_dev_utils (0.9.
|
|
4
|
+
abide_dev_utils (0.9.7)
|
|
5
5
|
cmdparse (~> 3.0)
|
|
6
6
|
google-cloud-storage (~> 1.34)
|
|
7
7
|
hashdiff (~> 1.0)
|
|
8
|
-
jira-ruby (~> 2.
|
|
8
|
+
jira-ruby (~> 2.2)
|
|
9
9
|
nokogiri (~> 1.11)
|
|
10
10
|
puppet (>= 6.23)
|
|
11
11
|
ruby-progressbar (~> 1.11)
|
|
@@ -14,7 +14,7 @@ PATH
|
|
|
14
14
|
GEM
|
|
15
15
|
remote: https://rubygems.org/
|
|
16
16
|
specs:
|
|
17
|
-
activesupport (7.0.
|
|
17
|
+
activesupport (7.0.2.2)
|
|
18
18
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
19
19
|
i18n (>= 1.6, < 2)
|
|
20
20
|
minitest (>= 5.1)
|
|
@@ -56,7 +56,7 @@ GEM
|
|
|
56
56
|
facter (4.2.7)
|
|
57
57
|
hocon (~> 1.3)
|
|
58
58
|
thor (>= 1.0.1, < 2.0)
|
|
59
|
-
faraday (1.
|
|
59
|
+
faraday (1.10.0)
|
|
60
60
|
faraday-em_http (~> 1.0)
|
|
61
61
|
faraday-em_synchrony (~> 1.0)
|
|
62
62
|
faraday-excon (~> 1.1)
|
|
@@ -93,7 +93,7 @@ GEM
|
|
|
93
93
|
octokit (~> 4.6)
|
|
94
94
|
rainbow (>= 2.2.1)
|
|
95
95
|
rake (>= 10.0)
|
|
96
|
-
google-apis-core (0.4.
|
|
96
|
+
google-apis-core (0.4.2)
|
|
97
97
|
addressable (~> 2.5, >= 2.5.1)
|
|
98
98
|
googleauth (>= 0.16.2, < 2.a)
|
|
99
99
|
httpclient (>= 2.8.1, < 3.a)
|
|
@@ -112,7 +112,7 @@ GEM
|
|
|
112
112
|
google-cloud-env (1.5.0)
|
|
113
113
|
faraday (>= 0.17.3, < 2.0)
|
|
114
114
|
google-cloud-errors (1.2.0)
|
|
115
|
-
google-cloud-storage (1.36.
|
|
115
|
+
google-cloud-storage (1.36.1)
|
|
116
116
|
addressable (~> 2.8)
|
|
117
117
|
digest-crc (~> 0.4)
|
|
118
118
|
google-apis-iamcredentials_v1 (~> 0.1)
|
|
@@ -120,8 +120,8 @@ GEM
|
|
|
120
120
|
google-cloud-core (~> 1.6)
|
|
121
121
|
googleauth (>= 0.16.2, < 2.a)
|
|
122
122
|
mini_mime (~> 1.0)
|
|
123
|
-
googleauth (1.1.
|
|
124
|
-
faraday (>= 0.17.3, <
|
|
123
|
+
googleauth (1.1.2)
|
|
124
|
+
faraday (>= 0.17.3, < 3.a)
|
|
125
125
|
jwt (>= 1.4, < 3.0)
|
|
126
126
|
memoist (~> 0.16)
|
|
127
127
|
multi_json (~> 1.11)
|
|
@@ -131,7 +131,7 @@ GEM
|
|
|
131
131
|
hiera (3.8.0)
|
|
132
132
|
hocon (1.3.1)
|
|
133
133
|
httpclient (2.8.3)
|
|
134
|
-
i18n (1.
|
|
134
|
+
i18n (1.10.0)
|
|
135
135
|
concurrent-ruby (~> 1.0)
|
|
136
136
|
jira-ruby (2.2.0)
|
|
137
137
|
activesupport
|
|
@@ -143,13 +143,11 @@ GEM
|
|
|
143
143
|
memoist (0.16.2)
|
|
144
144
|
method_source (1.0.0)
|
|
145
145
|
mini_mime (1.1.2)
|
|
146
|
-
mini_portile2 (2.7.1)
|
|
147
146
|
minitest (5.15.0)
|
|
148
147
|
multi_json (1.15.0)
|
|
149
148
|
multipart-post (2.1.1)
|
|
150
149
|
nio4r (2.5.8)
|
|
151
|
-
nokogiri (1.13.
|
|
152
|
-
mini_portile2 (~> 2.7.0)
|
|
150
|
+
nokogiri (1.13.3-x86_64-darwin)
|
|
153
151
|
racc (~> 1.4)
|
|
154
152
|
oauth (0.5.8)
|
|
155
153
|
octokit (4.22.0)
|
|
@@ -157,7 +155,7 @@ GEM
|
|
|
157
155
|
sawyer (~> 0.8.0, >= 0.5.3)
|
|
158
156
|
os (1.1.4)
|
|
159
157
|
parallel (1.21.0)
|
|
160
|
-
parser (3.1.
|
|
158
|
+
parser (3.1.1.0)
|
|
161
159
|
ast (~> 2.4.1)
|
|
162
160
|
protocol-hpack (1.4.2)
|
|
163
161
|
protocol-http (0.22.5)
|
|
@@ -170,7 +168,7 @@ GEM
|
|
|
170
168
|
coderay (~> 1.1)
|
|
171
169
|
method_source (~> 1.0)
|
|
172
170
|
public_suffix (4.0.6)
|
|
173
|
-
puppet (7.
|
|
171
|
+
puppet (7.14.0)
|
|
174
172
|
concurrent-ruby (~> 1.0)
|
|
175
173
|
deep_merge (~> 1.0)
|
|
176
174
|
facter (> 2.0.1, < 5)
|
|
@@ -186,43 +184,43 @@ GEM
|
|
|
186
184
|
racc (1.6.0)
|
|
187
185
|
rainbow (3.1.1)
|
|
188
186
|
rake (13.0.6)
|
|
189
|
-
regexp_parser (2.2.
|
|
187
|
+
regexp_parser (2.2.1)
|
|
190
188
|
representable (3.1.1)
|
|
191
189
|
declarative (< 0.1.0)
|
|
192
190
|
trailblazer-option (>= 0.1.1, < 0.2.0)
|
|
193
191
|
uber (< 0.2.0)
|
|
194
192
|
retriable (3.1.2)
|
|
195
193
|
rexml (3.2.5)
|
|
196
|
-
rspec (3.
|
|
197
|
-
rspec-core (~> 3.
|
|
198
|
-
rspec-expectations (~> 3.
|
|
199
|
-
rspec-mocks (~> 3.
|
|
200
|
-
rspec-core (3.
|
|
201
|
-
rspec-support (~> 3.
|
|
202
|
-
rspec-expectations (3.
|
|
194
|
+
rspec (3.11.0)
|
|
195
|
+
rspec-core (~> 3.11.0)
|
|
196
|
+
rspec-expectations (~> 3.11.0)
|
|
197
|
+
rspec-mocks (~> 3.11.0)
|
|
198
|
+
rspec-core (3.11.0)
|
|
199
|
+
rspec-support (~> 3.11.0)
|
|
200
|
+
rspec-expectations (3.11.0)
|
|
203
201
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
204
|
-
rspec-support (~> 3.
|
|
205
|
-
rspec-mocks (3.
|
|
202
|
+
rspec-support (~> 3.11.0)
|
|
203
|
+
rspec-mocks (3.11.0)
|
|
206
204
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
207
|
-
rspec-support (~> 3.
|
|
208
|
-
rspec-support (3.
|
|
209
|
-
rubocop (1.
|
|
205
|
+
rspec-support (~> 3.11.0)
|
|
206
|
+
rspec-support (3.11.0)
|
|
207
|
+
rubocop (1.25.1)
|
|
210
208
|
parallel (~> 1.10)
|
|
211
|
-
parser (>= 3.
|
|
209
|
+
parser (>= 3.1.0.0)
|
|
212
210
|
rainbow (>= 2.2.2, < 4.0)
|
|
213
211
|
regexp_parser (>= 1.8, < 3.0)
|
|
214
212
|
rexml
|
|
215
213
|
rubocop-ast (>= 1.15.1, < 2.0)
|
|
216
214
|
ruby-progressbar (~> 1.7)
|
|
217
215
|
unicode-display_width (>= 1.4.0, < 3.0)
|
|
218
|
-
rubocop-ast (1.
|
|
219
|
-
parser (>= 3.
|
|
216
|
+
rubocop-ast (1.16.0)
|
|
217
|
+
parser (>= 3.1.1.0)
|
|
220
218
|
rubocop-i18n (3.0.0)
|
|
221
219
|
rubocop (~> 1.0)
|
|
222
|
-
rubocop-performance (1.13.
|
|
220
|
+
rubocop-performance (1.13.2)
|
|
223
221
|
rubocop (>= 1.7.0, < 2.0)
|
|
224
222
|
rubocop-ast (>= 0.4.0)
|
|
225
|
-
rubocop-rspec (2.
|
|
223
|
+
rubocop-rspec (2.9.0)
|
|
226
224
|
rubocop (~> 1.19)
|
|
227
225
|
ruby-progressbar (1.11.0)
|
|
228
226
|
ruby2_keywords (0.0.5)
|
|
@@ -236,9 +234,9 @@ GEM
|
|
|
236
234
|
rexml (~> 3.2, >= 3.2.5)
|
|
237
235
|
rubyzip (>= 1.2.2)
|
|
238
236
|
semantic_puppet (1.0.4)
|
|
239
|
-
signet (0.16.
|
|
237
|
+
signet (0.16.1)
|
|
240
238
|
addressable (~> 2.8)
|
|
241
|
-
faraday (>= 0.17.
|
|
239
|
+
faraday (>= 0.17.5, < 3.0)
|
|
242
240
|
jwt (>= 1.5, < 3.0)
|
|
243
241
|
multi_json (~> 1.10)
|
|
244
242
|
thor (1.2.1)
|
|
@@ -298,7 +298,16 @@ module AbideDevUtils
|
|
|
298
298
|
|
|
299
299
|
def facter_platform
|
|
300
300
|
cpe = xpath('xccdf:Benchmark/xccdf:platform')[0]['idref'].split(':')
|
|
301
|
-
|
|
301
|
+
if cpe.length > 4
|
|
302
|
+
product_name = cpe[4].split('_')
|
|
303
|
+
product_version = cpe[5].split('.') unless cpe[5].nil?
|
|
304
|
+
return [product_name[0], product_version[0]] unless product_version[0] == '-'
|
|
305
|
+
|
|
306
|
+
return [product_name[0], product_name[-1]] if product_version[0] == '-'
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
product = cpe[3].split('_')
|
|
310
|
+
[product[0], product[-1]] # This should wrap the name i.e 'Windows' and the version '10'
|
|
302
311
|
end
|
|
303
312
|
|
|
304
313
|
# Converts object to Hiera-formatted YAML
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: abide_dev_utils
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- abide-team
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-02
|
|
11
|
+
date: 2022-03-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|
|
@@ -371,7 +371,7 @@ metadata:
|
|
|
371
371
|
homepage_uri: https://github.com/puppetlabs/abide_dev_utils
|
|
372
372
|
source_code_uri: https://github.com/puppetlabs/abide_dev_utils
|
|
373
373
|
changelog_uri: https://github.com/puppetlabs/abide_dev_utils
|
|
374
|
-
post_install_message:
|
|
374
|
+
post_install_message:
|
|
375
375
|
rdoc_options: []
|
|
376
376
|
require_paths:
|
|
377
377
|
- lib
|
|
@@ -387,7 +387,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
387
387
|
version: '0'
|
|
388
388
|
requirements: []
|
|
389
389
|
rubygems_version: 3.1.6
|
|
390
|
-
signing_key:
|
|
390
|
+
signing_key:
|
|
391
391
|
specification_version: 4
|
|
392
392
|
summary: Helper utilities for developing compliance Puppet code
|
|
393
393
|
test_files: []
|