brand2csv 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +6 -0
- data/lib/brand2csv.rb +4 -2
- data/lib/brand2csv/version.rb +1 -1
- metadata +1 -1
data/History.txt
CHANGED
data/lib/brand2csv.rb
CHANGED
@@ -316,7 +316,9 @@ module Brand2csv
|
|
316
316
|
def emitCsv(filename='ausgabe.csv')
|
317
317
|
return if @results.size == 0
|
318
318
|
CSV.open(filename, 'w', {:headers=>@results[0].members,
|
319
|
-
:write_headers => true
|
319
|
+
:write_headers => true,
|
320
|
+
:col_sep => ';',
|
321
|
+
}) do |csv|
|
320
322
|
@results.each{ |x| csv << x }
|
321
323
|
end
|
322
324
|
puts "Speicherte #{@results.size} gefunden Datensätze für die Zeitspanne '#{@timespan}' in #{filename}"
|
@@ -335,7 +337,7 @@ module Brand2csv
|
|
335
337
|
session.parse_swissreg
|
336
338
|
session.fetchresult
|
337
339
|
session.fetchMissingDetails
|
338
|
-
session.emitCsv
|
340
|
+
session.emitCsv("#{timespan}.csv")
|
339
341
|
end
|
340
342
|
|
341
343
|
end # module Brand2csv
|
data/lib/brand2csv/version.rb
CHANGED