inspec-core 7.1.7 → 7.2.1

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: d615f8a9108fd5631217d136cb8b29e8d1c44f6b049a53c2618907df84876fa8
4
- data.tar.gz: 7745773bd58acc11ac0d8acc9cf7c7e3d1bcb945556a6686514d441a6b8375e0
3
+ metadata.gz: ed63ed9529571a4192cc3d69253bb303cddb5f6c07dd7f6c5009846e20fc2d74
4
+ data.tar.gz: e3f693766b0698bba07fc6ae2e823a51993484d88cd5f309dd83b6dd832a55d4
5
5
  SHA512:
6
- metadata.gz: 4aad4bdd8864cb072120a838b7e342d4d667f24d30cb1a160627f125d6ab9968888f6dc30b0391fed5241afc81c75c4d3bea5868fa6d8f0b26e2847c899d1885
7
- data.tar.gz: a2f4f3c01f19816fd77c65db3ac2a737d23093d71dac78ee82bbede8b39816f18efc6f94a5f7ae718533f065f9b87e9f577eeb42545f4b3fc5f75e4880ef8f98
6
+ metadata.gz: 3c0bc69773b1376970e84b073b556731af530f4706779f5c5ccf3807a6ca5ba4e55a747f08581bb001ed796468108b0080df8197f8484d7a43594d3c4410e3c2
7
+ data.tar.gz: ee83f8a1efd8aca287f1c9fb426083cc1245f1174252747a1a88cb8c6c488d939b2797c415498a54bb4297249ca09ae43618f0a02e55c5fe7dcfee18cf821148
data/Gemfile CHANGED
@@ -43,9 +43,7 @@ group :test do
43
43
  gem "m"
44
44
  gem "minitest-sprint", "~> 1.0"
45
45
  gem "minitest"
46
- # Ruby 3.4+ extracts minitest-mock to a separate gem (bundled gem)
47
- # Adding unconditionally as it's compatible with all Ruby versions
48
- gem "minitest-mock"
46
+ gem "minitest-mock" # Ruby 3.4+ extracts minitest-mock to a separate gem (bundled gem). It's compatible with all Ruby versions.
49
47
  gem "mocha"
50
48
  gem "nokogiri"
51
49
  gem "pry-byebug"
@@ -130,6 +130,9 @@
130
130
  "renamed_to_inspec_export":{
131
131
  "action": "ignore",
132
132
  "prefix": "The `inspec json` command is deprecated in InSpec 5 and replaced with `inspec export` command."
133
+ },
134
+ "cli_option_compliance_overwrite": {
135
+ "action": "warn"
133
136
  }
134
137
  },
135
138
  "fallback_resource_packs":{
@@ -141,7 +144,7 @@
141
144
  "gem":"inspec-elasticsearch-resources",
142
145
  "message":"The `inspec-elasticsearch-resources` allows testing of elasticsearch using Inspec."
143
146
  },
144
- "docker.+":{
147
+ "docker.*":{
145
148
  "gem": "inspec-docker-resources",
146
149
  "message": "The Inspec docker resources are moved out of InSpec core and will be installed as gem"
147
150
  },
@@ -157,7 +160,7 @@
157
160
  "gem": "inspec-opa-resources",
158
161
  "message": "The Inspec opa resources are moved out of InSpec core and will be installed as gem"
159
162
  },
160
- "podman.+":{
163
+ "podman.*":{
161
164
  "gem": "inspec-podman-resources",
162
165
  "message": "The Inspec podman resources are moved out of InSpec core and will be installed as gem"
163
166
  },
@@ -0,0 +1,8 @@
1
+ #!/bin/bash
2
+
3
+ # Default environment variables for InSpec development
4
+ # Copy this file to etc/env.sh and uncomment/customize values as needed
5
+ # NEVER commit etc/env.sh to git
6
+
7
+ # The GitHub repo path for shared-context with optional branch specification
8
+ # export PROGRESS_SHARED_CONTEXT_REPO="progress-infra-poc/shared-context@main"
@@ -0,0 +1,2 @@
1
+ inspec/train
2
+ inspec/train-winrm
data/inspec-core.gemspec CHANGED
@@ -68,7 +68,7 @@ Source code obtained from the Chef GitHub repository is made available under Apa
68
68
  # which was causing a LoadError ('cannot load such file -- ast') for users/applications using 'inspec-core'.
69
69
  spec.add_dependency "cookstyle"
70
70
 
71
- spec.add_dependency "train-core", "~> 3.16", ">= 3.16.1"
71
+ spec.add_dependency "train-core", "~> 3.16", ">= 3.16.5"
72
72
  # Minimum major version 1 is required for Chef licensing telemetry
73
73
  spec.add_dependency "chef-licensing", ">= 1.2.0"
74
74
  end
@@ -376,8 +376,15 @@ module Inspec::Resources
376
376
  'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*',
377
377
  ]
378
378
 
379
- # add 64 bit search paths
380
- if inspec.os.arch == "x86_64"
379
+ # Add WOW6432Node paths for 32-bit apps on 64-bit Windows.
380
+ # Include these unless the system is explicitly 32-bit (i386) — on 32-bit
381
+ # Windows, WOW6432Node does not exist since all apps register under the
382
+ # main Uninstall key.
383
+ # When os.arch is nil (e.g., train falls back to read_cmd_os in a PowerShell
384
+ # WinRM session where %PROCESSOR_ARCHITECTURE% is not expanded), we still
385
+ # include the WOW6432Node paths since virtually all modern Windows systems
386
+ # are 64-bit.
387
+ unless inspec.os.arch == "i386"
381
388
  search_paths << 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*'
382
389
  search_paths << 'HKCU:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*'
383
390
  end
@@ -1,3 +1,3 @@
1
1
  module Inspec
2
- VERSION = "7.1.7".freeze
2
+ VERSION = "7.2.1".freeze
3
3
  end
@@ -140,6 +140,10 @@ module InspecPlugins
140
140
  desc: "Enable legacy functionality, activating both legacy export and legacy check."
141
141
  def upload(path) # rubocop:disable Metrics/MethodLength, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/CyclomaticComplexity
142
142
  Inspec.with_feature("inspec-cli-compliance-upload") {
143
+ if options["overwrite"]
144
+ Inspec.deprecate(:cli_option_compliance_overwrite, "The --overwrite option is deprecated because it does not work with Automate as expected.")
145
+ end
146
+
143
147
  config = InspecPlugins::Compliance::Configuration.new
144
148
  return unless loggedin(config)
145
149
 
@@ -7,7 +7,11 @@ module SourceReaders
7
7
  priority 20
8
8
 
9
9
  def self.resolve(target)
10
- return new(target) unless target.files.grep(/gemspec/).empty?
10
+ # Only match if gemspec is at root level, not in vendor directories
11
+ # This prevents archived/vendored profiles from being treated as gem profiles
12
+ gemspec_files = target.files.grep(/gemspec/)
13
+ root_gemspec = gemspec_files.reject { |f| f.start_with?("vendor/") }
14
+ return new(target) unless root_gemspec.empty?
11
15
 
12
16
  nil
13
17
  end
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: 7.1.7
4
+ version: 7.2.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: 2026-05-08 00:00:00.000000000 Z
11
+ date: 2026-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef-telemetry
@@ -441,7 +441,7 @@ dependencies:
441
441
  version: '3.16'
442
442
  - - ">="
443
443
  - !ruby/object:Gem::Version
444
- version: 3.16.1
444
+ version: 3.16.5
445
445
  type: :runtime
446
446
  prerelease: false
447
447
  version_requirements: !ruby/object:Gem::Requirement
@@ -451,7 +451,7 @@ dependencies:
451
451
  version: '3.16'
452
452
  - - ">="
453
453
  - !ruby/object:Gem::Version
454
- version: 3.16.1
454
+ version: 3.16.5
455
455
  - !ruby/object:Gem::Dependency
456
456
  name: chef-licensing
457
457
  requirement: !ruby/object:Gem::Requirement
@@ -484,10 +484,12 @@ files:
484
484
  - Gemfile
485
485
  - LICENSE
486
486
  - etc/deprecations.json
487
+ - etc/env.default.sh
487
488
  - etc/features.sig
488
489
  - etc/features.yaml
489
490
  - etc/keys/progress-2022-05-04.pem.pub
490
491
  - etc/plugin_filters.json
492
+ - etc/reference-repos.txt
491
493
  - inspec-core.gemspec
492
494
  - lib/bundles/README.md
493
495
  - lib/bundles/inspec-compliance/api.rb