ruby/spec/bundler/runtime
Mercedes Bernard 69d7e9a12e
[rubygems/rubygems] Use the server checksum, then calculate from gem on disk if possible
1. Use the checksum provided by the server if provided: provides security
knowing if the gem you downloaded matches the gem on the server

2. Calculate the checksum from the gem on disk: provides security knowing
if the gem has changed between installs

3. In some cases, neither is possible in which case we don't put anything
in the checksum and we maintain functionality as it is today

Add the checksums to specs in the index if we already have them

Prior to checksums, we didn't lose any information when overwriting specs
in the index with stubs. But now when we overwrite EndpointSpecifications
or RemoteSpecifications with more generic specs, we could lose checksum
info. This manually sets checksum info so we keep it in the index.

de00a4f153
2023-10-23 13:59:01 +09:00
..
executable_spec.rb [rubygems/rubygems] Explicitly define a global source for tests 2021-07-27 09:25:57 +09:00
gem_tasks_spec.rb Merge RubyGems-3.3.1 and Bundler-2.3.1 2021-12-23 09:44:45 +09:00
inline_spec.rb [rubygems/rubygems] Fix inline mode with multiple sources 2023-06-06 10:52:53 +09:00
load_spec.rb Sync latest bundler & rubygems development version 2021-07-07 13:30:20 +09:00
platform_spec.rb [rubygems/rubygems] Use the server checksum, then calculate from gem on disk if possible 2023-10-23 13:59:01 +09:00
require_spec.rb Merge RubyGems and Bundler master 2022-07-13 14:11:55 +09:00
self_management_spec.rb [rubygems/rubygems] Fixed malformed lockfile version on installing 2023-08-28 07:41:51 +00:00
setup_spec.rb [rubygems/rubygems] Add CHECKSUMS for each gem in lockfile 2023-10-23 13:59:01 +09:00
with_unbundled_env_spec.rb [rubygems/rubygems] Explicitly define a global source for tests 2021-07-27 09:25:57 +09:00