[rubygems/rubygems] Allow bundler to load from the dependency api

https://github.com/rubygems/rubygems/commit/3303957286
This commit is contained in:
Samuel Giddins 2023-08-20 23:37:18 -07:00 committed by git
parent fe90e83b48
commit f0d1b0cc4b
2 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,7 @@
# frozen_string_literal: true
require "stringio"
require_relative "safe_marshal/reader"
require_relative "safe_marshal/visitors/to_ruby"
@ -31,6 +33,11 @@ module Gem
PERMITTED_SYMBOLS = %w[
development
runtime
name
number
platform
dependencies
].freeze
private_constant :PERMITTED_SYMBOLS

View File

@ -258,7 +258,7 @@ module Gem::SafeMarshal
end
COMPAT_CLASSES = {}.tap do |h|
h[Rational] = RationalCompat if RUBY_VERSION >= "3"
h[Rational] = RationalCompat
end.freeze
private_constant :COMPAT_CLASSES