diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-11-15 15:28:44 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-11-15 15:28:44 -0800 |
commit | c4c880c5a2ac521d4a6d0bad132d38dfff375a6c (patch) | |
tree | bc3ddac6436fc15ece7bd72bd15bafaa12779f4b /t/bin/sha1sum.rb | |
parent | 2fd5910969419c17aa6a31fb2119eb47a121d497 (diff) | |
download | unicorn-c4c880c5a2ac521d4a6d0bad132d38dfff375a6c.tar.gz |
The output of SHA1 command-line tools is too unstable and I'm more comfortable with Ruby 1.9 encoding support than I was in 2009. Jeremy Evans noted the output of "openssl sha1" has changed since I last used it.
Diffstat (limited to 't/bin/sha1sum.rb')
-rwxr-xr-x | t/bin/sha1sum.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/t/bin/sha1sum.rb b/t/bin/sha1sum.rb index b602e79..53d68ce 100755 --- a/t/bin/sha1sum.rb +++ b/t/bin/sha1sum.rb @@ -1,12 +1,6 @@ #!/usr/bin/env ruby # -*- encoding: binary -*- - -# Reads from stdin and outputs the SHA1 hex digest of the input this is -# ONLY used as a last resort, our test code will try to use sha1sum(1), -# openssl(1), or gsha1sum(1) before falling back to using this. We try -# all options first because we have a strong and healthy distrust of our -# Ruby abilities in general, and *especially* when it comes to -# understanding (and trusting the implementation of) Ruby 1.9 encoding. +# Reads from stdin and outputs the SHA1 hex digest of the input require 'digest/sha1' $stdout.sync = $stderr.sync = true |