[rubygems/rubygems] Remove patches for old TruffleRuby versions

https://github.com/rubygems/rubygems/commit/264c61eb8e
This commit is contained in:
David Rodríguez 2024-10-22 20:57:03 +02:00 committed by git
parent da82b84b55
commit b39b998a17
2 changed files with 0 additions and 15 deletions

View File

@ -329,10 +329,6 @@ module Gem
without_gnu_nor_abi_modifiers
end
end
if RUBY_ENGINE == "truffleruby" && !defined?(REUSE_AS_BINARY_ON_TRUFFLERUBY)
REUSE_AS_BINARY_ON_TRUFFLERUBY = %w[libv8 libv8-node sorbet-static].freeze
end
end
Platform.singleton_class.module_eval do

View File

@ -1386,17 +1386,6 @@ begin
rescue LoadError
end
# TruffleRuby >= 24 defines REUSE_AS_BINARY_ON_TRUFFLERUBY in defaults/truffleruby.
# However, TruffleRuby < 24 defines REUSE_AS_BINARY_ON_TRUFFLERUBY directly in its copy
# of lib/rubygems/platform.rb, so it is not defined if RubyGems is updated (gem update --system).
# Instead, we define it here in that case, similar to bundler/lib/bundler/rubygems_ext.rb.
# We must define it here and not in platform.rb because platform.rb is loaded before defaults/truffleruby.
class Gem::Platform
if RUBY_ENGINE == "truffleruby" && !defined?(REUSE_AS_BINARY_ON_TRUFFLERUBY)
REUSE_AS_BINARY_ON_TRUFFLERUBY = %w[libv8 libv8-node sorbet-static].freeze
end
end
##
# Loads the default specs.
Gem::Specification.load_defaults