lib/roo/csv.rb in roo-1.12.2 vs lib/roo/csv.rb in roo-1.13.0
- old
+ new
@@ -58,11 +58,11 @@
end
def each_row(options, &block)
if uri?(filename)
make_tmpdir do |tmpdir|
- filename = download_uri(filename, tmpdir)
- CSV.foreach(filename, options, &block)
+ tmp_filename = download_uri(filename, tmpdir)
+ CSV.foreach(tmp_filename, options, &block)
end
else
CSV.foreach(filename, options, &block)
end
end