Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

portable-ruby 3.3.6 #251

Merged
merged 3 commits into from
Nov 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 4 additions & 33 deletions Formula/portable-ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.5.tar.gz"
sha256 "3781a3504222c2f26cb4b9eb9c1a12dbf4944d366ce24a9ff8cf99ecbce75196"
url "https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.6.tar.gz"
sha256 "8dc48fffaf270f86f1019053f28e51e4da4cce32a36760a0603a9aee67d7fd8d"
license "Ruby"

# This regex restricts matching to versions other than X.Y.0.
Expand All @@ -24,8 +24,8 @@ class PortableRuby < PortableFormula
end

resource "msgpack" do
url "https://rubygems.org/downloads/msgpack-1.7.2.gem"
sha256 "59ab62fd8a4d0dfbde45009f87eb6f158ab2628a7c48886b0256f175166baaa8"
url "https://rubygems.org/downloads/msgpack-1.7.3.gem"
sha256 "edb751dc3378020296365fef3197e5eeab8a7d9a571a25d046464d71b97d3012"

livecheck do
url "https://rubygems.org/api/v1/versions/msgpack.json"
Expand All @@ -47,35 +47,6 @@ class PortableRuby < PortableFormula
end
end

# Fix gem warning breaking change introduced in Ruby 3.3.5 (reverted in 3.3.6).
# https://bugs.ruby-lang.org/issues/20713
patch do
url "https://github.com/ruby/ruby/commit/4e59e7d35fbd6ff87f63cd0aa5d6a2f923323fee.patch?full_index=1"
sha256 "b031c4f838ee78866e3f4b0de7ea60fbd4b4a4ae57eb3f9de620f1c8e26e4ab2"
end

# Fix .lock files being created in the `bin` directory.
# https://bugs.ruby-lang.org/issues/20721
# Instead of cherry-picking the relevant fixes (which themselves had since-fixed regressions),
# do what upstream do and simply update Rubygems to 3.5.20.
# Remove with Ruby 3.3.6.
patch do
url "https://github.com/ruby/ruby/commit/95f72a4a32396cae7475b39d7739fb534242b625.patch?full_index=1"
sha256 "24764ed8fc29dfd88235db7c5050f4fba40aa9dac0e2e41aff47fc016b633e76"
end
patch do
url "https://github.com/ruby/ruby/commit/ef3c4a7aa7c0a79a00f4daa50e0be1184d9fe536.patch?full_index=1"
sha256 "e893cd4b6a61f91b2095192bc905825c2b54bf849c1f5714256c7923f8b1dae4"
end
patch do
url "https://github.com/ruby/ruby/commit/3894841182c32de231b3998502bf1a9dba7cdb4f.patch?full_index=1"
sha256 "cf1b9aaa805426b3911bbcd29957dd5beb3fdfacea910a01b4a5c374f2afb9c2"
end
patch do
url "https://github.com/ruby/ruby/commit/77fb1bf434d7be9cf5d892404b04b20c18fa6f06.patch?full_index=1"
sha256 "744deac64ba9f52b1b03e7169333a8a6df42d77eb351130c16837ab69647ae5a"
end

def install
# Remove almost all bundled gems and replace with our own set.
rm_r ".bundle"
Expand Down
Loading