fizx-csvget 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README.rdoc +8 -1
  2. data/VERSION +1 -1
  3. data/csvget.gemspec +1 -1
  4. data/lib/csvget.rb +2 -1
  5. metadata +1 -1
@@ -16,7 +16,14 @@
16
16
  - http://github.com/fizx/parsley/tree/master and its dependencies.
17
17
  - Rubygems
18
18
 
19
- == Installation
19
+ == Running on EC2
20
+
21
+ > git clone git://github.com/fizx/csvget-ec2-recipe.git
22
+ > cd csvget-ec2-recipe
23
+ > ./boot.rb
24
+ > ssh YOUR_INSTANCE
25
+
26
+ == Local Installation
20
27
 
21
28
  1. Install the dependencies.
22
29
  2. > gem sources -a http://gems.github.com
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.2
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{csvget}
8
- s.version = "0.3.1"
8
+ s.version = "0.3.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kyle Maxwell"]
@@ -31,7 +31,8 @@ class CSVStore
31
31
  values = [values] unless values.is_a?(Array)
32
32
  file_name = File.join(@output_folder, "#{prefix}.csv")
33
33
  h = @headers[prefix] ||= values.first.keys
34
- f = @files[prefix] ||= FasterCSV.open(file_name, "a", :headers => h, :write_headers => true)
34
+ should_write_headers = !File.exists?(file_name)
35
+ f = @files[prefix] ||= FasterCSV.open(file_name, "a", :headers => h, :write_headers => should_write_headers)
35
36
 
36
37
  values.each do |hash|
37
38
  arr = h.inject([]) do |memo, key|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fizx-csvget
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Maxwell