#22 warning occurs while run setup.rb

open
nobody
None
5
2005-05-19
2005-05-19
Anonymous
No

Warning occurs while run setup.rb, include with
ruby-dbi-all-0.0.21.tar.gz.

====
ruby setup.rb config
setup.rb:586: warning: parenthesize argument(s) for
future version
setup.rb:720: warning: don't put space before argument
parentheses
entering config phase...
config done.
====

I modified setup.rb like below, and It have worked
correctly.

====
--- setup.rb.bak 2005-05-19 12:00:27.000000000 +0000
+++ setup.rb 2005-05-19 12:19:36.000000000 +0000
@@ -583,7 +583,7 @@
end

def install_so( dir )
- to = isdir(File.expand_path @config['so-dir'] +
'/' + dir)
+ to = isdir(File.expand_path(@config['so-dir']) +
'/' + dir)
find_so('.').each do |fn|
install fn, to, 0555
end
@@ -717,7 +717,7 @@

def dir?( dname )
# for CORRUPTED windows stat()
- File.directory? (dname[-1,1] == '/' ? dname :
dname + '/')
+ File.directory?(dname[-1,1] == '/' ? dname : dname
+ '/')
end

end

thanks for dbi

Discussion