csv2sqlite 0.0.2 → 0.0.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 49c97c43df2ad93270c99757e62652bef6927c85
4
- data.tar.gz: 3554e6b413c0b0dc3858da13286aed9b3de7f6ff
3
+ metadata.gz: f0f801faf7e65b7b084dae61f23f1aba8a8731f8
4
+ data.tar.gz: 3b3c97170705639772b7f39a2733df3fc47ee8ab
5
5
  SHA512:
6
- metadata.gz: c910d82601fb85f8c709725d5a002a3f952844dafe82bf363fe5888e145a311e10f8e405006d7cabae7302b0127cd57ce612a4d800332fbf26cac60700aaca3d
7
- data.tar.gz: c79e75816280a46727c022b9ba240c0e6791198b304f4d9589dd5ff240ec1726924080d0bc838df47c69e9041541d6b63f9b29b488118af75aea977c89254d0c
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/<my-github-username>/csv2sqlite/fork )
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
@@ -1,3 +1,3 @@
1
1
  module Csv2sqlite
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csv2sqlite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pete Brumm