inspec 5.23.6 → 6.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c71383217a1edbc827e19ccd5e31a77f0372e51a23a0ab6c22f61b482aa5d8f6
4
- data.tar.gz: 8ff2cd8a20be1cbefa6fe566f34e339a54c87904f24116b290dd048897ac7389
3
+ metadata.gz: 7145e01e64e1c20915a545ba5582a59b8c19522f0eaddf66055fce1b1b1ce428
4
+ data.tar.gz: 62a67bff0e18b1c92567a67c4822f4e7c7fdd9ea2ee82e541e6c2e67ef4f8f16
5
5
  SHA512:
6
- metadata.gz: 7af4db4cd906a60ef301f230af4015d1141bad1d56933d6956053da542b448ad406fc844b0c015dbc34891c01ffe95841a54964523a6047a95e9408ca5373e7d
7
- data.tar.gz: 53542954aad93a6bb5dd2e39bfcf63132ca87631f6ce9628e30c2286c9c7425887d3e81b0973d72421ce0f8e1db9f2d2d864d56fd47921679a3120c38bce7cd1
6
+ metadata.gz: 2fee45943fa837e958dc1a26b03492236469d21b52410f54457dc0ef06ef82749aad95ff981ccbeecd6ff02b1c422eab8819204ec089ffa8fc0d487f9f36bf8f
7
+ data.tar.gz: 9b75899257f59cc068b555bbe6bc65323ad94c64a440ce343537647af284f257f69902c8c85e1bb53c129ca94b2b34bd782e63efb6b4513ba79cfaf7c549f926
data/Gemfile CHANGED
@@ -1,3 +1,12 @@
1
+ # For Chef internal builds, allows preview versions of gems if available.
2
+ if ENV["ARTIFACTORY_BASE_URL"]
3
+ source ENV["ARTIFACTORY_BASE_URL"] + "/artifactory/api/gems/omnibus-gems-local/" do
4
+ # TODO: either fully populate this list, or revert back to non-block format
5
+ # to sweep all Chef gems from Artifactory.
6
+ gem "chef-licensing"
7
+ end
8
+ end
9
+
1
10
  source "https://rubygems.org"
2
11
 
3
12
  gem "inspec", path: "."
@@ -9,14 +18,7 @@ gem "inspec", path: "."
9
18
  # in it in order to package the executable. Hence the odd backwards dependency.
10
19
  gem "inspec-bin", path: "./inspec-bin"
11
20
 
12
- # ffi version v1.17.0 is breaking verify pipeline as it requires
13
- # rubygems version to be upgraded to >= 3.3.22 Ref:https://buildkite.com/chef/inspec-inspec-main-verify-private/builds/812#018fe177-2ccb-45ed-a25e-213c8a6453df/698-707
14
-
15
- gem "ffi", ">= 1.15.5", "< 1.17.0"
16
-
17
- # We have a build issue 2023-11-13 with unf_ext 0.0.9 so we are pinning to 0.0.8.2
18
- # See https://github.com/knu/ruby-unf_ext/issues/74 https://buildkite.com/chef/inspec-inspec-inspec-5-omnibus-release/builds/22
19
- gem "unf_ext", "= 0.0.8.2"
21
+ gem "ffi", ">= 1.9.14", "!= 1.13.0", "!= 1.14.2"
20
22
 
21
23
  # inspec tests depend text output that changed in the 3.10 release
22
24
  # but our runtime dep is still 3.9+
@@ -30,45 +32,27 @@ group :omnibus do
30
32
  end
31
33
 
32
34
  group :test do
33
- gem "chefstyle"
34
- gem "concurrent-ruby"
35
- gem "json_schemer"
35
+ gem "chefstyle", "~> 2.2.2"
36
+ gem "concurrent-ruby", "~> 1.0"
37
+ gem "json_schemer", ">= 0.2.1", "< 2.0.1"
36
38
  gem "m"
37
39
  gem "minitest-sprint", "~> 1.0"
38
40
  gem "minitest", "5.15.0"
39
- gem "mocha"
40
- # Pinning this version as it breaking for ruby 3.1.0
41
- gem "nokogiri", "< 1.17.2"
42
- # Pinning this version as it breaking for ruby 3.0.0
43
- gem "pry-byebug", "< 3.12.0"
44
- gem "pry"
45
- gem "rake"
46
- gem "simplecov"
41
+ gem "mocha", "~> 1.1"
42
+ gem "nokogiri", "~> 1.9"
43
+ gem "pry-byebug"
44
+ gem "pry", "~> 0.10"
45
+ gem "rake", ">= 10"
46
+ gem "simplecov", "~> 0.21"
47
47
  gem "simplecov_json_formatter"
48
- gem "webmock"
49
- gem "signet", "< 0.22.0" # 0.20.0+ requires min ruby 3.1
50
- # Pinning to 1.15 as multi_json 1.16 require ruby 3.2 version
51
- # Ref: https://buildkite.com/chef-oss/inspec-inspec-inspec-5-verify/builds/647#019808ca-087b-43bc-b1f9-40a36f59c5f4
52
- gem "multi_json", "~> 1.15.0"
48
+ gem "webmock", "~> 3.0"
49
+
50
+ if Gem.ruby_version >= Gem::Version.new("3.0.0")
51
+ # html-proofer has a dep on io-event, which is ruby-3 only
52
+ gem "html-proofer", "~> 3.19.4", platforms: :ruby # do not attempt to run proofer on windows. Pinned to 3.19.4 as test is breaking in updated versions.
53
+ end
53
54
  end
54
55
 
55
56
  group :deploy do
56
57
  gem "inquirer"
57
58
  end
58
-
59
- # Build is failing - see: https://buildkite.com/chef-oss/inspec-inspec-inspec-5-verify/builds/442
60
- # Error: zeitwerk-2.7.1 requires Ruby >= 3.2, which is incompatible with the current version (Ruby 3.0.7p220)
61
- # Dependency chain:
62
- # zeitwerk → dry-configurable, dry-struct, dry-types → k8s-ruby → train-kubernetes
63
- # Pinning zeitwerk to ~> 2.6 to avoid Ruby >= 3.2 requirement.
64
- # Remove this pin when upgrading to Ruby 3.2 or higher.
65
- gem "zeitwerk", "~> 2.6.0", "< 2.7"
66
-
67
- # Pinning dry-core,dry-core,dry-types to < 1.1.0 as it is breaking the build because 1.1.0 is incompatible with the current version, ruby 3.0.x on CI
68
- gem "dry-types", "<= 1.7.2" if RUBY_VERSION < "3.1.0"
69
- gem "dry-core", "> 1.0.0", "< 1.1.0" if RUBY_VERSION < "3.1.0"
70
- gem "dry-inflector", "<= 1.1.0" if RUBY_VERSION < "3.1.0"
71
-
72
- # Pinning securerandom to < 0.4.0 as it is breaking the build because 0.4.0 is incompatible with the current version, ruby 3.0.x on CI
73
- # Remove this pin when upgrading to Ruby 3.1 or higher on CI.
74
- gem "securerandom", "< 0.4.0" if RUBY_VERSION < "3.1.0"
data/inspec.gemspec CHANGED
@@ -8,13 +8,20 @@ Gem::Specification.new do |spec|
8
8
  spec.authors = ["Chef InSpec Team"]
9
9
  spec.email = ["inspec@chef.io"]
10
10
  spec.summary = "Infrastructure and compliance testing."
11
- spec.description = "InSpec provides a framework for creating end-to-end infrastructure tests. You can use it for integration or even compliance testing. Create fully portable test profiles and use them in your workflow to ensure stability and security. Integrate InSpec in your change lifecycle for local testing, CI/CD, and deployment verification."
11
+ spec.description = <<-EOT
12
+ InSpec provides a framework for creating end-to-end infrastructure tests. You can use it for integration or even compliance testing. Create fully portable test profiles and use them in your workflow to ensure stability and security. Integrate InSpec in your change lifecycle for local testing, CI/CD, and deployment verification.
13
+
14
+ Packaged distributions of Progress® Chef® products obtained from RubyGems are made available pursuant to the Progress Chef EULA at https://www.chef.io/end-user-license-agreement, unless there is an executed agreement in effect between you and Progress that covers the Progress Chef products ("Master Agreement"), in which case the Master Agreement shall govern.
15
+
16
+ Source code obtained from the Chef GitHub repository is made available under Apache-2.0, a copy of which is included.
17
+
18
+ EOT
19
+
12
20
  spec.homepage = "https://github.com/inspec/inspec"
13
- spec.license = "Apache-2.0"
21
+ spec.license = "LicenseRef-Chef-EULA"
14
22
  spec.require_paths = ["lib"]
15
23
 
16
- # Chef will provide AIX support with ruby 3.0 in separate builds with older versions of InSpec 5, hence we can drop ruby 3.0 support
17
- spec.required_ruby_version = ">= 3.1.0"
24
+ spec.required_ruby_version = ">= 2.7"
18
25
 
19
26
  # ONLY the aws/azure/gcp files. The rest will come in from inspec-core
20
27
  # the gemspec is necessary for appbundler so don't remove it
@@ -25,21 +32,25 @@ Gem::Specification.new do |spec|
25
32
 
26
33
  spec.add_dependency "inspec-core", "= #{Inspec::VERSION}"
27
34
 
28
- spec.add_dependency "train", "~> 3.13", ">= 3.13.4"
35
+ spec.add_dependency "train", "~> 3.10"
36
+
37
+ # cookstyle support for inspec check
38
+ # Added here not because they are compiled, but to keep chef-client lightweight
39
+ spec.add_dependency "cookstyle"
29
40
  spec.add_dependency "rake"
30
41
 
31
42
  # progress bar streaming reporter plugin support
32
43
  spec.add_dependency "progress_bar", "~> 1.3.3"
33
44
 
34
45
  # Used for Azure profile until integrated into train
35
- spec.add_dependency "faraday_middleware", ">= 0.12.2", "< 1.3"
46
+ spec.add_dependency "faraday_middleware", ">= 0.12.2", "< 1.1"
36
47
 
37
48
  # Train plugins we ship with InSpec
38
49
  spec.add_dependency "train-habitat", "~> 0.1"
39
50
  spec.add_dependency "train-aws", "~> 0.2"
40
- spec.add_dependency "train-winrm", "~> 0.4.0" # socks5h changes in 0.4.0
41
- spec.add_dependency "train-kubernetes", "< 0.3.1" # 0.3.1+ requires min ruby 3.1
51
+ spec.add_dependency "train-winrm", "~> 0.2"
52
+ spec.add_dependency "train-kubernetes", "~> 0.1"
42
53
 
43
- spec.add_dependency "mongo", "= 2.21.3" # 2.14 introduces a broken symlink in mongo-2.14.0/spec/support/ocsp
54
+ spec.add_dependency "mongo", "= 2.13.2" # 2.14 introduces a broken symlink in mongo-2.14.0/spec/support/ocsp
44
55
 
45
56
  end
@@ -0,0 +1,6 @@
1
+ Gem::Specification.new do |spec|
2
+ spec.name = "inspec-license"
3
+ spec.summary = "Plugin to list user licenses."
4
+ spec.description = ""
5
+ spec.license = "Apache-2.0"
6
+ end
@@ -0,0 +1,6 @@
1
+ Gem::Specification.new do |spec|
2
+ spec.name = "inspec-parallel"
3
+ spec.summary = "Plugin to handle parallel InSpec scan operations over multiple targets"
4
+ spec.description = ""
5
+ spec.license = "Apache-2.0"
6
+ 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: 5.23.6
4
+ version: 6.6.0
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: 2025-09-23 00:00:00.000000000 Z
11
+ date: 2023-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inspec-core
@@ -16,34 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 5.23.6
19
+ version: 6.6.0
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: 5.23.6
26
+ version: 6.6.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: train
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '3.13'
34
- - - ">="
35
- - !ruby/object:Gem::Version
36
- version: 3.13.4
33
+ version: '3.10'
37
34
  type: :runtime
38
35
  prerelease: false
39
36
  version_requirements: !ruby/object:Gem::Requirement
40
37
  requirements:
41
38
  - - "~>"
42
39
  - !ruby/object:Gem::Version
43
- version: '3.13'
40
+ version: '3.10'
41
+ - !ruby/object:Gem::Dependency
42
+ name: cookstyle
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
44
45
  - - ">="
45
46
  - !ruby/object:Gem::Version
46
- version: 3.13.4
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
47
55
  - !ruby/object:Gem::Dependency
48
56
  name: rake
49
57
  requirement: !ruby/object:Gem::Requirement
@@ -81,7 +89,7 @@ dependencies:
81
89
  version: 0.12.2
82
90
  - - "<"
83
91
  - !ruby/object:Gem::Version
84
- version: '1.3'
92
+ version: '1.1'
85
93
  type: :runtime
86
94
  prerelease: false
87
95
  version_requirements: !ruby/object:Gem::Requirement
@@ -91,7 +99,7 @@ dependencies:
91
99
  version: 0.12.2
92
100
  - - "<"
93
101
  - !ruby/object:Gem::Version
94
- version: '1.3'
102
+ version: '1.1'
95
103
  - !ruby/object:Gem::Dependency
96
104
  name: train-habitat
97
105
  requirement: !ruby/object:Gem::Requirement
@@ -126,46 +134,49 @@ dependencies:
126
134
  requirements:
127
135
  - - "~>"
128
136
  - !ruby/object:Gem::Version
129
- version: 0.4.0
137
+ version: '0.2'
130
138
  type: :runtime
131
139
  prerelease: false
132
140
  version_requirements: !ruby/object:Gem::Requirement
133
141
  requirements:
134
142
  - - "~>"
135
143
  - !ruby/object:Gem::Version
136
- version: 0.4.0
144
+ version: '0.2'
137
145
  - !ruby/object:Gem::Dependency
138
146
  name: train-kubernetes
139
147
  requirement: !ruby/object:Gem::Requirement
140
148
  requirements:
141
- - - "<"
149
+ - - "~>"
142
150
  - !ruby/object:Gem::Version
143
- version: 0.3.1
151
+ version: '0.1'
144
152
  type: :runtime
145
153
  prerelease: false
146
154
  version_requirements: !ruby/object:Gem::Requirement
147
155
  requirements:
148
- - - "<"
156
+ - - "~>"
149
157
  - !ruby/object:Gem::Version
150
- version: 0.3.1
158
+ version: '0.1'
151
159
  - !ruby/object:Gem::Dependency
152
160
  name: mongo
153
161
  requirement: !ruby/object:Gem::Requirement
154
162
  requirements:
155
163
  - - '='
156
164
  - !ruby/object:Gem::Version
157
- version: 2.21.3
165
+ version: 2.13.2
158
166
  type: :runtime
159
167
  prerelease: false
160
168
  version_requirements: !ruby/object:Gem::Requirement
161
169
  requirements:
162
170
  - - '='
163
171
  - !ruby/object:Gem::Version
164
- version: 2.21.3
165
- description: InSpec provides a framework for creating end-to-end infrastructure tests.
166
- You can use it for integration or even compliance testing. Create fully portable
167
- test profiles and use them in your workflow to ensure stability and security. Integrate
168
- InSpec in your change lifecycle for local testing, CI/CD, and deployment verification.
172
+ version: 2.13.2
173
+ description: |+
174
+ InSpec provides a framework for creating end-to-end infrastructure tests. You can use it for integration or even compliance testing. Create fully portable test profiles and use them in your workflow to ensure stability and security. Integrate InSpec in your change lifecycle for local testing, CI/CD, and deployment verification.
175
+
176
+ Packaged distributions of Progress® Chef® products obtained from RubyGems are made available pursuant to the Progress Chef EULA at https://www.chef.io/end-user-license-agreement, unless there is an executed agreement in effect between you and Progress that covers the Progress Chef products ("Master Agreement"), in which case the Master Agreement shall govern.
177
+
178
+ Source code obtained from the Chef GitHub repository is made available under Apache-2.0, a copy of which is included.
179
+
169
180
  email:
170
181
  - inspec@chef.io
171
182
  executables: []
@@ -190,6 +201,8 @@ files:
190
201
  - lib/plugins/inspec-init/templates/profiles/gcp/controls/example.rb
191
202
  - lib/plugins/inspec-init/templates/profiles/gcp/inputs.yml
192
203
  - lib/plugins/inspec-init/templates/profiles/gcp/inspec.yml
204
+ - lib/plugins/inspec-license/inspec-license.gemspec
205
+ - lib/plugins/inspec-parallel/inspec-parallel.gemspec
193
206
  - lib/plugins/inspec-plugin-manager-cli/inspec-plugin-manager-cli.gemspec
194
207
  - lib/plugins/inspec-reporter-html2/inspec-reporter-html2.gemspec
195
208
  - lib/plugins/inspec-reporter-json-min/inspec-reporter-json-min.gemspec
@@ -198,7 +211,7 @@ files:
198
211
  - lib/plugins/inspec-streaming-reporter-progress-bar/inspec-streaming-reporter-progress-bar.gemspec
199
212
  homepage: https://github.com/inspec/inspec
200
213
  licenses:
201
- - Apache-2.0
214
+ - LicenseRef-Chef-EULA
202
215
  metadata: {}
203
216
  post_install_message:
204
217
  rdoc_options: []
@@ -208,14 +221,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
208
221
  requirements:
209
222
  - - ">="
210
223
  - !ruby/object:Gem::Version
211
- version: 3.1.0
224
+ version: '2.7'
212
225
  required_rubygems_version: !ruby/object:Gem::Requirement
213
226
  requirements:
214
227
  - - ">="
215
228
  - !ruby/object:Gem::Version
216
229
  version: '0'
217
230
  requirements: []
218
- rubygems_version: 3.3.27
231
+ rubygems_version: 3.1.4
219
232
  signing_key:
220
233
  specification_version: 4
221
234
  summary: Infrastructure and compliance testing.