brand2csv 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ === 0.1.2 / 22.05.2013
2
+
3
+ * Added forgotton bin/brand2csv
4
+ * Use ';' as separator between fields in *.csv
5
+ * Save as <timespan>.csv
6
+
1
7
  === 0.1.1 / 21.05.2013
2
8
 
3
9
  * Fetches as many records as possible
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}) do |csv|
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
@@ -1,3 +1,3 @@
1
1
  module Brand2csv
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brand2csv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: