Skip to content

Commit

Permalink
Updates for Puppet 8 (#164)
Browse files Browse the repository at this point in the history
* Fixes for Ruby 3
* Add explicit support for Puppet 8
* Drop support for Puppet 6
* Add support for stdlib 9

Fixes #163
  • Loading branch information
silug authored Sep 6, 2023
1 parent 2aeee29 commit 5bcc857
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
* Tue Sep 05 2023 Steven Pritchard <[email protected]> - 3.6.0
- Updates for Puppet 8
- Fixes for Ruby 3
- Add explicit support for Puppet 8
- Drop support for Puppet 6
- Add support for stdlib 9

* Wed Aug 23 2023 Steven Pritchard <[email protected]> - 3.5.0
- Add AlmaLinux 8 support

Expand Down
2 changes: 1 addition & 1 deletion lib/puppetx/simp/compliance_map.rb
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def compliance_map(args, context)
end

classkey = "#{res.type}[#{res.title}]"
if expected_value =~ /^re:(.+)/
if expected_value.is_a?(String) && expected_value =~ /^re:(.+)/
section = (current_value =~ Regexp.new($1)) ? 'compliant' : 'non_compliant'
else
section = (current_value == expected_value) ? 'compliant' : 'non_compliant'
Expand Down
6 changes: 3 additions & 3 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simp-compliance_markup",
"version": "3.5.0",
"version": "3.6.0",
"author": "SIMP Team",
"summary": "Compliance-mapping annotation for Puppet code",
"license": "Apache-2.0",
Expand All @@ -16,7 +16,7 @@
"dependencies": [
{
"name": "puppetlabs/stdlib",
"version_requirement": ">= 8.0.0 < 9.0.0"
"version_requirement": ">= 8.0.0 < 10.0.0"
},
{
"name": "simp/simplib",
Expand Down Expand Up @@ -67,7 +67,7 @@
"requirements": [
{
"name": "puppet",
"version_requirement": ">= 6.22.1 < 8.0.0"
"version_requirement": ">= 7.0.0 < 9.0.0"
}
]
}
2 changes: 1 addition & 1 deletion spec/classes/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def remove_data
}

let(:report) {
@report = YAML.load(raw_report)
@report = YAML.safe_load(raw_report, aliases: true)
@report
}

Expand Down

0 comments on commit 5bcc857

Please sign in to comment.