inspec 3.7.11 → 3.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/inspec.gemspec +5 -0
- data/lib/inspec/reporters/automate.rb +0 -4
- data/lib/inspec/reporters/json_automate.rb +7 -1
- data/lib/inspec/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38b066773c22941ad572488baafaaa8ec31833d1038b42a1e63765a6979a1db5
|
4
|
+
data.tar.gz: 53347dff1a894fc23be96443fc116dd1af24fc20755bf5c78368b4382ea179cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f912c8ca1629fe56bf85915f7830766a7486ab6f8d142aa8b9b8faad7ccdef661ca2a9b44e6613bc650de4e500b128d09e39792852093f460021f821391e530
|
7
|
+
data.tar.gz: 3b0dcf1c8d59f78ff892aa447229a44bcb567c3a08f9702ad072a4e680b7f81929399ecb83aa16f3dc8533b8c2ce566580742589c70b23d46e33a178a73ce39c
|
data/README.md
CHANGED
data/inspec.gemspec
CHANGED
@@ -20,11 +20,16 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.executables = %w{inspec}
|
22
22
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
23
|
+
.reject { |f| File.directory?(f) || f =~ %r{lib/plugins/.*/test/} }
|
23
24
|
spec.require_paths = ['lib']
|
24
25
|
|
25
26
|
spec.required_ruby_version = '>= 2.3'
|
26
27
|
|
27
28
|
spec.add_dependency 'train', '~> 1.5', '>= 1.7.2'
|
29
|
+
# Train plugins we ship with InSpec
|
30
|
+
spec.add_dependency 'train-habitat', '~> 0.1'
|
31
|
+
|
32
|
+
# Implementation dependencies
|
28
33
|
spec.add_dependency 'thor', '~> 0.20'
|
29
34
|
spec.add_dependency 'json', '>= 1.8', '< 3.0'
|
30
35
|
spec.add_dependency 'method_source', '~> 0.8'
|
@@ -28,10 +28,6 @@ module Inspec::Reporters
|
|
28
28
|
|
29
29
|
final_report[:report_uuid] = @config['report_uuid'] || uuid_from_string(final_report[:end_time] + final_report[:node_uuid])
|
30
30
|
|
31
|
-
# optional json-config passthrough options
|
32
|
-
%w{node_name environment roles recipies job_uuid}.each do |option|
|
33
|
-
final_report[option.to_sym] = @config[option] unless @config[option].nil?
|
34
|
-
end
|
35
31
|
final_report
|
36
32
|
end
|
37
33
|
|
@@ -17,7 +17,7 @@ module Inspec::Reporters
|
|
17
17
|
# grab profiles from the json parent class
|
18
18
|
@profiles = profiles
|
19
19
|
|
20
|
-
{
|
20
|
+
output = {
|
21
21
|
platform: platform,
|
22
22
|
profiles: merge_profiles,
|
23
23
|
statistics: {
|
@@ -25,6 +25,12 @@ module Inspec::Reporters
|
|
25
25
|
},
|
26
26
|
version: run_data[:version],
|
27
27
|
}
|
28
|
+
|
29
|
+
# optional json-config passthrough options
|
30
|
+
%w{node_name environment roles job_uuid passthrough}.each do |option|
|
31
|
+
output[option.to_sym] = @config[option] unless @config[option].nil?
|
32
|
+
end
|
33
|
+
output
|
28
34
|
end
|
29
35
|
|
30
36
|
private
|
data/lib/inspec/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dominik Richter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: train
|
@@ -30,6 +30,20 @@ dependencies:
|
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 1.7.2
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: train-habitat
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0.1'
|
40
|
+
type: :runtime
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0.1'
|
33
47
|
- !ruby/object:Gem::Dependency
|
34
48
|
name: thor
|
35
49
|
requirement: !ruby/object:Gem::Requirement
|