Skip to content

Commit c94ae18

Browse files
committed
Add FalseClass to SAFE_MARSHAL_CLASSES
* It is needed by `jt test bundle` when CRuby 3.2 is running gem server. With CRuby 3.1 this error did not happen.
1 parent 59c8186 commit c94ae18

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/mri/bundler.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ module Bundler
3939
environment_preserver.replace_with_backup
4040
SUDO_MUTEX = Thread::Mutex.new
4141

42-
SAFE_MARSHAL_CLASSES = [Symbol, TrueClass, String, Array, Hash, Gem::Version, Gem::Specification].freeze
42+
# TruffleRuby: FalseClass added because it is necessary for `jt test bundle`, and also done upstream since https://github.com/rubygems/rubygems/pull/6655
43+
SAFE_MARSHAL_CLASSES = [Symbol, TrueClass, FalseClass, String, Array, Hash, Gem::Version, Gem::Specification].freeze
4344
SAFE_MARSHAL_ERROR = "Unexpected class %s present in marshaled data. Only %s are allowed."
4445
SAFE_MARSHAL_PROC = proc do |object|
4546
object.tap do

0 commit comments

Comments
 (0)