abide_dev_utils 0.10.0 → 0.10.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/Gemfile.lock +48 -65
- data/abide_dev_utils.gemspec +1 -1
- data/lib/abide_dev_utils/cli/jira.rb +1 -1
- data/lib/abide_dev_utils/cli/xccdf.rb +3 -0
- data/lib/abide_dev_utils/version.rb +1 -1
- data/lib/abide_dev_utils/xccdf.rb +5 -2
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c47baf812f2bb3b64951dc87b3aa1886eca947f0bf3a57bbed12b7ed7fda97ab
|
|
4
|
+
data.tar.gz: 4488f609550b251474337f1574c5c216601035fc5bba1fc9acb76e278252b5b5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f4e517c44f1c728689d1de11d0e306f65352ecf1b0507671d588ac5eb21dc294ac7bca68e7c790f21b9a47fa565ed775c2a28ce45257395203a0fa296c6f4389
|
|
7
|
+
data.tar.gz: 2b5ff4f1ad40d4000bb93862902c1a89e4620632825d19a34cd118fa43cc15823132cb4e9d246a1655ad1f6bd9636581398651e9082e8b16129f0c79eba9a5df
|
data/Gemfile.lock
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
abide_dev_utils (0.10.
|
|
4
|
+
abide_dev_utils (0.10.1)
|
|
5
5
|
amatch (~> 0.4)
|
|
6
6
|
cmdparse (~> 3.0)
|
|
7
7
|
google-cloud-storage (~> 1.34)
|
|
8
8
|
hashdiff (~> 1.0)
|
|
9
9
|
jira-ruby (~> 2.2)
|
|
10
|
-
nokogiri (~> 1.
|
|
10
|
+
nokogiri (~> 1.13)
|
|
11
11
|
puppet (>= 6.23)
|
|
12
12
|
ruby-progressbar (~> 1.11)
|
|
13
13
|
selenium-webdriver (~> 4.0.0.beta4)
|
|
@@ -15,76 +15,59 @@ PATH
|
|
|
15
15
|
GEM
|
|
16
16
|
remote: https://rubygems.org/
|
|
17
17
|
specs:
|
|
18
|
-
|
|
18
|
+
CFPropertyList (2.3.6)
|
|
19
|
+
activesupport (7.0.3)
|
|
19
20
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
20
21
|
i18n (>= 1.6, < 2)
|
|
21
22
|
minitest (>= 5.1)
|
|
22
23
|
tzinfo (~> 2.0)
|
|
23
24
|
addressable (2.8.0)
|
|
24
25
|
public_suffix (>= 2.0.2, < 5.0)
|
|
25
|
-
amatch (0.4.
|
|
26
|
+
amatch (0.4.1)
|
|
26
27
|
mize
|
|
27
28
|
tins (~> 1.0)
|
|
28
29
|
ast (2.4.2)
|
|
29
|
-
async (1.30.
|
|
30
|
+
async (1.30.2)
|
|
30
31
|
console (~> 1.10)
|
|
31
32
|
nio4r (~> 2.3)
|
|
32
33
|
timers (~> 4.1)
|
|
33
|
-
async-http (0.56.
|
|
34
|
+
async-http (0.56.6)
|
|
34
35
|
async (>= 1.25)
|
|
35
36
|
async-io (>= 1.28)
|
|
36
37
|
async-pool (>= 0.2)
|
|
37
38
|
protocol-http (~> 0.22.0)
|
|
38
39
|
protocol-http1 (~> 0.14.0)
|
|
39
40
|
protocol-http2 (~> 0.14.0)
|
|
41
|
+
traces (~> 0.4.0)
|
|
40
42
|
async-http-faraday (0.11.0)
|
|
41
43
|
async-http (~> 0.42)
|
|
42
44
|
faraday
|
|
43
|
-
async-io (1.
|
|
45
|
+
async-io (1.33.0)
|
|
44
46
|
async
|
|
45
|
-
async-pool (0.3.
|
|
47
|
+
async-pool (0.3.10)
|
|
46
48
|
async (>= 1.25)
|
|
47
49
|
atlassian-jwt (0.2.1)
|
|
48
50
|
jwt (~> 2.1)
|
|
49
51
|
childprocess (4.1.0)
|
|
50
52
|
cmdparse (3.0.7)
|
|
51
53
|
coderay (1.1.3)
|
|
52
|
-
concurrent-ruby (1.1.
|
|
53
|
-
console (1.
|
|
54
|
+
concurrent-ruby (1.1.10)
|
|
55
|
+
console (1.15.3)
|
|
54
56
|
fiber-local
|
|
55
57
|
declarative (0.0.20)
|
|
56
58
|
deep_merge (1.2.2)
|
|
57
59
|
diff-lcs (1.5.0)
|
|
58
60
|
digest-crc (0.6.4)
|
|
59
61
|
rake (>= 12.0.0, < 14.0.0)
|
|
60
|
-
facter (4.2.
|
|
62
|
+
facter (4.2.10)
|
|
61
63
|
hocon (~> 1.3)
|
|
62
64
|
thor (>= 1.0.1, < 2.0)
|
|
63
|
-
faraday (
|
|
64
|
-
faraday-
|
|
65
|
-
faraday-em_synchrony (~> 1.0)
|
|
66
|
-
faraday-excon (~> 1.1)
|
|
67
|
-
faraday-httpclient (~> 1.0)
|
|
68
|
-
faraday-multipart (~> 1.0)
|
|
69
|
-
faraday-net_http (~> 1.0)
|
|
70
|
-
faraday-net_http_persistent (~> 1.0)
|
|
71
|
-
faraday-patron (~> 1.0)
|
|
72
|
-
faraday-rack (~> 1.0)
|
|
73
|
-
faraday-retry (~> 1.0)
|
|
65
|
+
faraday (2.3.0)
|
|
66
|
+
faraday-net_http (~> 2.0)
|
|
74
67
|
ruby2_keywords (>= 0.0.4)
|
|
75
|
-
faraday-
|
|
76
|
-
faraday-em_synchrony (1.0.0)
|
|
77
|
-
faraday-excon (1.1.0)
|
|
78
|
-
faraday-http-cache (2.2.0)
|
|
68
|
+
faraday-http-cache (2.3.0)
|
|
79
69
|
faraday (>= 0.8)
|
|
80
|
-
faraday-
|
|
81
|
-
faraday-multipart (1.0.3)
|
|
82
|
-
multipart-post (>= 1.2, < 3)
|
|
83
|
-
faraday-net_http (1.0.1)
|
|
84
|
-
faraday-net_http_persistent (1.2.0)
|
|
85
|
-
faraday-patron (1.0.0)
|
|
86
|
-
faraday-rack (1.0.0)
|
|
87
|
-
faraday-retry (1.0.3)
|
|
70
|
+
faraday-net_http (2.0.3)
|
|
88
71
|
fast_gettext (1.8.0)
|
|
89
72
|
fiber-local (1.0.0)
|
|
90
73
|
gem-release (2.2.2)
|
|
@@ -97,7 +80,7 @@ GEM
|
|
|
97
80
|
octokit (~> 4.6)
|
|
98
81
|
rainbow (>= 2.2.1)
|
|
99
82
|
rake (>= 10.0)
|
|
100
|
-
google-apis-core (0.
|
|
83
|
+
google-apis-core (0.5.0)
|
|
101
84
|
addressable (~> 2.5, >= 2.5.1)
|
|
102
85
|
googleauth (>= 0.16.2, < 2.a)
|
|
103
86
|
httpclient (>= 2.8.1, < 3.a)
|
|
@@ -108,7 +91,7 @@ GEM
|
|
|
108
91
|
webrick
|
|
109
92
|
google-apis-iamcredentials_v1 (0.10.0)
|
|
110
93
|
google-apis-core (>= 0.4, < 2.a)
|
|
111
|
-
google-apis-storage_v1 (0.
|
|
94
|
+
google-apis-storage_v1 (0.14.0)
|
|
112
95
|
google-apis-core (>= 0.4, < 2.a)
|
|
113
96
|
google-cloud-core (1.6.0)
|
|
114
97
|
google-cloud-env (~> 1.0)
|
|
@@ -116,7 +99,7 @@ GEM
|
|
|
116
99
|
google-cloud-env (1.6.0)
|
|
117
100
|
faraday (>= 0.17.3, < 3.0)
|
|
118
101
|
google-cloud-errors (1.2.0)
|
|
119
|
-
google-cloud-storage (1.36.
|
|
102
|
+
google-cloud-storage (1.36.2)
|
|
120
103
|
addressable (~> 2.8)
|
|
121
104
|
digest-crc (~> 0.4)
|
|
122
105
|
google-apis-iamcredentials_v1 (~> 0.1)
|
|
@@ -124,7 +107,7 @@ GEM
|
|
|
124
107
|
google-cloud-core (~> 1.6)
|
|
125
108
|
googleauth (>= 0.16.2, < 2.a)
|
|
126
109
|
mini_mime (~> 1.0)
|
|
127
|
-
googleauth (1.1.
|
|
110
|
+
googleauth (1.1.3)
|
|
128
111
|
faraday (>= 0.17.3, < 3.a)
|
|
129
112
|
jwt (>= 1.4, < 3.0)
|
|
130
113
|
memoist (~> 0.16)
|
|
@@ -147,29 +130,27 @@ GEM
|
|
|
147
130
|
memoist (0.16.2)
|
|
148
131
|
method_source (1.0.0)
|
|
149
132
|
mini_mime (1.1.2)
|
|
150
|
-
mini_portile2 (2.8.0)
|
|
151
133
|
minitest (5.15.0)
|
|
152
134
|
mize (0.4.0)
|
|
153
135
|
protocol (~> 2.0)
|
|
154
136
|
multi_json (1.15.0)
|
|
155
137
|
multipart-post (2.1.1)
|
|
156
138
|
nio4r (2.5.8)
|
|
157
|
-
nokogiri (1.13.6)
|
|
158
|
-
mini_portile2 (~> 2.8.0)
|
|
139
|
+
nokogiri (1.13.6-x86_64-darwin)
|
|
159
140
|
racc (~> 1.4)
|
|
160
|
-
oauth (0.5.
|
|
161
|
-
octokit (4.
|
|
162
|
-
faraday (>=
|
|
163
|
-
sawyer (~> 0.
|
|
141
|
+
oauth (0.5.10)
|
|
142
|
+
octokit (4.23.0)
|
|
143
|
+
faraday (>= 1, < 3)
|
|
144
|
+
sawyer (~> 0.9)
|
|
164
145
|
os (1.1.4)
|
|
165
|
-
parallel (1.
|
|
166
|
-
parser (3.1.
|
|
146
|
+
parallel (1.22.1)
|
|
147
|
+
parser (3.1.2.0)
|
|
167
148
|
ast (~> 2.4.1)
|
|
168
149
|
protocol (2.0.0)
|
|
169
150
|
ruby_parser (~> 3.0)
|
|
170
151
|
protocol-hpack (1.4.2)
|
|
171
|
-
protocol-http (0.22.
|
|
172
|
-
protocol-http1 (0.14.
|
|
152
|
+
protocol-http (0.22.6)
|
|
153
|
+
protocol-http1 (0.14.4)
|
|
173
154
|
protocol-http (~> 0.22)
|
|
174
155
|
protocol-http2 (0.14.2)
|
|
175
156
|
protocol-hpack (~> 1.4)
|
|
@@ -177,8 +158,9 @@ GEM
|
|
|
177
158
|
pry (0.14.1)
|
|
178
159
|
coderay (~> 1.1)
|
|
179
160
|
method_source (~> 1.0)
|
|
180
|
-
public_suffix (4.0.
|
|
181
|
-
puppet (7.
|
|
161
|
+
public_suffix (4.0.7)
|
|
162
|
+
puppet (7.17.0-universal-darwin)
|
|
163
|
+
CFPropertyList (~> 2.2)
|
|
182
164
|
concurrent-ruby (~> 1.0)
|
|
183
165
|
deep_merge (~> 1.0)
|
|
184
166
|
facter (> 2.0.1, < 5)
|
|
@@ -194,8 +176,8 @@ GEM
|
|
|
194
176
|
racc (1.6.0)
|
|
195
177
|
rainbow (3.1.1)
|
|
196
178
|
rake (13.0.6)
|
|
197
|
-
regexp_parser (2.
|
|
198
|
-
representable (3.
|
|
179
|
+
regexp_parser (2.5.0)
|
|
180
|
+
representable (3.2.0)
|
|
199
181
|
declarative (< 0.1.0)
|
|
200
182
|
trailblazer-option (>= 0.1.1, < 0.2.0)
|
|
201
183
|
uber (< 0.2.0)
|
|
@@ -210,36 +192,36 @@ GEM
|
|
|
210
192
|
rspec-expectations (3.11.0)
|
|
211
193
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
212
194
|
rspec-support (~> 3.11.0)
|
|
213
|
-
rspec-mocks (3.11.
|
|
195
|
+
rspec-mocks (3.11.1)
|
|
214
196
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
215
197
|
rspec-support (~> 3.11.0)
|
|
216
198
|
rspec-support (3.11.0)
|
|
217
|
-
rubocop (1.
|
|
199
|
+
rubocop (1.30.0)
|
|
218
200
|
parallel (~> 1.10)
|
|
219
201
|
parser (>= 3.1.0.0)
|
|
220
202
|
rainbow (>= 2.2.2, < 4.0)
|
|
221
203
|
regexp_parser (>= 1.8, < 3.0)
|
|
222
|
-
rexml
|
|
223
|
-
rubocop-ast (>= 1.
|
|
204
|
+
rexml (>= 3.2.5, < 4.0)
|
|
205
|
+
rubocop-ast (>= 1.18.0, < 2.0)
|
|
224
206
|
ruby-progressbar (~> 1.7)
|
|
225
207
|
unicode-display_width (>= 1.4.0, < 3.0)
|
|
226
|
-
rubocop-ast (1.
|
|
208
|
+
rubocop-ast (1.18.0)
|
|
227
209
|
parser (>= 3.1.1.0)
|
|
228
210
|
rubocop-i18n (3.0.0)
|
|
229
211
|
rubocop (~> 1.0)
|
|
230
|
-
rubocop-performance (1.
|
|
212
|
+
rubocop-performance (1.14.0)
|
|
231
213
|
rubocop (>= 1.7.0, < 2.0)
|
|
232
214
|
rubocop-ast (>= 0.4.0)
|
|
233
|
-
rubocop-rspec (2.
|
|
215
|
+
rubocop-rspec (2.11.1)
|
|
234
216
|
rubocop (~> 1.19)
|
|
235
217
|
ruby-progressbar (1.11.0)
|
|
236
218
|
ruby2_keywords (0.0.5)
|
|
237
219
|
ruby_parser (3.19.1)
|
|
238
220
|
sexp_processor (~> 4.16)
|
|
239
221
|
rubyzip (2.3.2)
|
|
240
|
-
sawyer (0.
|
|
222
|
+
sawyer (0.9.1)
|
|
241
223
|
addressable (>= 2.3.5)
|
|
242
|
-
faraday (
|
|
224
|
+
faraday (>= 0.17.3, < 3)
|
|
243
225
|
scanf (1.0.0)
|
|
244
226
|
selenium-webdriver (4.0.3)
|
|
245
227
|
childprocess (>= 0.5, < 5.0)
|
|
@@ -255,8 +237,9 @@ GEM
|
|
|
255
237
|
sync (0.5.0)
|
|
256
238
|
thor (1.2.1)
|
|
257
239
|
timers (4.3.3)
|
|
258
|
-
tins (1.31.
|
|
240
|
+
tins (1.31.1)
|
|
259
241
|
sync
|
|
242
|
+
traces (0.4.1)
|
|
260
243
|
trailblazer-option (0.1.2)
|
|
261
244
|
tzinfo (2.0.4)
|
|
262
245
|
concurrent-ruby (~> 1.0)
|
|
@@ -265,7 +248,7 @@ GEM
|
|
|
265
248
|
webrick (1.7.0)
|
|
266
249
|
|
|
267
250
|
PLATFORMS
|
|
268
|
-
|
|
251
|
+
x86_64-darwin-19
|
|
269
252
|
|
|
270
253
|
DEPENDENCIES
|
|
271
254
|
abide_dev_utils!
|
|
@@ -284,4 +267,4 @@ DEPENDENCIES
|
|
|
284
267
|
rubocop-rspec (~> 2.1)
|
|
285
268
|
|
|
286
269
|
BUNDLED WITH
|
|
287
|
-
2.
|
|
270
|
+
2.3.9
|
data/abide_dev_utils.gemspec
CHANGED
|
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
|
|
|
32
32
|
spec.require_paths = ['lib']
|
|
33
33
|
|
|
34
34
|
# Prod dependencies
|
|
35
|
-
spec.add_dependency 'nokogiri', '~> 1.
|
|
35
|
+
spec.add_dependency 'nokogiri', '~> 1.13'
|
|
36
36
|
spec.add_dependency 'cmdparse', '~> 3.0'
|
|
37
37
|
spec.add_dependency 'puppet', '>= 6.23'
|
|
38
38
|
spec.add_dependency 'jira-ruby', '~> 2.2'
|
|
@@ -34,6 +34,9 @@ module Abide
|
|
|
34
34
|
options.on('-d [DIR]', '--files-output-directory [DIR]', 'Directory to save files data/mappings by default') do |d|
|
|
35
35
|
@data[:dir] = d
|
|
36
36
|
end
|
|
37
|
+
options.on('-V', '--version-output-dir', 'If saving to a directory, version the output directory') do
|
|
38
|
+
@data[:version_output_dir] = true
|
|
39
|
+
end
|
|
37
40
|
options.on('-q', '--quiet', 'Show no output in the terminal') { @data[:quiet] = true }
|
|
38
41
|
options.on('-p [PREFIX]', '--parent-key-prefix [PREFIX]', 'A prefix to append to the parent key') do |p|
|
|
39
42
|
@data[:parent_key_prefix] = p
|
|
@@ -208,9 +208,12 @@ module AbideDevUtils
|
|
|
208
208
|
profiles.select { |x| x.title == profile_title }.controls
|
|
209
209
|
end
|
|
210
210
|
|
|
211
|
-
def gen_map(dir: nil, type: '
|
|
211
|
+
def gen_map(dir: nil, type: 'cis', parent_key_prefix: '', version_output_dir: false, **_)
|
|
212
212
|
os, ver = facter_platform
|
|
213
|
-
|
|
213
|
+
output_path = [type, os, ver]
|
|
214
|
+
output_path.unshift(File.expand_path(dir)) if dir
|
|
215
|
+
output_path << version if version_output_dir
|
|
216
|
+
mapping_dir = File.expand_path(File.join(output_path))
|
|
214
217
|
parent_key_prefix = '' if parent_key_prefix.nil?
|
|
215
218
|
MAP_INDICES.each_with_object({}) do |idx, h|
|
|
216
219
|
map_file_path = "#{mapping_dir}/#{idx}.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.10.
|
|
4
|
+
version: 0.10.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- abide-team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-06-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '1.
|
|
19
|
+
version: '1.13'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '1.
|
|
26
|
+
version: '1.13'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: cmdparse
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|