summaryrefslogtreecommitdiff
path: root/lib/bundler/digest.rb
diff options
context:
space:
mode:
authorMartin Emde <martin.emde@gmail.com>2023-12-05 13:29:37 -0800
committergit <svn-admin@ruby-lang.org>2023-12-06 02:45:37 +0000
commitd9a1bb4b097899c21c9a11b042072224c4ff252b (patch)
tree7bb32884b26c0cf2b63f8db83180dabbf2ad2e37 /lib/bundler/digest.rb
parentb8b319dd1a48b695df8982eacf8b1ee0004c7a8b (diff)
[rubygems/rubygems] Use String#unpack1 available since ruby 3.0
https://github.com/rubygems/rubygems/commit/46258d6cb4
Diffstat (limited to 'lib/bundler/digest.rb')
-rw-r--r--lib/bundler/digest.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/digest.rb b/lib/bundler/digest.rb
index 148e9f7788..2c6d971f1b 100644
--- a/lib/bundler/digest.rb
+++ b/lib/bundler/digest.rb
@@ -50,7 +50,7 @@ module Bundler
words.map!.with_index {|word, index| SHA1_MASK & (word + mutated[index]) }
end
- words.pack("N*").unpack("H*").first
+ words.pack("N*").unpack1("H*")
end
private