aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2017-05-29 21:40:31 -0700
committerMisty De Meo2017-05-30 18:30:16 -0700
commita40291ee4a0adfd87bb935e58a6e5335546b6364 (patch)
treea3e68c823fcc37233972622deb3bae7efb644089 /Library
parent90c971625e6560cf6a5633cd269cc7286028f021 (diff)
downloadbrew-a40291ee4a0adfd87bb935e58a6e5335546b6364.tar.bz2
Pathname: use Digest::SHA256 alias
Digest::SHA2 wasn't exposed under that name in older versions of Ruby.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/pathname.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index c413e9e94..93b1c720b 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -322,7 +322,7 @@ class Pathname
def sha256
require "digest/sha2"
- incremental_hash(Digest::SHA2)
+ incremental_hash(Digest::SHA256)
end
def verify_checksum(expected)