From 3f8af1e5a93b9cefe797489612e2aab0c5a7a4d5 Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Wed, 25 Dec 2024 18:53:59 +0000 Subject: [PATCH 1/2] portable-ruby 3.4.1 --- Formula/portable-ruby.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/portable-ruby.rb b/Formula/portable-ruby.rb index ba1cf0b..b21a9a6 100644 --- a/Formula/portable-ruby.rb +++ b/Formula/portable-ruby.rb @@ -3,8 +3,8 @@ class PortableRuby < PortableFormula desc "Powerful, clean, object-oriented scripting language" homepage "https://www.ruby-lang.org/" - url "https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.7.tar.gz" - sha256 "9c37c3b12288c7aec20ca121ce76845be5bb5d77662a24919651aaf1d12c8628" + url "https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.1.tar.gz" + sha256 "3d385e5d22d368b064c817a13ed8e3cc3f71a7705d7ed1bae78013c33aa7c87f" license "Ruby" # This regex restricts matching to versions other than X.Y.0. From 848a1c8088613786ec274810fb08d3797214bc3e Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Wed, 25 Dec 2024 11:11:58 -0800 Subject: [PATCH 2/2] portable-ruby: update test for Ruby 3.4 syntax Signed-off-by: Patrick Linnane --- Formula/portable-ruby.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/portable-ruby.rb b/Formula/portable-ruby.rb index b21a9a6..27dbaa4 100644 --- a/Formula/portable-ruby.rb +++ b/Formula/portable-ruby.rb @@ -164,7 +164,7 @@ def install shell_output("#{ruby} -rzlib -e 'puts Zlib.crc32(\"test\")'").chomp assert_equal " \t\n`><=;|&{(", shell_output("#{ruby} -rreadline -e 'puts Readline.basic_word_break_characters'").chomp - assert_equal '{"a"=>"b"}', + assert_equal '{"a" => "b"}', shell_output("#{ruby} -ryaml -e 'puts YAML.load(\"a: b\")'").chomp assert_equal "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", shell_output("#{ruby} -ropenssl -e 'puts OpenSSL::Digest::SHA256.hexdigest(\"\")'").chomp