JRuby

require "tempfile"; Dir.tmpdir fails

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: JRuby 1.1.6
  • Fix Version/s: JRuby 1.2
  • Component/s: Core Classes/Modules
  • Labels:
    None
  • Number of attachments :
    0

Description

The following bit of code works with ruby 1.8.7 and JRuby 1.1.6, but fails on JRuby trunk

require "tempfile"
p Dir.tmpdir

Activity

Hide
Thomas E Enebo added a comment -

Hmmm, cool. Apparently tempfile creates that and my rewrite missed that detail. I will fix this.

Show
Thomas E Enebo added a comment - Hmmm, cool. Apparently tempfile creates that and my rewrite missed that detail. I will fix this.
Hide
Thomas E Enebo added a comment -

Fixed in commit 8860. I missed that tempfile require 'tmpdir'. Adding a spec now too.

Show
Thomas E Enebo added a comment - Fixed in commit 8860. I missed that tempfile require 'tmpdir'. Adding a spec now too.
Hide
Thomas E Enebo added a comment -

Err last comment should have been resolution...doh

Show
Thomas E Enebo added a comment - Err last comment should have been resolution...doh

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: