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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0cac247e4c431779ae6dde11e5d4a8ad35a0a06dcd98a267ccb6e8dad37bda98
4
- data.tar.gz: 33924d693f865466f4ad6c97b8601a8b87f1e81a16877a6454c2a5749cac26be
3
+ metadata.gz: 38b066773c22941ad572488baafaaa8ec31833d1038b42a1e63765a6979a1db5
4
+ data.tar.gz: 53347dff1a894fc23be96443fc116dd1af24fc20755bf5c78368b4382ea179cc
5
5
  SHA512:
6
- metadata.gz: ed07328de84c51b24bcb45dd551dd3853baa7ac6b5de061782062e06bd41e3badc5262259e2d8ce8e887c6f26562712e1c65d8d1d2102d34f04cc189f7239add
7
- data.tar.gz: 3270590d5506f73aca604f9bd9fb4618a4e478708925cac9cd558a400aeb745d511e7cd07e57b644c1c3d9dbb3876520755cd84886c3e4de873dd39b457f2fc7
6
+ metadata.gz: 2f912c8ca1629fe56bf85915f7830766a7486ab6f8d142aa8b9b8faad7ccdef661ca2a9b44e6613bc650de4e500b128d09e39792852093f460021f821391e530
7
+ data.tar.gz: 3b0dcf1c8d59f78ff892aa447229a44bcb567c3a08f9702ad072a4e680b7f81929399ecb83aa16f3dc8533b8c2ce566580742589c70b23d46e33a178a73ce39c
data/README.md CHANGED
@@ -454,3 +454,4 @@ distributed under the License is distributed on an "AS IS" BASIS,
454
454
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
455
455
  See the License for the specific language governing permissions and
456
456
  limitations under the License.
457
+
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
@@ -4,5 +4,5 @@
4
4
  # author: Christoph Hartmann
5
5
 
6
6
  module Inspec
7
- VERSION = '3.7.11'
7
+ VERSION = '3.9.0'
8
8
  end
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.7.11
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-03-22 00:00:00.000000000 Z
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