summaryrefslogtreecommitdiff
path: root/lib/bundler/plugin
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-10-22 12:41:11 -0500
committerSamuel Giddins <segiddins@segiddins.me>2017-10-22 12:41:11 -0500
commit325ef33ce644ec9b6aae1bc516bcf78a4fb1dce2 (patch)
tree9156a1452de85b84c9ea667ebce7cfb2e5d8793c /lib/bundler/plugin
parent127d3707cc2b7c1c21326633949c28ef855e379b (diff)
downloadbundler-325ef33ce644ec9b6aae1bc516bcf78a4fb1dce2.tar.gz
Avoid activating stdlib digest under Ruby 2.5seg-ruby-2-5-digest-gem
Diffstat (limited to 'lib/bundler/plugin')
-rw-r--r--lib/bundler/plugin/api/source.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bundler/plugin/api/source.rb b/lib/bundler/plugin/api/source.rb
index b27f919253..586477efb5 100644
--- a/lib/bundler/plugin/api/source.rb
+++ b/lib/bundler/plugin/api/source.rb
@@ -1,7 +1,6 @@
# frozen_string_literal: true
require "uri"
-require "digest"
module Bundler
module Plugin
@@ -272,7 +271,7 @@ module Bundler
end
def uri_hash
- Digest(:SHA1).hexdigest(uri)
+ SharedHelpers.digest(:SHA1).hexdigest(uri)
end
# Note: Do not override if you don't know what you are doing.