Permalink
Browse files

JRuby doesn't support readpartial on file objects. Changed to a simpl…

…e read & seems to be working.
  • Loading branch information...
1 parent 039461b commit ef2164b6eb2b80f84b21930fff468f4a2a2504bf @mkeveney committed Jul 24, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/nanoc/base/core_ext/pathname.rb
@@ -12,7 +12,7 @@ def checksum
digest = Digest::SHA1.new
File.open(self.to_s, 'r') do |io|
until io.eof
- data = io.readpartial(2**10)
+ data = io.read(2**10)
digest.update(data)
end
end

0 comments on commit ef2164b

Please sign in to comment.