another ruby 1.8.1 fix

This commit is contained in:
Ward Wouts 2004-06-16 10:49:54 +00:00
parent 4efb82ca58
commit bd42fb7053

View file

@ -1,6 +1,6 @@
#!/usr/local/bin/ruby -w
# $Dwarf: ripnews.rb,v 1.81 2004/06/16 08:11:07 ward Exp $
# $Dwarf: ripnews.rb,v 1.82 2004/06/16 08:17:48 ward Exp $
# $Source$
#
@ -67,7 +67,7 @@ def save_file(dir, name, data)
return false
end
when "Array"
if file = File.new("#{dir}/#{newname}", "w", "0644")
if file = File.new("#{dir}/#{newname}", "w", 0644)
print " Saving as: '#{newname}'\n"
data.collect{|i| file.print "#{i}"}
else