Date: 2006-04-04 09:41
Sender: Larry Prall
Wrong fix. Need to modify tmpdir.rb so that it only requires
Win32API on
windows:
*** tmpdir.rb Tue Apr 4 05:36:21 2006
--- tmpdir.rb.mod Tue Apr 4 05:32:51 2006
***************
*** 8,14 ****
@@systmpdir = '/tmp'
! if RUBY_PLATFORM =~ /mswin/i
begin
require 'Win32API'
max_pathlen = 260
--- 8,14 ----
@@systmpdir = '/tmp'
! if RUBY_PLATFORM =~ /mswin/i
begin
require 'Win32API'
max_pathlen = 260
***************
*** 24,30 ****
@@systmpdir = temp if File.directory?(temp) and
File.writable?(temp)
rescue LoadError
end
! end
##
# Returns the operating system's temporary file path.
--- 24,31 ----
@@systmpdir = temp if File.directory?(temp) and
File.writable?(temp)
rescue LoadError
end
! end
! end
##
# Returns the operating system's temporary file path.
|