inspec 4.22.22 → 4.24.8

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: e9377de564c82eff698b4d966abc190048d4e3abd4a73b7738f0e4141ca06e45
4
- data.tar.gz: 0e4ad19b61071ca91c84276abccc1f2a35b9de66a8f392487e99c66038b8168e
3
+ metadata.gz: 1312dec49f5e5f0d4c8bd2f7ede8f82763a0a5bf5514a3a5c928d73e83205c67
4
+ data.tar.gz: 10d3f0695c61fa19e7df838f38ac865960538ac9231d8740d84faac2c29bba25
5
5
  SHA512:
6
- metadata.gz: 51dd67111692c9a63cf211d201909c9b81f782ffb125e6706ede1d484c789e6e0fe5e1d11489d4ba639c1ef01be5c403bf2aa98cac4a9d443f1b1a4a3d3c96db
7
- data.tar.gz: 4fe012c525994d21739a1c010e564ab3221da5db39d26e1cc8ea58eb8bd895b4b94aa04682f9b7e820819b82db80f81d2b576f508fea3fb97ce5941793c777e6
6
+ metadata.gz: 2f46963e6fba977b4715dcc555665f7328d9d6e8ecad6d95280ce7191f24ea581a373271120b6a9590b9b4880560e5b8049c4f39c391b14e4f9c7848dadab6a7
7
+ data.tar.gz: 98c8444ec22092aa17178f7be25344664085ce361f39f3072f9340b7832466690c26b8fe07df5805a367521f0680ec3a80ebccd3fe5b995a32654b77ea9ac3eb
data/Gemfile CHANGED
@@ -11,6 +11,11 @@ gem "inspec-bin", path: "./inspec-bin"
11
11
 
12
12
  gem "ffi", ">= 1.9.14", "!= 1.13.0"
13
13
 
14
+ if Gem.ruby_version.to_s.start_with?("2.5")
15
+ # 16.7.23 required ruby 2.6+
16
+ gem "chef-utils", "< 16.7.23" # TODO: remove when we drop ruby 2.5
17
+ end
18
+
14
19
  group :omnibus do
15
20
  gem "rb-readline"
16
21
  gem "appbundler"
@@ -20,44 +25,31 @@ end
20
25
 
21
26
  group :test do
22
27
  gem "chefstyle", "~> 1.2.1"
23
- gem "minitest", "~> 5.5"
24
- gem "minitest-sprint", "~> 1.0"
25
- gem "rake", ">= 10"
26
- gem "simplecov", ["~> 0.10", "<=0.18.2"]
27
28
  gem "concurrent-ruby", "~> 1.0"
29
+ gem "html-proofer", platforms: :ruby # do not attempt to run proofer on windows
30
+ gem "json_schemer", ">= 0.2.1", "< 0.2.12"
31
+ gem "m"
32
+ gem "minitest-sprint", "~> 1.0"
33
+ gem "minitest", "~> 5.5"
28
34
  gem "mocha", "~> 1.1"
35
+ gem "nokogiri", "~> 1.9"
36
+ gem "pry-byebug"
37
+ gem "pry", "~> 0.10"
38
+ gem "rake", ">= 10"
29
39
  gem "ruby-progressbar", "~> 1.8"
40
+ gem "simplecov", ["~> 0.10", "<=0.18.2"]
30
41
  gem "webmock", "~> 3.0"
31
- gem "m"
32
- gem "pry", "~> 0.10"
33
- gem "pry-byebug"
34
- gem "html-proofer", platforms: :ruby # do not attempt to run proofer on windows
35
42
  end
36
43
 
37
44
  group :integration do
38
45
  gem "berkshelf"
39
- gem "test-kitchen"
40
- gem "kitchen-vagrant"
41
- gem "chef", "< 15"
42
- gem "chef-zero", "< 15"
43
- gem "kitchen-inspec"
44
- gem "kitchen-ec2"
45
- gem "kitchen-dokken"
46
+ gem "test-kitchen", ">= 2.8"
47
+ gem "kitchen-vagrant", ">= 1.7"
48
+ gem "kitchen-inspec", ">= 2.0"
49
+ gem "kitchen-dokken", ">= 2.11"
46
50
  gem "git"
47
51
  end
48
52
 
49
- # gems for Maintainers.md generation
50
- group :maintenance do
51
- gem "tomlrb"
52
-
53
- # To sync maintainers with github
54
- gem "octokit"
55
- gem "netrc"
56
- end
57
-
58
53
  group :deploy do
59
54
  gem "inquirer"
60
- end
61
-
62
- # add these additional dependencies into Gemfile.local
63
- eval_gemfile(__FILE__ + ".local") if File.exist?(__FILE__ + ".local")
55
+ end
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
27
27
  spec.add_dependency "train", "~> 3.0"
28
28
 
29
29
  # Used for Azure profile until integrated into train
30
- spec.add_dependency "faraday_middleware", "~> 0.12.2"
30
+ spec.add_dependency "faraday_middleware", ">= 0.12.2", "< 1.1"
31
31
 
32
32
  # Train plugins we ship with InSpec
33
33
  spec.add_dependency "train-habitat", "~> 0.1"
@@ -26,7 +26,7 @@ Creating new profile at /Users/spaterson/my-profile
26
26
  aws_vpc_id: 'custom-vpc-id'
27
27
  ```
28
28
 
29
- The related control will simply be skipped if this is not provided. See the [InSpec DSL documentation](https://www.inspec.io/docs/reference/dsl_inspec/) for more details on conditional execution using `only_if`.
29
+ The related control will simply be skipped if this is not provided. See the [InSpec DSL documentation](https://docs.chef.io/inspec/dsl_inspec/) for more details on conditional execution using `only_if`.
30
30
 
31
31
  ## Run the tests
32
32
 
@@ -61,7 +61,7 @@ module AwsResourceMixin
61
61
  rescue Aws::Errors::MissingCredentialsError
62
62
  # The AWS error here is unhelpful:
63
63
  # "unable to sign request without credentials set"
64
- Inspec::Log.error "It appears that you have not set your AWS credentials. You may set them using environment variables, or using the 'aws://region/aws_credentials_profile' target. See https://www.inspec.io/docs/reference/platforms for details."
64
+ Inspec::Log.error "It appears that you have not set your AWS credentials. You may set them using environment variables, or using the 'aws://region/aws_credentials_profile' target. See https://docs.chef.io/inspec/platforms/ for details."
65
65
  fail_resource("No AWS credentials available")
66
66
  rescue Aws::Errors::ServiceError => e
67
67
  fail_resource e.message
@@ -34,7 +34,7 @@ class AwsEbsVolume < Inspec.resource(1)
34
34
  rescue Aws::Errors::MissingCredentialsError
35
35
  # The AWS error here is unhelpful:
36
36
  # "unable to sign request without credentials set"
37
- Inspec::Log.error "It appears that you have not set your AWS credentials. You may set them using environment variables, or using the 'aws://region/aws_credentials_profile' target. See https://www.inspec.io/docs/reference/platforms for details."
37
+ Inspec::Log.error "It appears that you have not set your AWS credentials. You may set them using environment variables, or using the 'aws://region/aws_credentials_profile' target. See https://docs.chef.io/inspec/platforms/ for details."
38
38
  fail_resource("No AWS credentials available")
39
39
  rescue Aws::Errors::ServiceError => e
40
40
  fail_resource(e.message)
@@ -35,7 +35,7 @@ class AwsEc2Instance < Inspec.resource(1)
35
35
  rescue Aws::Errors::MissingCredentialsError
36
36
  # The AWS error here is unhelpful:
37
37
  # "unable to sign request without credentials set"
38
- Inspec::Log.error "It appears that you have not set your AWS credentials. You may set them using environment variables, or using the 'aws://region/aws_credentials_profile' target. See https://www.inspec.io/docs/reference/platforms for details."
38
+ Inspec::Log.error "It appears that you have not set your AWS credentials. You may set them using environment variables, or using the 'aws://region/aws_credentials_profile' target. See https://docs.chef.io/inspec/platforms/ for details."
39
39
  fail_resource("No AWS credentials available")
40
40
  rescue Aws::Errors::ServiceError => e
41
41
  fail_resource e.message
@@ -43,7 +43,7 @@ class AwsIamPasswordPolicy < Inspec.resource(1)
43
43
  rescue Aws::Errors::MissingCredentialsError
44
44
  # The AWS error here is unhelpful:
45
45
  # "unable to sign request without credentials set"
46
- Inspec::Log.error "It appears that you have not set your AWS credentials. You may set them using environment variables, or using the 'aws://region/aws_credentials_profile' target. See https://www.inspec.io/docs/reference/platforms for details."
46
+ Inspec::Log.error "It appears that you have not set your AWS credentials. You may set them using environment variables, or using the 'aws://region/aws_credentials_profile' target. See https://docs.chef.io/inspec/platforms/ for details."
47
47
  fail_resource("No AWS credentials available")
48
48
  rescue Aws::Errors::ServiceError => e
49
49
  fail_resource e.message
@@ -24,7 +24,7 @@ class AwsIamRootUser < Inspec.resource(1)
24
24
  rescue Aws::Errors::MissingCredentialsError
25
25
  # The AWS error here is unhelpful:
26
26
  # "unable to sign request without credentials set"
27
- Inspec::Log.error "It appears that you have not set your AWS credentials. You may set them using environment variables, or using the 'aws://region/aws_credentials_profile' target. See https://www.inspec.io/docs/reference/platforms for details."
27
+ Inspec::Log.error "It appears that you have not set your AWS credentials. You may set them using environment variables, or using the 'aws://region/aws_credentials_profile' target. See https://docs.chef.io/inspec/platforms/ for details."
28
28
  fail_resource("No AWS credentials available")
29
29
  rescue Aws::Errors::ServiceError => e
30
30
  fail_resource e.message
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: 4.22.22
4
+ version: 4.24.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chef InSpec Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-26 00:00:00.000000000 Z
11
+ date: 2020-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inspec-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 4.22.22
19
+ version: 4.24.8
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 4.22.22
26
+ version: 4.24.8
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: train
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -42,16 +42,22 @@ dependencies:
42
42
  name: faraday_middleware
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: 0.12.2
48
+ - - "<"
49
+ - !ruby/object:Gem::Version
50
+ version: '1.1'
48
51
  type: :runtime
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
51
54
  requirements:
52
- - - "~>"
55
+ - - ">="
53
56
  - !ruby/object:Gem::Version
54
57
  version: 0.12.2
58
+ - - "<"
59
+ - !ruby/object:Gem::Version
60
+ version: '1.1'
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: train-habitat
57
63
  requirement: !ruby/object:Gem::Requirement