|
3 | 3 | class PortableRuby < PortableFormula |
4 | 4 | desc "Powerful, clean, object-oriented scripting language" |
5 | 5 | 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" |
8 | 8 | license "Ruby" |
9 | 9 |
|
10 | 10 | # This regex restricts matching to versions other than X.Y.0. |
@@ -47,6 +47,12 @@ class PortableRuby < PortableFormula |
47 | 47 | end |
48 | 48 | end |
49 | 49 |
|
| 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 | + |
50 | 56 | def install |
51 | 57 | # Remove almost all bundled gems and replace with our own set. |
52 | 58 | rm_r ".bundle" |
@@ -164,7 +170,7 @@ def install |
164 | 170 | shell_output("#{ruby} -rzlib -e 'puts Zlib.crc32(\"test\")'").chomp |
165 | 171 | assert_equal " \t\n`><=;|&{(", |
166 | 172 | shell_output("#{ruby} -rreadline -e 'puts Readline.basic_word_break_characters'").chomp |
167 | | - assert_equal '{"a"=>"b"}', |
| 173 | + assert_equal '{"a" => "b"}', |
168 | 174 | shell_output("#{ruby} -ryaml -e 'puts YAML.load(\"a: b\")'").chomp |
169 | 175 | assert_equal "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", |
170 | 176 | shell_output("#{ruby} -ropenssl -e 'puts OpenSSL::Digest::SHA256.hexdigest(\"\")'").chomp |
|
0 commit comments