From 22435400d54b9e3f302c5003a58fa9f95fe9a69a Mon Sep 17 00:00:00 2001 From: Iheanyi Ekechukwu Date: Sun, 11 Nov 2018 15:53:33 -0500 Subject: [PATCH 1/2] Install JRE if `user_answer` is nil. I was running this in CI and `user_answer` was `nil` during this script. I believe that if it is `nil`, it should default to `yes` and execute the installation code path. --- bin/s3_website | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/s3_website b/bin/s3_website index 727d7dde..2bff0f31 100755 --- a/bin/s3_website +++ b/bin/s3_website @@ -194,7 +194,7 @@ def autoinstall_java_or_print_help_and_exit(logger) if automatic_method @logger.info_msg "Do you want me to install Java with the command `#{automatic_method.fetch(:install_command)}`? [Y/n]" user_answer = $stdin.gets - if user_answer.chomp.downcase == 'y' or user_answer == "\n" + if user_answer.chomp.downcase == 'y' or user_answer == "\n" or user_answer.nil? automatic_method_succeeded = system automatic_method.fetch(:install_command) unless automatic_method_succeeded @logger.fail_msg "Could not automatically install Java. Try setting it up manually:" From ce06f093ebb498fcc93e57c2f8c81e428b830092 Mon Sep 17 00:00:00 2001 From: Iheanyi Ekechukwu Date: Fri, 30 Apr 2021 13:14:52 -0400 Subject: [PATCH 2/2] Update s3_website.gemspec --- s3_website.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s3_website.gemspec b/s3_website.gemspec index 0e878133..8225b6d5 100644 --- a/s3_website.gemspec +++ b/s3_website.gemspec @@ -22,7 +22,7 @@ Gem::Specification.new do |s| s.add_dependency 'colored', '1.2' s.add_dependency 'dotenv', '~> 1.0' - s.add_development_dependency 'rake', '10.1.1' + s.add_development_dependency 'rake', '12.3.3' s.add_development_dependency 'octokit', '3.1.0' s.add_development_dependency 'mime-types'