diff options
author | Martin Emde <martin.emde@gmail.com> | 2023-12-13 11:15:51 -0800 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-12-13 20:28:37 +0000 |
commit | 7f4b271a61a11b0254304b78db72fd2c954a4370 (patch) | |
tree | d5b9044cfff2ee8c99d7fb18d59f98595fd2660f /lib/bundler/errors.rb | |
parent | 14c7895c21bee44934336a9a9ea94aefc5cc7879 (diff) |
[rubygems/rubygems] Store Checksum::Store indexed by spec.lock_name
https://github.com/rubygems/rubygems/commit/34d6c6c72f
Diffstat (limited to 'lib/bundler/errors.rb')
-rw-r--r-- | lib/bundler/errors.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/bundler/errors.rb b/lib/bundler/errors.rb index eec72b1692..b6a11cc721 100644 --- a/lib/bundler/errors.rb +++ b/lib/bundler/errors.rb @@ -53,8 +53,8 @@ module Bundler class MarshalError < StandardError; end class ChecksumMismatchError < SecurityError - def initialize(name_tuple, existing, checksum) - @name_tuple = name_tuple + def initialize(lock_name, existing, checksum) + @lock_name = lock_name @existing = existing @checksum = checksum end @@ -62,9 +62,9 @@ module Bundler def message <<~MESSAGE Bundler found mismatched checksums. This is a potential security risk. - #{@name_tuple.lock_name} #{@existing.to_lock} + #{@lock_name} #{@existing.to_lock} from #{@existing.sources.join("\n and ")} - #{@name_tuple.lock_name} #{@checksum.to_lock} + #{@lock_name} #{@checksum.to_lock} from #{@checksum.sources.join("\n and ")} #{mismatch_resolution_instructions} |