From 28a77e9f9f7b9edc20ada81b37b3820140fa8965 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 7 Mar 2024 11:43:44 +0900 Subject: [PATCH] We need to load Date explicitly --- install_ruby.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install_ruby.sh b/install_ruby.sh index 4c8addf..9a698af 100755 --- a/install_ruby.sh +++ b/install_ruby.sh @@ -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 }