Skip to content

Commit

Permalink
Merge pull request #88 from ruby/fix-missing-date
Browse files Browse the repository at this point in the history
We need to load Date explicitly
  • Loading branch information
hsbt authored Mar 7, 2024
2 parents 56f1741 + 28a77e9 commit 684c2e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions install_ruby.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ function get_released_ruby() {

cat << RUBY | ruby - $1 /tmp/www/_data/releases.yml
require "psych"
require "date"
version = ARGV[0]
releases = Psych.load_file(ARGV[1], permitted_classes: [Symbol, Date])
release = releases.find {|x| x["version"] == version }
Expand Down

0 comments on commit 684c2e3

Please sign in to comment.