inspec 4.23.15 → 4.25.1

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: 3fb44a09849349d6dd99638cd3f2998f14ae039a12ddb449a97156f40b009ba7
4
- data.tar.gz: 755369ab5359e07d1880cc04c8fe58f09c586e75c29b6fc4cfe0f5f10eaabc41
3
+ metadata.gz: 3aa75ff0854e501df881167882cf8a278e77919188c0474afe40cc97eaec5c9e
4
+ data.tar.gz: 172732810ba4fc07cb33b83b0bc94800b3034b14c80d8d4dc32de690f47238d4
5
5
  SHA512:
6
- metadata.gz: fd0706e22b7d957b405d9973167da3e33caa13f4e561cf423799d9105f5e0c373401ecbc24f4c9bcd054638ff5c6d9e12f417c1abaf82dfe39517f929c7206b2
7
- data.tar.gz: 39d25bbebf66fee94d2cffad8b0a646e13819c1a680b83d841b0e08865822704069ca206d624fac49d5c358f37740ea7a9791cf9513758722aac6d9ccd68c218
6
+ metadata.gz: 79f202cba830524e9f896a627a2c5ab13a355d02986ad9448ca21659e2e79f64bc64a5579314fd7165cd561e9bad6f3d4f111224dacd5b00b990e7aa9010dae4
7
+ data.tar.gz: 84dca7bc01e7e9fd6ef3297a563663b55d25c5d0fd20fd192e5a7700fc257e285836a9d708bed68292d27bbf29602db252ee868eb10ffbcb11425b450c9c7c3f
data/Gemfile CHANGED
@@ -9,7 +9,16 @@ gem "inspec", path: "."
9
9
  # in it in order to package the executable. Hence the odd backwards dependency.
10
10
  gem "inspec-bin", path: "./inspec-bin"
11
11
 
12
- gem "ffi", ">= 1.9.14", "!= 1.13.0"
12
+ gem "ffi", ">= 1.9.14", "!= 1.13.0", "!= 1.14.2"
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
+
19
+ # inspec tests depend text output that changed in the 3.10 release
20
+ # but our runtime dep is still 3.9+
21
+ gem "rspec", ">= 3.10"
13
22
 
14
23
  group :omnibus do
15
24
  gem "rb-readline"
@@ -19,46 +28,23 @@ group :omnibus do
19
28
  end
20
29
 
21
30
  group :test do
22
- 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"]
31
+ gem "chefstyle", "~> 1.5.7"
27
32
  gem "concurrent-ruby", "~> 1.0"
28
- gem "nokogiri", "~> 1.9"
33
+ gem "html-proofer", platforms: :ruby # do not attempt to run proofer on windows
34
+ gem "json_schemer", ">= 0.2.1", "< 0.2.18"
35
+ gem "m"
36
+ gem "minitest-sprint", "~> 1.0"
37
+ gem "minitest", "~> 5.5"
29
38
  gem "mocha", "~> 1.1"
39
+ gem "nokogiri", "~> 1.9"
40
+ gem "pry-byebug"
41
+ gem "pry", "~> 0.10"
42
+ gem "rake", ">= 10"
30
43
  gem "ruby-progressbar", "~> 1.8"
44
+ gem "simplecov", "~> 0.18"
31
45
  gem "webmock", "~> 3.0"
32
- gem "m"
33
- gem "pry", "~> 0.10"
34
- gem "pry-byebug"
35
- gem "html-proofer", platforms: :ruby # do not attempt to run proofer on windows
36
- end
37
-
38
- group :integration do
39
- gem "berkshelf"
40
- gem "test-kitchen"
41
- gem "kitchen-vagrant"
42
- gem "chef", "< 15"
43
- gem "chef-zero", "< 15"
44
- gem "kitchen-inspec"
45
- gem "kitchen-ec2"
46
- gem "kitchen-dokken"
47
- gem "git"
48
- end
49
-
50
- # gems for Maintainers.md generation
51
- group :maintenance do
52
- gem "tomlrb"
53
-
54
- # To sync maintainers with github
55
- gem "octokit"
56
- gem "netrc"
57
46
  end
58
47
 
59
48
  group :deploy do
60
49
  gem "inquirer"
61
50
  end
62
-
63
- # add these additional dependencies into Gemfile.local
64
- eval_gemfile(__FILE__ + ".local") if File.exist?(__FILE__ + ".local")
@@ -1,4 +1,4 @@
1
- lib = File.expand_path("../lib", __FILE__)
1
+ lib = File.expand_path("lib", __dir__)
2
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
  require "inspec/version"
4
4
 
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
13
13
  spec.license = "Apache-2.0"
14
14
  spec.require_paths = ["lib"]
15
15
 
16
- spec.required_ruby_version = "~> 2.4"
16
+ spec.required_ruby_version = ">= 2.5"
17
17
 
18
18
  # ONLY the aws/azure/gcp files. The rest will come in from inspec-core
19
19
  # the gemspec is necessary for appbundler so don't remove it
@@ -1,9 +1,7 @@
1
1
  require "resource_support/aws/aws_singular_resource_mixin"
2
2
  require "resource_support/aws/aws_backend_base"
3
3
 
4
- require "resource_support/aws/aws_singular_resource_mixin"
5
- require "resource_support/aws/aws_backend_base"
6
- require "aws-sdk-costandusagereportservice.rb"
4
+ require "aws-sdk-costandusagereportservice"
7
5
 
8
6
  class AwsBillingReport < Inspec.resource(1)
9
7
  name "aws_billing_report"
@@ -37,19 +37,18 @@ class AwsEcsCluster < Inspec.resource(1)
37
37
 
38
38
  def fetch_from_api
39
39
  backend = BackendFactory.create(inspec_runner)
40
- begin
41
- # Use default cluster if no cluster name is specified
42
- params = cluster_name.nil? ? {} : { clusters: [cluster_name] }
43
- clusters = backend.describe_clusters(params).clusters
44
40
 
45
- # Cluster name is unique, we either get back one cluster, or none
46
- if clusters.length == 1
47
- @exists = true
48
- unpack_describe_clusters_response(clusters.first)
49
- else
50
- @exists = false
51
- populate_as_missing
52
- end
41
+ # Use default cluster if no cluster name is specified
42
+ params = cluster_name.nil? ? {} : { clusters: [cluster_name] }
43
+ clusters = backend.describe_clusters(params).clusters
44
+
45
+ # Cluster name is unique, we either get back one cluster, or none
46
+ if clusters.length == 1
47
+ @exists = true
48
+ unpack_describe_clusters_response(clusters.first)
49
+ else
50
+ @exists = false
51
+ populate_as_missing
53
52
  end
54
53
  end
55
54
 
@@ -2,9 +2,9 @@ require "resource_support/aws/aws_singular_resource_mixin"
2
2
  require "resource_support/aws/aws_backend_base"
3
3
  require "aws-sdk-iam"
4
4
 
5
- require "json"
6
- require "set"
7
- require "uri"
5
+ require "json" unless defined?(JSON)
6
+ require "set" unless defined?(Set)
7
+ require "uri" unless defined?(URI)
8
8
 
9
9
  class AwsIamPolicy < Inspec.resource(1)
10
10
  name "aws_iam_policy"
@@ -1,5 +1,5 @@
1
- require "set"
2
- require "ipaddr"
1
+ require "set" unless defined?(Set)
2
+ require "ipaddr" unless defined?(IPAddr)
3
3
 
4
4
  require "resource_support/aws/aws_singular_resource_mixin"
5
5
  require "resource_support/aws/aws_backend_base"
@@ -2,7 +2,7 @@ require "resource_support/aws/aws_singular_resource_mixin"
2
2
  require "resource_support/aws/aws_backend_base"
3
3
  require "aws-sdk-sqs"
4
4
 
5
- require "uri"
5
+ require "uri" unless defined?(URI)
6
6
 
7
7
  class AwsSqsQueue < Inspec.resource(1)
8
8
  name "aws_sqs_queue"
@@ -1,5 +1,5 @@
1
1
  require "resources/azure/azure_backend"
2
- require "uri"
2
+ require "uri" unless defined?(URI)
3
3
 
4
4
  module Inspec::Resources
5
5
  class AzureVirtualMachineDataDisk < AzureResourceBase
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.23.15
4
+ version: 4.25.1
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-10-22 00:00:00.000000000 Z
11
+ date: 2021-01-20 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.23.15
19
+ version: 4.25.1
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.23.15
26
+ version: 4.25.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: train
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -192,16 +192,16 @@ require_paths:
192
192
  - lib
193
193
  required_ruby_version: !ruby/object:Gem::Requirement
194
194
  requirements:
195
- - - "~>"
195
+ - - ">="
196
196
  - !ruby/object:Gem::Version
197
- version: '2.4'
197
+ version: '2.5'
198
198
  required_rubygems_version: !ruby/object:Gem::Requirement
199
199
  requirements:
200
200
  - - ">="
201
201
  - !ruby/object:Gem::Version
202
202
  version: '0'
203
203
  requirements: []
204
- rubygems_version: 3.0.3
204
+ rubygems_version: 3.1.4
205
205
  signing_key:
206
206
  specification_version: 4
207
207
  summary: Infrastructure and compliance testing.