diff options
author | The Bundler Bot <bot@bundler.io> | 2017-10-16 04:30:33 +0000 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2017-10-30 13:52:45 -0500 |
commit | bf9f327ad2272e54a64c49e6141153f8149639b4 (patch) | |
tree | 7cefde385b0fe0d5b3cf70eee603bb9d3a593584 /spec/plugins | |
parent | f9599c7e8c6775bb4044ad2b4809a957ef8fadea (diff) | |
download | bundler-bf9f327ad2272e54a64c49e6141153f8149639b4.tar.gz |
Auto merge of #6101 - bundler:seg-digest-loading, r=colby-swandale
Load digest subclasses in a thread-safe manner
The problem was `digest` files would sometimes be loaded twice.
My diagnosis was we needed to load the `digest` files using the `::Digest` method, which is explicitly thread-safe.
(cherry picked from commit 8efc35c2e2f68eae40639390b9ced72156d5d4a4)
Diffstat (limited to 'spec/plugins')
-rw-r--r-- | spec/plugins/source/example_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/plugins/source/example_spec.rb b/spec/plugins/source/example_spec.rb index fdeec0b634..0dbd9a2a0f 100644 --- a/spec/plugins/source/example_spec.rb +++ b/spec/plugins/source/example_spec.rb @@ -142,7 +142,7 @@ RSpec.describe "real source plugins" do end describe "bundle cache/package" do - let(:uri_hash) { Digest::SHA1.hexdigest(lib_path("a-path-gem-1.0").to_s) } + let(:uri_hash) { Digest(:SHA1).hexdigest(lib_path("a-path-gem-1.0").to_s) } it "copies repository to vendor cache and uses it" do bundle "install" bundle :cache, forgotten_command_line_options([:all, :cache_all] => true) |