compliance_engine 1.0.0 → 1.1.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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/compliance_engine/collection.rb +7 -0
- data/lib/compliance_engine/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 322eb116109ed08e365e9b94af1fe1b6df7fb56fd6ea30b04eca07db18606ff7
|
|
4
|
+
data.tar.gz: 026e5d8e77d36830b6653cb64e77421086914aadd7e0ce916648a1a26d4cc1c9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 86d647c9d758c8ba92c078c4784a2b70416dbac30f5ea9f5e1b03e0be34ba137111b689566a1376a792d9ab2ab0a9b1f0b9efb00c5e3df48e3fd2d528ad3c21b
|
|
7
|
+
data.tar.gz: 8e6e3c9614648e25146e16a29d730977896c8131ba149143b67cfb236422523e18ef04b25e6370da4009214f9aea920ed100fffce1d8c2c0f6fdc7eebfb611ee
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
### 1.1.0 / 2026-06-11
|
|
2
|
+
* 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)
|
|
3
|
+
|
|
1
4
|
### 1.0.0 / 2026-06-04
|
|
2
5
|
* Declare the gem and Puppet module production-ready; no functional changes since 0.6.0
|
|
3
6
|
|
|
@@ -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
|
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.
|
|
4
|
+
version: 1.1.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.
|
|
162
|
+
changelog_uri: https://github.com/simp/rubygem-simp-compliance_engine/releases/tag/1.1.0
|
|
163
163
|
bug_tracker_uri: https://github.com/simp/rubygem-simp-compliance_engine/issues
|
|
164
164
|
rdoc_options: []
|
|
165
165
|
require_paths:
|