diff options
author | Mercedes Bernard <[email protected]> | 2023-02-15 15:07:05 -0600 |
---|---|---|
committer | git <[email protected]> | 2023-02-23 08:50:03 +0000 |
commit | 583137fe5697c0d7119a11caa61c343683dc81e5 (patch) | |
tree | ac493a9f10ceb86ac289b6b617975c6d35b9c402 /lib/bundler.rb | |
parent | d5994eb4362d7aba01c36b1b3a1ec3e7462d70d5 (diff) |
[rubygems/rubygems] make Bundler.load_marshal private
https://github.com/rubygems/rubygems/commit/4909d071d2
Diffstat (limited to 'lib/bundler.rb')
-rw-r--r-- | lib/bundler.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb index 68fcff7840..1598397bca 100644 --- a/lib/bundler.rb +++ b/lib/bundler.rb @@ -525,12 +525,6 @@ EOF load_marshal(data, :marshal_proc => SAFE_MARSHAL_PROC) end - def load_marshal(data, marshal_proc: nil) - Marshal.load(data, marshal_proc) - rescue TypeError => e - raise MarshalError, "#{e.class}: #{e.message}" - end - def load_gemspec(file, validate = false) @gemspec_cache ||= {} key = File.expand_path(file) @@ -619,6 +613,12 @@ EOF private + def load_marshal(data, marshal_proc: nil) + Marshal.load(data, marshal_proc) + rescue TypeError => e + raise MarshalError, "#{e.class}: #{e.message}" + end + def eval_yaml_gemspec(path, contents) Kernel.require "psych" |