From e9a7de16bca9223c18d49efd650a51f1f3f75ee4 Mon Sep 17 00:00:00 2001 From: Samuel Kadolph Date: Mon, 1 Aug 2011 20:56:17 -0400 Subject: [PATCH] Pass a String to MD5::Digest.file because jruby barfs on a Pathname. --- lib/sprockets/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sprockets/base.rb b/lib/sprockets/base.rb index 7dfef7698..fffaa19e4 100644 --- a/lib/sprockets/base.rb +++ b/lib/sprockets/base.rb @@ -72,7 +72,7 @@ def file_digest(path, data = nil) # If its a file, digest the contents elsif stat.file? - digest.file(path) + digest.file(path.to_s) # If its a directive, digest the list of filenames elsif stat.directory?