Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.

Commit 8a885b5

Browse files
authored
Merge pull request #306 from Homebrew/bump-portable-ruby-3.4.3
portable-ruby 3.4.3
2 parents 9327353 + 8683278 commit 8a885b5

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Formula/portable-ruby.rb

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
class PortableRuby < PortableFormula
44
desc "Powerful, clean, object-oriented scripting language"
55
homepage "https://www.ruby-lang.org/"
6-
url "https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.8.tar.gz"
7-
sha256 "5ae28a87a59a3e4ad66bc2931d232dbab953d0aa8f6baf3bc4f8f80977c89cab"
6+
url "https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.3.tar.gz"
7+
sha256 "55a4cd1dcbe5ca27cf65e89a935a482c2bb2284832939266551c0ec68b437f46"
88
license "Ruby"
99

1010
# This regex restricts matching to versions other than X.Y.0.
@@ -47,6 +47,12 @@ class PortableRuby < PortableFormula
4747
end
4848
end
4949

50+
# Fix compile on macOS 10.11
51+
patch do
52+
url "https://github.com/Bo98/ruby/commit/7aec5ca6e8ec13d92307615c32a511e02437d7de.patch?full_index=1"
53+
sha256 "644f706bbbb708c2e1d32de65138c335c3710e6d47f86624f9dd98806627e83f"
54+
end
55+
5056
def install
5157
# Remove almost all bundled gems and replace with our own set.
5258
rm_r ".bundle"
@@ -164,7 +170,7 @@ def install
164170
shell_output("#{ruby} -rzlib -e 'puts Zlib.crc32(\"test\")'").chomp
165171
assert_equal " \t\n`><=;|&{(",
166172
shell_output("#{ruby} -rreadline -e 'puts Readline.basic_word_break_characters'").chomp
167-
assert_equal '{"a"=>"b"}',
173+
assert_equal '{"a" => "b"}',
168174
shell_output("#{ruby} -ryaml -e 'puts YAML.load(\"a: b\")'").chomp
169175
assert_equal "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
170176
shell_output("#{ruby} -ropenssl -e 'puts OpenSSL::Digest::SHA256.hexdigest(\"\")'").chomp

0 commit comments

Comments
 (0)