Skip to content

Instantly share code, notes, and snippets.

@joelash
Created August 4, 2011 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save joelash/1125362 to your computer and use it in GitHub Desktop.
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
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