Hi,
I’m getting this warning from jruby:
jruby/1.9/gems/mechanize-2.7.3/lib/mechanize/http/agent.rb:1218
warning: Tempfile#unlink or delete called on open file; ignoring
mechanisze does this:
def make_tempfile name
io = Tempfile.new name
io.unlink
io.binmode if io.respond_to? :binmode
io
end
I raised a bug with mechanize
(jruby: warning: Tempfile#unlink or delete called on open file; ignoring · Issue #371 · sparklemotion/mechanize · GitHub) thinking it
might be ill advised usage. Having looked at the bug for the warning
(https://jira.codehaus.org/browse/JRUBY-6688) it seems to only be a
precaution against certain file methods (e.g. stat) not working, so
should be fine if such methods aren’t used.
Any recommendations?
Thanks
Tristan