csv2sqlite 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/bin/csv2sqlite +2 -2
- data/lib/csv2sqlite/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0f801faf7e65b7b084dae61f23f1aba8a8731f8
|
4
|
+
data.tar.gz: 3b3c97170705639772b7f39a2733df3fc47ee8ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3b8545aadbf9d35cfb1da783c8716ea373e815e615b99887be042871c71f3f3c52967a5514c998abae35cf88d2b67922efbbd975ccfc30a2421cbedcf40df21
|
7
|
+
data.tar.gz: b9808cf440e9600d4a980101c95b126d4aed116b50dd20a812469d49f444d941f1988add3bdcdd12bc5217a060e0d9c2b47cac5c8c88db3fc9eeee2b9db891a8
|
data/README.md
CHANGED
@@ -18,7 +18,7 @@ If you install gnumeric you can also provide xls and xlsx files
|
|
18
18
|
|
19
19
|
## Contributing
|
20
20
|
|
21
|
-
1. Fork it ( http://github.com
|
21
|
+
1. Fork it ( http://github.com/pbrumm/csv2sqlite/fork )
|
22
22
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
23
23
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
24
24
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/bin/csv2sqlite
CHANGED
@@ -72,12 +72,12 @@ csvs.each {|file|
|
|
72
72
|
ActiveRecord::Base.connection.execute(insert_statement)
|
73
73
|
end
|
74
74
|
s = %{
|
75
|
-
class #{name} < ActiveRecord::Base
|
75
|
+
class Csv2Sqlite#{name} < ActiveRecord::Base
|
76
76
|
self.table_name = "#{name.downcase.pluralize}"
|
77
77
|
end
|
78
78
|
}
|
79
79
|
Kernel.eval(s)
|
80
|
-
klass = name.constantize
|
80
|
+
klass = "Csv2Sqlite#{name}".constantize
|
81
81
|
print "."
|
82
82
|
hash = Hash[row]
|
83
83
|
hash['guid'] = SecureRandom.uuid
|
data/lib/csv2sqlite/version.rb
CHANGED