Skip to content

Commit

Permalink
Merge pull request #227 from jrafanie/test_ruby31
Browse files Browse the repository at this point in the history
Add ruby 3.1 to the test matrix
  • Loading branch information
kbrock authored Jan 23, 2024
2 parents 793a6dd + 5880670 commit c295d5c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
matrix:
ruby-version:
- '3.0'
- '3.1'
rails-version:
- '6.1'
- '7.0'
Expand Down
8 changes: 7 additions & 1 deletion lib/manageiq/appliance_console/message_configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,13 @@ def configure_messaging_yaml

return if file_found?(messaging_yaml_path)

messaging_yaml = YAML.load_file(messaging_yaml_sample_path)
data = File.read(messaging_yaml_sample_path)
messaging_yaml =
if YAML.respond_to?(:safe_load)
YAML.safe_load(data, :aliases => true)
else
YAML.load(data) # rubocop:disable Security/YAMLLoad
end

messaging_yaml["production"]["host"] = message_server_host
messaging_yaml["production"]["port"] = message_server_port
Expand Down

0 comments on commit c295d5c

Please sign in to comment.