Created
August 4, 2011 15:00
-
-
Save joelash/1125362 to your computer and use it in GitHub Desktop.
jruby-1.6.3 Digest#file bug when run with JRUBY_OPTS=--1.9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'pathname' | |
require 'digest' | |
`touch foo.txt` | |
path = Pathname.new 'foo.txt' | |
digest = Digest::MD5.new # digest type doesn't matter, see same problem with SHA1 | |
digest.file path # this line throws an error when have JRUBY_OPTS=--1.9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment