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 ...@@ -30,7 +30,7 @@ module IOStream
end end
# Corrects a bug in Windows when asking for Tempfile size. # Corrects a bug in Windows when asking for Tempfile size.
if defined? Tempfile if defined?(Tempfile) && RUBY_PLATFORM !~ /java/
class Tempfile class Tempfile
def size def size
if @tmpfile 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