inspec_tools 2.0.3 → 2.0.4

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: d99887f62c18c23143d73ceb049277beaf493a765dc1df5beec9fee9b9bb7dca
4
- data.tar.gz: c2613ab9b76c9dae510ba8c57a27664989161cc8dd0cfec099f1365a9743030f
3
+ metadata.gz: 22680d948ef0c9745db5983c3ae8dea966cfa05f2aa2977e2f0409a0d4416a14
4
+ data.tar.gz: 60954f2699569649f559a4071c97e70a1b0d77eb0f695207106dd4b06887c8b9
5
5
  SHA512:
6
- metadata.gz: e8f1fd2c3b491e7c3ef65c76c250e16e6e00cbb03ae0d3ed8c6c23bc8598ba31f8315bd72e6bcfb76b22c4a054f881852de0f290789c6d5bab304afc616003f4
7
- data.tar.gz: ad843429c15e5e10c655860a6178b20d088decbd4f6bc92817183635b45c7478be16b30baf6883d3e1565f47c0926226e117482351137811829c9e147de4be3e
6
+ metadata.gz: 5eab94b7c0f08fe13b37a2c0483e7991c8b625c2134f502e94f8c194d4ef4aee73001d9ccc52686a924ff6d1b4436511706e4ab5cb274476765ebc6e97d42a45
7
+ data.tar.gz: 07d82a9e11bfb00ee867893cbecbe1ce0d9d7bb0a156ec1e81a80f862ede193c1cb9b4abefcd45bb5d068a7719b9c18a1fbd9053b51e68d9854792b4b90674a5
@@ -2,11 +2,27 @@
2
2
 
3
3
  ## [Unreleased](https://github.com/mitre/inspec_tools/tree/HEAD)
4
4
 
5
- [Full Changelog](https://github.com/mitre/inspec_tools/compare/v2.0.2.pre13...HEAD)
5
+ [Full Changelog](https://github.com/mitre/inspec_tools/compare/v2.0.3...HEAD)
6
+
7
+ **Closed issues:**
8
+
9
+ - xccdf2inspec string quotes bug [\#191](https://github.com/mitre/inspec_tools/issues/191)
10
+ - xccdf2inspec fails on OpenSCAP xccdf results with undefined method [\#190](https://github.com/mitre/inspec_tools/issues/190)
11
+
12
+ **Merged pull requests:**
13
+
14
+ - 191 single quote replacement [\#192](https://github.com/mitre/inspec_tools/pull/192) ([Bialogs](https://github.com/Bialogs))
15
+
16
+ ## [v2.0.3](https://github.com/mitre/inspec_tools/tree/v2.0.3) (2020-05-26)
17
+
18
+ [Full Changelog](https://github.com/mitre/inspec_tools/compare/v2.0.2.pre13...v2.0.3)
6
19
 
7
20
  **Implemented enhancements:**
8
21
 
9
22
  - Round compliance score down [\#146](https://github.com/mitre/inspec_tools/issues/146)
23
+ - Every usage of Bucket and Tally uses it as a symbol, making it a symbol as part of its declaration [\#187](https://github.com/mitre/inspec_tools/pull/187) ([rbclark](https://github.com/rbclark))
24
+ - Summary output [\#186](https://github.com/mitre/inspec_tools/pull/186) ([jsa5593](https://github.com/jsa5593))
25
+ - Compliance score is rounded down and the README is updated [\#185](https://github.com/mitre/inspec_tools/pull/185) ([jsa5593](https://github.com/jsa5593))
10
26
 
11
27
  **Fixed bugs:**
12
28
 
@@ -19,9 +35,7 @@
19
35
 
20
36
  **Merged pull requests:**
21
37
 
22
- - Every usage of Bucket and Tally uses it as a symbol, making it a symbol as part of its declaration [\#187](https://github.com/mitre/inspec_tools/pull/187) ([rbclark](https://github.com/rbclark))
23
- - Summary output [\#186](https://github.com/mitre/inspec_tools/pull/186) ([jsa5593](https://github.com/jsa5593))
24
- - Compliance score is rounded down and the README is updated [\#185](https://github.com/mitre/inspec_tools/pull/185) ([jsa5593](https://github.com/jsa5593))
38
+ - Add parameter to InspecUtils\#control\_status to specify when used for summary. [\#170](https://github.com/mitre/inspec_tools/pull/170) ([Bialogs](https://github.com/Bialogs))
25
39
 
26
40
  ## [v2.0.2.pre13](https://github.com/mitre/inspec_tools/tree/v2.0.2.pre13) (2020-05-22)
27
41
 
@@ -34,9 +48,6 @@
34
48
  **Fixed bugs:**
35
49
 
36
50
  - All Impacts Parsed from PDF are Medium [\#173](https://github.com/mitre/inspec_tools/issues/173)
37
-
38
- **Merged pull requests:**
39
-
40
51
  - Git version bump version 0.17.2 is broken due to a faulty regex. [\#182](https://github.com/mitre/inspec_tools/pull/182) ([rbclark](https://github.com/rbclark))
41
52
 
42
53
  ## [v2.0.2.pre12](https://github.com/mitre/inspec_tools/tree/v2.0.2.pre12) (2020-05-07)
@@ -85,7 +96,6 @@
85
96
  **Merged pull requests:**
86
97
 
87
98
  - Apply fixes from CodeFactor [\#172](https://github.com/mitre/inspec_tools/pull/172) ([aaronlippold](https://github.com/aaronlippold))
88
- - Add parameter to InspecUtils\#control\_status to specify when used for summary. [\#170](https://github.com/mitre/inspec_tools/pull/170) ([Bialogs](https://github.com/Bialogs))
89
99
  - Generate Ruby with Single Quoted Strings [\#169](https://github.com/mitre/inspec_tools/pull/169) ([Bialogs](https://github.com/Bialogs))
90
100
  - Update CKL parse method to dig into sub descriptions [\#168](https://github.com/mitre/inspec_tools/pull/168) ([Bialogs](https://github.com/Bialogs))
91
101
 
@@ -545,7 +555,6 @@
545
555
 
546
556
  - Update Profile logic include control exceptions [\#75](https://github.com/mitre/inspec_tools/pull/75) ([rx294](https://github.com/rx294))
547
557
  - Null Byte in json report causes inspec2ckl to bomb-out [\#73](https://github.com/mitre/inspec_tools/pull/73) ([kevin-j-smith](https://github.com/kevin-j-smith))
548
- - Add in 'inspec' and 'fileutils' require statements [\#65](https://github.com/mitre/inspec_tools/pull/65) ([samcornwell](https://github.com/samcornwell))
549
558
 
550
559
  ## [v1.6.0](https://github.com/mitre/inspec_tools/tree/v1.6.0) (2019-10-04)
551
560
 
@@ -580,6 +589,7 @@
580
589
  **Merged pull requests:**
581
590
 
582
591
  - Updated rake version [\#69](https://github.com/mitre/inspec_tools/pull/69) ([robthew](https://github.com/robthew))
592
+ - Add in 'inspec' and 'fileutils' require statements [\#65](https://github.com/mitre/inspec_tools/pull/65) ([samcornwell](https://github.com/samcornwell))
583
593
 
584
594
  ## [v1.4.1](https://github.com/mitre/inspec_tools/tree/v1.4.1) (2019-06-20)
585
595
 
@@ -0,0 +1,4 @@
1
+ AllCops:
2
+ DisabledByDefault: true
3
+ Style/StringLiterals:
4
+ Enabled: true
@@ -11,6 +11,7 @@ require 'overrides/true_class'
11
11
  require 'overrides/nil_class'
12
12
  require 'overrides/object'
13
13
  require 'overrides/string'
14
+ require 'rubocop'
14
15
 
15
16
  # rubocop:disable Metrics/ClassLength
16
17
  # rubocop:disable Metrics/AbcSize
@@ -393,7 +394,7 @@ module Utils
393
394
  file_name = control.id.to_s
394
395
  myfile = File.new("#{directory}/controls/#{file_name}.rb", 'w')
395
396
  myfile.puts "# encoding: UTF-8\n\n"
396
- myfile.puts wrap(control.to_ruby.gsub('"', "\'"), WIDTH) + "\n"
397
+ myfile.puts wrap(control.to_ruby, WIDTH) + "\n"
397
398
  myfile.close
398
399
  end
399
400
  else
@@ -424,6 +425,10 @@ module Utils
424
425
  end
425
426
  myfile.close
426
427
  end
428
+ config_store = ::RuboCop::ConfigStore.new
429
+ config_store.options_config = File.join(File.dirname(__FILE__), '../data/rubocop.yml')
430
+ rubocop = ::RuboCop::Runner.new({ auto_correct: true }, config_store)
431
+ rubocop.run([directory])
427
432
  end
428
433
  end
429
434
  end
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.0.3
4
+ version: 2.0.4
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: 2020-05-26 00:00:00.000000000 Z
14
+ date: 2020-06-18 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: colorize
@@ -160,13 +160,13 @@ dependencies:
160
160
  - !ruby/object:Gem::Version
161
161
  version: 0.17.3
162
162
  - !ruby/object:Gem::Dependency
163
- name: bundler
163
+ name: rubocop
164
164
  requirement: !ruby/object:Gem::Requirement
165
165
  requirements:
166
166
  - - ">="
167
167
  - !ruby/object:Gem::Version
168
168
  version: '0'
169
- type: :development
169
+ type: :runtime
170
170
  prerelease: false
171
171
  version_requirements: !ruby/object:Gem::Requirement
172
172
  requirements:
@@ -174,7 +174,7 @@ dependencies:
174
174
  - !ruby/object:Gem::Version
175
175
  version: '0'
176
176
  - !ruby/object:Gem::Dependency
177
- name: minitest
177
+ name: bundler
178
178
  requirement: !ruby/object:Gem::Requirement
179
179
  requirements:
180
180
  - - ">="
@@ -188,7 +188,7 @@ dependencies:
188
188
  - !ruby/object:Gem::Version
189
189
  version: '0'
190
190
  - !ruby/object:Gem::Dependency
191
- name: pry
191
+ name: minitest
192
192
  requirement: !ruby/object:Gem::Requirement
193
193
  requirements:
194
194
  - - ">="
@@ -202,7 +202,7 @@ dependencies:
202
202
  - !ruby/object:Gem::Version
203
203
  version: '0'
204
204
  - !ruby/object:Gem::Dependency
205
- name: rake
205
+ name: pry
206
206
  requirement: !ruby/object:Gem::Requirement
207
207
  requirements:
208
208
  - - ">="
@@ -216,7 +216,7 @@ dependencies:
216
216
  - !ruby/object:Gem::Version
217
217
  version: '0'
218
218
  - !ruby/object:Gem::Dependency
219
- name: codeclimate-test-reporter
219
+ name: rake
220
220
  requirement: !ruby/object:Gem::Requirement
221
221
  requirements:
222
222
  - - ">="
@@ -230,7 +230,7 @@ dependencies:
230
230
  - !ruby/object:Gem::Version
231
231
  version: '0'
232
232
  - !ruby/object:Gem::Dependency
233
- name: simplecov
233
+ name: codeclimate-test-reporter
234
234
  requirement: !ruby/object:Gem::Requirement
235
235
  requirements:
236
236
  - - ">="
@@ -244,7 +244,7 @@ dependencies:
244
244
  - !ruby/object:Gem::Version
245
245
  version: '0'
246
246
  - !ruby/object:Gem::Dependency
247
- name: rubocop
247
+ name: simplecov
248
248
  requirement: !ruby/object:Gem::Requirement
249
249
  requirements:
250
250
  - - ">="
@@ -292,6 +292,7 @@ files:
292
292
  - lib/data/attributes.yml
293
293
  - lib/data/cci2html.xsl
294
294
  - lib/data/mapping.yml
295
+ - lib/data/rubocop.yml
295
296
  - lib/data/stig.csv
296
297
  - lib/data/threshold.yaml
297
298
  - lib/exceptions/impact_input_error.rb