Skip to content

Commit

Permalink
Add FalseClass to SAFE_MARSHAL_CLASSES
Browse files Browse the repository at this point in the history
* It is needed by `jt test bundle` when CRuby 3.2 is running gem server.
  With CRuby 3.1 this error did not happen.
  • Loading branch information
eregon committed Nov 30, 2023
1 parent 59c8186 commit c94ae18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/mri/bundler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ module Bundler
environment_preserver.replace_with_backup
SUDO_MUTEX = Thread::Mutex.new

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

0 comments on commit c94ae18

Please sign in to comment.