From: noreply@... Date: 2006-04-03T22:54:07+09:00 Subject: [ ruby-Bugs-4017 ] testfile requires tmpdir unconditionally Bugs item #4017, was opened at 2006-04-03 09:53 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=4017&group_id=426 Category: Standard Library Group: None Status: Open Resolution: None Priority: 3 Submitted By: Larry Prall (lgp) Assigned to: Nobody (None) Summary: testfile requires tmpdir unconditionally Initial Comment: The 'testfile' module requires the 'tmpdir' module, which in return requires the 'tmpdir' module which is applicable only to win32 systems. When running in debug mode this generates an extraneous error: Exception `LoadError' at /usr/local/lib/ruby/1.8/tmpdir.rb:12 - no such file to load -- Win32API Suggest modifying the 'testfile' module to require 'tmpdir' only on Windows: *** tempfile.rb.fixed Mon Apr 3 09:39:43 2006 --- tempfile.rb Tue May 10 21:46:31 2005 *************** *** 5,11 **** # require 'delegate' ! require 'tmpdir' if RUBY_PLATFORM =~ /mswin/i # A class for managing temporary files. This library is written to be # thread safe. --- 5,11 ---- # require 'delegate' ! require 'tmpdir' # A class for managing temporary files. This library is written to be # thread safe. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=4017&group_id=426