Skip to content

Commit

Permalink
Account for Syck being default YAML in 1.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
bf4 authored and etagwerker committed Nov 6, 2021
1 parent 1a64fde commit 34c85bb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/metric_fu/reporting/result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ def self.result
#
# It tracks the results generated by each metric used in this test run.
class Result
if RUBY_VERSION == "1.9.2"
# Psych is required for YAML.to_json to work
# In 1.9.2, the default is still Syck
YAML::ENGINE.yamler = "psych"
end

# Renders the result of the result_hash into a yaml serialization
# ready for writing out to a file.
#
Expand Down

0 comments on commit 34c85bb

Please sign in to comment.