33class 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.5 .tar.gz"
7- sha256 "3781a3504222c2f26cb4b9eb9c1a12dbf4944d366ce24a9ff8cf99ecbce75196 "
6+ url "https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.6 .tar.gz"
7+ sha256 "8dc48fffaf270f86f1019053f28e51e4da4cce32a36760a0603a9aee67d7fd8d "
88 license "Ruby"
99
1010 # This regex restricts matching to versions other than X.Y.0.
@@ -24,8 +24,8 @@ class PortableRuby < PortableFormula
2424 end
2525
2626 resource "msgpack" do
27- url "https://rubygems.org/downloads/msgpack-1.7.2 .gem"
28- sha256 "59ab62fd8a4d0dfbde45009f87eb6f158ab2628a7c48886b0256f175166baaa8 "
27+ url "https://rubygems.org/downloads/msgpack-1.7.3 .gem"
28+ sha256 "edb751dc3378020296365fef3197e5eeab8a7d9a571a25d046464d71b97d3012 "
2929
3030 livecheck do
3131 url "https://rubygems.org/api/v1/versions/msgpack.json"
@@ -47,35 +47,6 @@ class PortableRuby < PortableFormula
4747 end
4848 end
4949
50- # Fix gem warning breaking change introduced in Ruby 3.3.5 (reverted in 3.3.6).
51- # https://bugs.ruby-lang.org/issues/20713
52- patch do
53- url "https://github.com/ruby/ruby/commit/4e59e7d35fbd6ff87f63cd0aa5d6a2f923323fee.patch?full_index=1"
54- sha256 "b031c4f838ee78866e3f4b0de7ea60fbd4b4a4ae57eb3f9de620f1c8e26e4ab2"
55- end
56-
57- # Fix .lock files being created in the `bin` directory.
58- # https://bugs.ruby-lang.org/issues/20721
59- # Instead of cherry-picking the relevant fixes (which themselves had since-fixed regressions),
60- # do what upstream do and simply update Rubygems to 3.5.20.
61- # Remove with Ruby 3.3.6.
62- patch do
63- url "https://github.com/ruby/ruby/commit/95f72a4a32396cae7475b39d7739fb534242b625.patch?full_index=1"
64- sha256 "24764ed8fc29dfd88235db7c5050f4fba40aa9dac0e2e41aff47fc016b633e76"
65- end
66- patch do
67- url "https://github.com/ruby/ruby/commit/ef3c4a7aa7c0a79a00f4daa50e0be1184d9fe536.patch?full_index=1"
68- sha256 "e893cd4b6a61f91b2095192bc905825c2b54bf849c1f5714256c7923f8b1dae4"
69- end
70- patch do
71- url "https://github.com/ruby/ruby/commit/3894841182c32de231b3998502bf1a9dba7cdb4f.patch?full_index=1"
72- sha256 "cf1b9aaa805426b3911bbcd29957dd5beb3fdfacea910a01b4a5c374f2afb9c2"
73- end
74- patch do
75- url "https://github.com/ruby/ruby/commit/77fb1bf434d7be9cf5d892404b04b20c18fa6f06.patch?full_index=1"
76- sha256 "744deac64ba9f52b1b03e7169333a8a6df42d77eb351130c16837ab69647ae5a"
77- end
78-
7950 def install
8051 # Remove almost all bundled gems and replace with our own set.
8152 rm_r ".bundle"
0 commit comments