Commit 30c6dc56 by Prem Sichanugrist

Only monkey patch the Tempfile if it's not jRuby (RUBY_PLATFORM =~ /java/)

Closes #100
parent 32dbcc0b
......@@ -30,7 +30,7 @@ module IOStream
end
# Corrects a bug in Windows when asking for Tempfile size.
if defined? Tempfile
if defined?(Tempfile) && RUBY_PLATFORM !~ /java/
class Tempfile
def size
if @tmpfile
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment