GFunk911-dataload 0.3.1 → 0.3.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.
- data/VERSION.yml +1 -1
- data/lib/dataload/loader.rb +0 -7
- data/lib/dataload/sample.rb +6 -0
- data/lib/dataload.rb +1 -0
- metadata +2 -1
data/VERSION.yml
CHANGED
data/lib/dataload/loader.rb
CHANGED
@@ -124,10 +124,3 @@ def dataload(&b)
|
|
124
124
|
puts "Row Count: " + dsl.loader.ar.find(:all).size.to_s
|
125
125
|
end
|
126
126
|
|
127
|
-
dataload do
|
128
|
-
source "source.csv"
|
129
|
-
database :adapter => 'sqlite3', :database => "db.sqlite3", :timeout => 5000
|
130
|
-
table 'foobar'
|
131
|
-
string(:cat) { bar + "_cat" }
|
132
|
-
end
|
133
|
-
|
data/lib/dataload.rb
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
require File.dirname(__FILE__) + "/dataload/loader"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: GFunk911-dataload
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Harris
|
@@ -57,6 +57,7 @@ files:
|
|
57
57
|
- lib/dataload
|
58
58
|
- lib/dataload/db.sqlite3
|
59
59
|
- lib/dataload/loader.rb
|
60
|
+
- lib/dataload/sample.rb
|
60
61
|
- lib/dataload/source.csv
|
61
62
|
- lib/dataload.rb
|
62
63
|
- spec/dataload_spec.rb
|