csv_db 1.0.0 → 1.0.1
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/README.rdoc +3 -1
- data/Rakefile +2 -2
- data/csv_db.gemspec +3 -3
- data.tar.gz.sig +0 -0
- metadata +3 -3
- metadata.gz.sig +0 -0
data/README.rdoc
CHANGED
|
@@ -12,10 +12,12 @@ just call: rake db:csv_to_db model=Model
|
|
|
12
12
|
|
|
13
13
|
the call writes into a csv file Model.csv located in the app root directory
|
|
14
14
|
|
|
15
|
-
If you have
|
|
15
|
+
If you have data you want to push from a csv in the rails db with a model: Model
|
|
16
16
|
|
|
17
17
|
just call: rake db:db_to_csv csv=Model
|
|
18
18
|
|
|
19
19
|
the call reads from a csv file Model.csv located in the app root directory
|
|
20
20
|
|
|
21
|
+
the top row of the csv should be the column names delimited by commas
|
|
22
|
+
|
|
21
23
|
remember to place files in the right place. also primary keys cannot be written.
|
data/Rakefile
CHANGED
|
@@ -2,8 +2,8 @@ require 'rubygems'
|
|
|
2
2
|
require 'rake'
|
|
3
3
|
require 'echoe'
|
|
4
4
|
|
|
5
|
-
Echoe.new('csv_db', '1.0.
|
|
6
|
-
p.description = "Backup a db table to a csv or push csv content to a
|
|
5
|
+
Echoe.new('csv_db', '1.0.1') do |p|
|
|
6
|
+
p.description = "Backup a db table to a csv or push csv content to a database table"
|
|
7
7
|
p.url = "http://github.com/phongsi/csv_db"
|
|
8
8
|
p.author = "Phong Si"
|
|
9
9
|
p.email = "phong.si@gmail.com"
|
data/csv_db.gemspec
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = "csv_db"
|
|
5
|
-
s.version = "1.0.
|
|
5
|
+
s.version = "1.0.1"
|
|
6
6
|
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
|
8
8
|
s.authors = ["Phong Si"]
|
|
9
9
|
s.cert_chain = ["/media/share/gem-public_cert.pem"]
|
|
10
10
|
s.date = "2011-10-07"
|
|
11
|
-
s.description = "Backup a db table to a csv or push csv content to a
|
|
11
|
+
s.description = "Backup a db table to a csv or push csv content to a database table"
|
|
12
12
|
s.email = "phong.si@gmail.com"
|
|
13
13
|
s.extra_rdoc_files = ["README.rdoc", "lib/csv_db.rb", "lib/tasks/csv_db.rake"]
|
|
14
14
|
s.files = ["Manifest", "README.rdoc", "Rakefile", "lib/csv_db.rb", "lib/tasks/csv_db.rake", "csv_db.gemspec"]
|
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
|
|
|
18
18
|
s.rubyforge_project = "csv_db"
|
|
19
19
|
s.rubygems_version = "1.8.11"
|
|
20
20
|
s.signing_key = "/media/share/gem-private_key.pem"
|
|
21
|
-
s.summary = "Backup a db table to a csv or push csv content to a
|
|
21
|
+
s.summary = "Backup a db table to a csv or push csv content to a database table"
|
|
22
22
|
|
|
23
23
|
if s.respond_to? :specification_version then
|
|
24
24
|
s.specification_version = 3
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: csv_db
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 1.0.
|
|
5
|
+
version: 1.0.1
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Phong Si
|
|
@@ -34,7 +34,7 @@ cert_chain:
|
|
|
34
34
|
date: 2011-10-07 00:00:00 Z
|
|
35
35
|
dependencies: []
|
|
36
36
|
|
|
37
|
-
description: Backup a db table to a csv or push csv content to a
|
|
37
|
+
description: Backup a db table to a csv or push csv content to a database table
|
|
38
38
|
email: phong.si@gmail.com
|
|
39
39
|
executables: []
|
|
40
40
|
|
|
@@ -82,6 +82,6 @@ rubyforge_project: csv_db
|
|
|
82
82
|
rubygems_version: 1.8.11
|
|
83
83
|
signing_key:
|
|
84
84
|
specification_version: 3
|
|
85
|
-
summary: Backup a db table to a csv or push csv content to a
|
|
85
|
+
summary: Backup a db table to a csv or push csv content to a database table
|
|
86
86
|
test_files: []
|
|
87
87
|
|
metadata.gz.sig
CHANGED
|
Binary file
|