Skip to content

Commit

Permalink
We need to load Date explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Mar 7, 2024
1 parent 56f1741 commit 28a77e9
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 28a77e9

Please sign in to comment.