Skip to content

Commit

Permalink
Fix riemann-wrapper with older Ruby
Browse files Browse the repository at this point in the history
This reverts commit b4254bd.

The YAML.safe_load_file function was added in Psych 3.2.1, but only Ruby
3 and newer provide this version of the Psych library.  Since this gem
is supposed to work with older (EOL) Ruby versions, revert this for now.

At some point we will drop support for EOL Ruby, but it will be a
backwards incompatbile change and there is no hurry for that at the
moment, and some supported Linux distro still ship these legacy Ruby
versions.
  • Loading branch information
smortex committed May 30, 2024
1 parent a47f0fd commit e5ea5f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/riemann-wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ if ARGV.size == 1
end

require 'yaml'
config = YAML.safe_load_file(ARGV[0])
config = YAML.safe_load(File.read(ARGV[0]))

arguments = split_options(config['options'])
config['tools'].each do |tool|
Expand Down

0 comments on commit e5ea5f4

Please sign in to comment.