compliance_engine 1.0.0 → 1.2.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: 2b2825442a658e3b82dd5416b52f491b8aaa2ead035a3c47692c9b873fa2c51d
4
- data.tar.gz: 551f20825476674d946d8dfdc2f86c12132ed882616d09bd47704b46df95b359
3
+ metadata.gz: fd6dda6169899f5196adec5578f311ac7772ec6b484718136ab2409cf4ef4191
4
+ data.tar.gz: 2385eda863c5e6e8c147ea035e7560ac8c15aeb90e01ecca40999a8fa9523840
5
5
  SHA512:
6
- metadata.gz: 27ccd78087cf686a891954f1f9ee2c2731a6542e432073465c4aaef6697574317ec9370c3df182d8d95abf01b9e7efc906a761b54c8868b15af11e374b9fd8e2
7
- data.tar.gz: 9792d49a21cd6f3929362be5a4b63f7f770438e1658b8a9806caead3e399263ad8918220cca006f74aff7166012f19b8468567ac6e8186ba0a95ea9ea8653ff5
6
+ metadata.gz: 9c7642d2507ac64401110c766c7dd23511e11fbff1d9ff8b573dc87aaca0388b1976ec499c2da9bbc432142e16f246b1b173959e5aaa8b310a5a31d3e58f030f
7
+ data.tar.gz: 2d3c518ca2bcdb5d2669aa66ea35ba207dc8e0da77578b77a1700bd806b10264d9e2e91588742c4a3227e346ff4f9f15f1047924efb4945cd5d01684b52f3b40
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ### 1.2.0 / 2026-10-17
2
+ * Allow OpenVox 9 (and Puppet 9) in the Puppet module's `metadata.json`
3
+ * Test with OpenVox 9: spec tests on Ruby 4.0 and JRuby 10.0, and acceptance tests against the `openvox9` collection alongside `openvox8`
4
+
5
+ ### 1.1.0 / 2026-06-11
6
+ * Include `Enumerable` in `ComplianceEngine::Collection` so all collections (`Ces`, `Checks`, `Controls`, `Profiles`) gain the full Enumerable interface (`#each_with_object`, `#map`, `#reduce`, `#find`, ...); they defined `#each` but raised `NoMethodError` on these. The explicit `#select`/`#reject` still return Collections. (#127)
7
+
1
8
  ### 1.0.0 / 2026-06-04
2
9
  * Declare the gem and Puppet module production-ready; no functional changes since 0.6.0
3
10
 
@@ -50,9 +50,8 @@ class ComplianceEngine::CLI < Thor
50
50
  def inspect
51
51
  # Run the CLI with `data` as the object containing the compliance data.
52
52
  require 'irb'
53
- # rubocop:disable Lint/Debugger
53
+ # rubocop:disable-next Lint/Debugger
54
54
  binding.irb
55
- # rubocop:enable Lint/Debugger
56
55
  end
57
56
 
58
57
  private
@@ -4,6 +4,13 @@ require_relative '../compliance_engine'
4
4
 
5
5
  # A generic compliance engine data collection
6
6
  class ComplianceEngine::Collection
7
+ # Collections define #each (yielding [name, component] pairs), so mixing in
8
+ # Enumerable gives them the full collection interface: #each_with_object,
9
+ # #map, #reduce, #find, #count, etc. The #select/#reject defined explicitly on
10
+ # this class shadow Enumerable's, so they keep returning Collections rather
11
+ # than Arrays. See #37.
12
+ include Enumerable
13
+
7
14
  # A generic compliance engine data collection
8
15
  #
9
16
  # @param data [ComplianceEngine::Data] the data to initialize the object with
@@ -211,7 +211,7 @@ class ComplianceEngine::Data
211
211
  end
212
212
 
213
213
  self.environment_data ||= {}
214
- self.environment_data = self.environment_data.merge(modules)
214
+ self.environment_data = environment_data.merge(modules)
215
215
 
216
216
  nil
217
217
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ComplianceEngine
4
- VERSION = '1.0.0'
4
+ VERSION = '1.2.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compliance_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Pritchard
@@ -159,7 +159,7 @@ licenses:
159
159
  metadata:
160
160
  homepage_uri: https://simp-project.com/docs/sce/
161
161
  source_code_uri: https://github.com/simp/rubygem-simp-compliance_engine
162
- changelog_uri: https://github.com/simp/rubygem-simp-compliance_engine/releases/tag/1.0.0
162
+ changelog_uri: https://github.com/simp/rubygem-simp-compliance_engine/releases/tag/1.2.0
163
163
  bug_tracker_uri: https://github.com/simp/rubygem-simp-compliance_engine/issues
164
164
  rdoc_options: []
165
165
  require_paths:
@@ -175,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  - !ruby/object:Gem::Version
176
176
  version: '0'
177
177
  requirements: []
178
- rubygems_version: 4.0.10
178
+ rubygems_version: 4.0.20
179
179
  specification_version: 4
180
180
  summary: Parser for Sicura Compliance Engine data
181
181
  test_files: []