Skip to content

Commit

Permalink
Merge pull request #87 from ruby/fix-date-parse
Browse files Browse the repository at this point in the history
Allow to use Date for YAML.load
  • Loading branch information
hsbt authored Mar 7, 2024
2 parents 75d8432 + 0d41af0 commit 56f1741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install_ruby.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function get_released_ruby() {
cat << RUBY | ruby - $1 /tmp/www/_data/releases.yml
require "psych"
version = ARGV[0]
releases = Psych.load_file(ARGV[1])
releases = Psych.load_file(ARGV[1], permitted_classes: [Symbol, Date])
release = releases.find {|x| x["version"] == version }
puts "#{release["url"]["xz"]} #{release["sha256"]["xz"]}"
RUBY
Expand Down

0 comments on commit 56f1741

Please sign in to comment.