summaryrefslogtreecommitdiff
path: root/lib/bundler/plugin/api/source.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/plugin/api/source.rb')
-rw-r--r--lib/bundler/plugin/api/source.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/plugin/api/source.rb b/lib/bundler/plugin/api/source.rb
index aadd65e65e..b27f919253 100644
--- a/lib/bundler/plugin/api/source.rb
+++ b/lib/bundler/plugin/api/source.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
require "uri"
-require "digest/sha1"
+require "digest"
module Bundler
module Plugin
@@ -272,7 +272,7 @@ module Bundler
end
def uri_hash
- Digest::SHA1.hexdigest(uri)
+ Digest(:SHA1).hexdigest(uri)
end
# Note: Do not override if you don't know what you are doing.