abide_dev_utils 0.9.3 → 0.9.7

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: 58b9c3d67642e83959b356c30cef87f408ec18e6887c34f66b7d967b2b106cb8
4
- data.tar.gz: 0c03f8ccf88bbd5e3c12d0d50ff3eea3a83f34e1d93b4773844bfb74a4bca271
3
+ metadata.gz: bc24decc17e394464d7ccfe4b461e8e6a5e74792b3a6a76092d5bc8d1fc9d87f
4
+ data.tar.gz: 43811951c377e43d3e6a10b9d295e807472d17b37ddda143d1a7e3f39a277a6c
5
5
  SHA512:
6
- metadata.gz: a7e66797f4b3d3d44512a1b7dad92539cc75e4d219a4dd14f6fe4548714305ce067cc1a5aafb26316f64a25a3186905bb33bc86b53370b0bb2c30b084fdebcc3
7
- data.tar.gz: 774f4b5dd24e1dc9c5ecfa5e9cb23ae528bb607b5bfcbb87da2bfa30549526c13909868c1e4cc55db58f64e14e577f5a5a562a0ed21f58ed71ae68a1139fc349
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.3)
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.1)
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.1)
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.9.3)
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.1)
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.0)
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.0)
124
- faraday (>= 0.17.3, < 2.0)
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.8.11)
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.1)
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.0.0)
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.13.1)
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.0)
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.10.0)
197
- rspec-core (~> 3.10.0)
198
- rspec-expectations (~> 3.10.0)
199
- rspec-mocks (~> 3.10.0)
200
- rspec-core (3.10.1)
201
- rspec-support (~> 3.10.0)
202
- rspec-expectations (3.10.2)
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.10.0)
205
- rspec-mocks (3.10.2)
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.10.0)
208
- rspec-support (3.10.3)
209
- rubocop (1.24.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.0.0.0)
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.15.1)
219
- parser (>= 3.0.1.1)
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.1)
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.7.0)
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.0)
237
+ signet (0.16.1)
240
238
  addressable (~> 2.8)
241
- faraday (>= 0.17.3, < 2.0)
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)
@@ -35,7 +35,7 @@ Gem::Specification.new do |spec|
35
35
  spec.add_dependency 'nokogiri', '~> 1.11'
36
36
  spec.add_dependency 'cmdparse', '~> 3.0'
37
37
  spec.add_dependency 'puppet', '>= 6.23'
38
- spec.add_dependency 'jira-ruby', '~> 2.1'
38
+ spec.add_dependency 'jira-ruby', '~> 2.2'
39
39
  spec.add_dependency 'ruby-progressbar', '~> 1.11'
40
40
  spec.add_dependency 'selenium-webdriver', '~> 4.0.0.beta4'
41
41
  spec.add_dependency 'google-cloud-storage', '~> 1.34'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AbideDevUtils
4
- VERSION = "0.9.3"
4
+ VERSION = "0.9.7"
5
5
  end
@@ -291,14 +291,23 @@ module AbideDevUtils
291
291
  end
292
292
 
293
293
  c_map['benchmark'] = { 'title' => title, 'version' => version }
294
- mappings = [framework, index, key_prefix]
294
+ mappings = [framework, index]
295
295
  mappings.unshift(key_prefix) unless key_prefix.empty?
296
296
  { mappings.join('::') => c_map }.to_yaml
297
297
  end
298
298
 
299
299
  def facter_platform
300
300
  cpe = xpath('xccdf:Benchmark/xccdf:platform')[0]['idref'].split(':')
301
- [cpe[4].split('_')[0], cpe[5].split('.')[0]]
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.3
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-01-14 00:00:00.000000000 Z
11
+ date: 2022-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '2.1'
61
+ version: '2.2'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '2.1'
68
+ version: '2.2'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: ruby-progressbar
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -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
@@ -386,8 +386,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
386
386
  - !ruby/object:Gem::Version
387
387
  version: '0'
388
388
  requirements: []
389
- rubygems_version: 3.1.4
390
- signing_key:
389
+ rubygems_version: 3.1.6
390
+ signing_key:
391
391
  specification_version: 4
392
392
  summary: Helper utilities for developing compliance Puppet code
393
393
  test_files: []