inspec-core 2.3.24 → 2.3.28

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: 12a044a703a7706c3e6bbc2fb70f57cfd2fdf5e591f3c8d65ce468aa59e70452
4
- data.tar.gz: 58f3fc85cbde3ddaf7893783f270739da5908f0e078953e9f5fe8a857df7ef75
3
+ metadata.gz: c4615eefb5b5579398c63537d590f8ae793f2af61ee7b5fa0e0bce4e53df8e89
4
+ data.tar.gz: 22e2547d5aeecf8c0b013e6372dd8eafc244a2e641cdea1990e65dac6f12375b
5
5
  SHA512:
6
- metadata.gz: 3e5392bb427b8599300233b82a2be890115fd906b76a79920ce3e3957dd197617eef3981fb20f7b78b0c7d0c7e5b8be5f6017de353bfcd5b93f575bf1516bd82
7
- data.tar.gz: 9d1ddfaf201def4450cbe225c980be0dcad761e92c66636df44aced2b391cb3b22b454a17d1db903899305f3a51bb303ee2b158401f1c8c62d46e009078da733
6
+ metadata.gz: 58a8820c21f74a39798881434789c95068221cdaaadef38fac12dad3035dbf35b78d558b5c720e3407e02d0675a3c42181e69c466731ee40e4f9dc9c0c932c4c
7
+ data.tar.gz: 0bb0bb620406860c2a4b52893ecdd717b7653749a470e2672b9b3472ac0d6986d7e359659b988e76c0fc1e05f9aacb67ec235f1f73279f112a46bb761e4cfde5
data/CHANGELOG.md CHANGED
@@ -1,20 +1,29 @@
1
1
  # Change Log
2
2
  <!-- usage documentation: http://expeditor-docs.es.chef.io/configuration/changelog/ -->
3
- <!-- latest_release 2.3.24 -->
4
- ## [v2.3.24](https://github.com/inspec/inspec/tree/v2.3.24) (2018-10-12)
3
+ <!-- latest_release 2.3.28 -->
4
+ ## [v2.3.28](https://github.com/inspec/inspec/tree/v2.3.28) (2019-02-08)
5
5
 
6
- #### Bug Fixes
7
- - Fix plugin install issues in different ruby envs [#3505](https://github.com/inspec/inspec/pull/3505) ([jquick](https://github.com/jquick))
6
+ #### Merged Pull Requests
7
+ - Remove bundler pin from 2.x series [#3795](https://github.com/inspec/inspec/pull/3795) ([clintoncwolfe](https://github.com/clintoncwolfe))
8
8
  <!-- latest_release -->
9
9
 
10
- <!-- release_rollup since=2.3.23 -->
11
- ### Changes since 2.3.23 release
10
+ <!-- release_rollup since=2.3.24 -->
11
+ ### Changes since 2.3.24 release
12
12
 
13
- #### Bug Fixes
14
- - Fix plugin install issues in different ruby envs [#3505](https://github.com/inspec/inspec/pull/3505) ([jquick](https://github.com/jquick)) <!-- 2.3.24 -->
13
+ #### Merged Pull Requests
14
+ - Remove bundler pin from 2.x series [#3795](https://github.com/inspec/inspec/pull/3795) ([clintoncwolfe](https://github.com/clintoncwolfe)) <!-- 2.3.28 -->
15
+ - Update copyright for 2.x branch [#3794](https://github.com/inspec/inspec/pull/3794) ([clintoncwolfe](https://github.com/clintoncwolfe)) <!-- 2.3.27 -->
16
+ - Update the text on the generic default attribute [#3508](https://github.com/inspec/inspec/pull/3508) ([jquick](https://github.com/jquick)) <!-- 2.3.26 -->
17
+ - Change `Inspec ` to `InSpec ` where appropriate [#3494](https://github.com/inspec/inspec/pull/3494) ([jerryaldrichiii](https://github.com/jerryaldrichiii)) <!-- 2.3.25 -->
15
18
  <!-- release_rollup -->
16
19
 
17
20
  <!-- latest_stable_release -->
21
+ ## [v2.3.24](https://github.com/inspec/inspec/tree/v2.3.24) (2018-10-12)
22
+
23
+ #### Bug Fixes
24
+ - Fix plugin install issues in different ruby envs [#3505](https://github.com/inspec/inspec/pull/3505) ([jquick](https://github.com/jquick))
25
+ <!-- latest_stable_release -->
26
+
18
27
  ## [v2.3.23](https://github.com/inspec/inspec/tree/v2.3.23) (2018-10-12)
19
28
 
20
29
  #### Enhancements
@@ -35,7 +44,6 @@
35
44
  - docs: Add version to multiple descriptions doc [#3477](https://github.com/inspec/inspec/pull/3477) ([jerryaldrichiii](https://github.com/jerryaldrichiii))
36
45
  - Set a static node GUID for travis runs [#3497](https://github.com/inspec/inspec/pull/3497) ([jquick](https://github.com/jquick))
37
46
  - Fix plugin issues on omni builds [#3499](https://github.com/inspec/inspec/pull/3499) ([jquick](https://github.com/jquick))
38
- <!-- latest_stable_release -->
39
47
 
40
48
  ## [v2.3.10](https://github.com/inspec/inspec/tree/v2.3.10) (2018-10-04)
41
49
 
data/Gemfile CHANGED
@@ -11,7 +11,6 @@ gem 'ffi', '>= 1.9.14'
11
11
  gem 'aws-sdk', '~> 2'
12
12
 
13
13
  group :test do
14
- gem 'bundler', '~> 1.5'
15
14
  gem 'minitest', '~> 5.5'
16
15
  gem 'rake', '>= 10'
17
16
  gem 'rubocop', '= 0.49.1'
data/README.md CHANGED
@@ -439,7 +439,7 @@ Please see [TESTING_AGAINST_AZURE.md](./test/integration/aws/TESTING_AGAINST_AZU
439
439
  | **Author:** | Dominik Richter (<drichter@chef.io>) |
440
440
  | **Author:** | Christoph Hartmann (<chartmann@chef.io>) |
441
441
  | **Copyright:** | Copyright (c) 2015 Vulcano Security GmbH. |
442
- | **Copyright:** | Copyright (c) 2017 Chef Software Inc. |
442
+ | **Copyright:** | Copyright (c) 2019 Chef Software Inc. |
443
443
  | **License:** | Apache License, Version 2.0 |
444
444
 
445
445
  Licensed under the Apache License, Version 2.0 (the "License");
data/inspec-core.gemspec CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
 
23
23
  spec.required_ruby_version = '>= 2.3'
24
24
 
25
- spec.add_dependency 'train-core', '~> 1.5'
25
+ spec.add_dependency 'train-core', '~> 1.5', '= 1.7.1'
26
26
  spec.add_dependency 'thor', '~> 0.20'
27
27
  spec.add_dependency 'json', '>= 1.8', '< 3.0'
28
28
  spec.add_dependency 'method_source', '~> 0.8'
@@ -69,6 +69,6 @@ module Supermarket
69
69
  end
70
70
  end
71
71
 
72
- # register the subcommand to Inspec CLI registry
72
+ # register the subcommand to InSpec CLI registry
73
73
  Inspec::Plugins::CLI.add_subcommand(SupermarketCLI, 'supermarket', 'supermarket SUBCOMMAND ...', 'Supermarket commands', {})
74
74
  end
data/lib/inspec/cli.rb CHANGED
@@ -305,7 +305,7 @@ begin
305
305
  ctl = Inspec::PluginCtl.new
306
306
  ctl.list.each { |x| ctl.load(x) }
307
307
 
308
- # load v1 CLI plugins before the Inspec CLI has been started
308
+ # load v1 CLI plugins before the InSpec CLI has been started
309
309
  Inspec::Plugins::CLI.subcommands.each { |_subcommand, params|
310
310
  Inspec::InspecCLI.register(
311
311
  params[:klass],
@@ -17,20 +17,26 @@ module Inspec
17
17
  DEFAULT_ATTRIBUTE = Class.new do
18
18
  def initialize(name)
19
19
  @name = name
20
- end
21
20
 
22
- def method_missing(*_)
21
+ # output warn message if we are in a exec call
23
22
  Inspec::Log.warn(
24
- "Returning DEFAULT_ATTRIBUTE for '#{@name}'. "\
23
+ "Attribute '#{@name}' does not have a value. "\
25
24
  "Use --attrs to provide a value for '#{@name}' or specify a default "\
26
25
  "value with `attribute('#{@name}', default: 'somedefault', ...)`.",
27
- )
26
+ ) if Inspec::BaseCLI.inspec_cli_command == :exec
27
+ end
28
+
29
+ def method_missing(*_)
28
30
  self
29
31
  end
30
32
 
31
33
  def respond_to_missing?(_, _)
32
34
  true
33
35
  end
36
+
37
+ def to_s
38
+ "Attribute '#{@name}' does not have a value. Skipping test."
39
+ end
34
40
  end
35
41
 
36
42
  def initialize(name, options = {})
@@ -24,7 +24,7 @@ module Secrets
24
24
  @attributes = nil
25
25
  end
26
26
  rescue => e
27
- raise "Error reading Inspec attributes: #{e}"
27
+ raise "Error reading InSpec attributes: #{e}"
28
28
  end
29
29
  end
30
30
  end
@@ -4,5 +4,5 @@
4
4
  # author: Christoph Hartmann
5
5
 
6
6
  module Inspec
7
- VERSION = '2.3.24'
7
+ VERSION = '2.3.28'
8
8
  end
@@ -87,7 +87,7 @@ module InspecPlugins
87
87
  p = Pathname.new(path_to_profile)
88
88
  p = p.join('inspec.yml')
89
89
  if not p.exist?
90
- raise "#{path_to_profile} doesn't appear to be a valid Inspec profile"
90
+ raise "#{path_to_profile} doesn't appear to be a valid InSpec profile"
91
91
  end
92
92
  yaml = YAML.load_file(p.to_s)
93
93
  yaml = yaml.to_hash
@@ -101,7 +101,7 @@ module InspecPlugins
101
101
  end
102
102
  rescue => e
103
103
  # rewrap it and pass it up to the CLI
104
- raise "Error reading Inspec profile metadata: #{e}"
104
+ raise "Error reading InSpec profile metadata: #{e}"
105
105
  end
106
106
 
107
107
  yaml
@@ -12,7 +12,7 @@ require_relative 'base'
12
12
  #
13
13
  #
14
14
  # .IAF file format
15
- # .iaf = "Inspec Artifact File", easy to rename if you'd like something more appropriate.
15
+ # .iaf = "InSpec Artifact File", easy to rename if you'd like something more appropriate.
16
16
  # The iaf file wraps a binary artifact with some metadata. The first implementation
17
17
  # looks like this:
18
18
  #
@@ -62,8 +62,8 @@ require_relative 'base'
62
62
  # private keys. We should establish a common key directory (similar to /hab/cache/keys
63
63
  # or ~/.hab/cache/keys in Habitat).
64
64
  #
65
- # Extracting artifacts outside of Inspec
66
- # As in Habitat, the artifact format for Inspec allows the use of common
65
+ # Extracting artifacts outside of InSpec
66
+ # As in Habitat, the artifact format for InSpec allows the use of common
67
67
  # Unix tools to read the header and body of an artifact.
68
68
  # To extract the header from a .iaf:
69
69
  # sed '/^$/q' foo.iaf
@@ -260,7 +260,7 @@ module InspecPlugins
260
260
  end
261
261
  end
262
262
 
263
- # register the subcommand to Inspec CLI registry
263
+ # register the subcommand to InSpec CLI registry
264
264
  # Inspec::Plugins::CLI.add_subcommand(InspecPlugins::ComplianceCLI, 'compliance', 'compliance SUBCOMMAND ...', 'Chef InspecPlugins::Compliance commands', {})
265
265
  end
266
266
  end
@@ -6,7 +6,7 @@ module Inspec::Resources
6
6
  class ChocoPkg < Inspec.resource(1)
7
7
  name 'chocolatey_package'
8
8
  supports platform: 'windows'
9
- desc 'Use the chocolatey_package Inspec audit resource to test if the named package and/or package version is installed on the system.'
9
+ desc 'Use the chocolatey_package InSpec audit resource to test if the named package and/or package version is installed on the system.'
10
10
  example <<-EOH
11
11
  describe chocolatey_package('git') do
12
12
  it { should be_installed }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inspec-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.24
4
+ version: 2.3.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominik Richter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-12 00:00:00.000000000 Z
11
+ date: 2019-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: train-core
@@ -17,6 +17,9 @@ dependencies:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.5'
20
+ - - '='
21
+ - !ruby/object:Gem::Version
22
+ version: 1.7.1
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -24,6 +27,9 @@ dependencies:
24
27
  - - "~>"
25
28
  - !ruby/object:Gem::Version
26
29
  version: '1.5'
30
+ - - '='
31
+ - !ruby/object:Gem::Version
32
+ version: 1.7.1
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: thor
29
35
  requirement: !ruby/object:Gem::Requirement