csv2sqlite 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/csv2sqlite +5 -7
- data/lib/csv2sqlite/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f30ca220e1ad334594b2f367cb499011d89c876f
|
4
|
+
data.tar.gz: 18368c202097d9f7d433fd19b0c233377ba7d758
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14ec34e1cf97d089b29fe79d0d2cb31f3639cfbcb02b9cd6d07ee304a2778db656e9d7d84f3636824f7178ed549ed6f9fac9a29bf57521706d17a012d362f535
|
7
|
+
data.tar.gz: 125b0edaea078d74c77d0d1c15c83388746d94972932dcb7c17b544c0fd1bb41fb4d0fd41100c879d570e6b7a939f6f141c556f0a0b8441ae93d09f19cd90664
|
data/bin/csv2sqlite
CHANGED
@@ -13,14 +13,12 @@ if ARGV.size < 2
|
|
13
13
|
exit 0
|
14
14
|
end
|
15
15
|
config = %{
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
timeout: 5000
|
16
|
+
adapter: sqlite3
|
17
|
+
database: #{db}
|
18
|
+
pool: 5
|
19
|
+
timeout: 5000
|
21
20
|
}
|
22
|
-
ActiveRecord::Base.
|
23
|
-
ActiveRecord::Base.establish_connection('development')
|
21
|
+
ActiveRecord::Base.establish_connection(YAML::load(config))
|
24
22
|
|
25
23
|
if c = ::ActiveRecord::Base.connection
|
26
24
|
# see http://www.sqlite.org/pragma.html for details
|
data/lib/csv2sqlite/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: csv2sqlite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pete Brumm
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
118
|
version: '0'
|
119
119
|
requirements: []
|
120
120
|
rubyforge_project:
|
121
|
-
rubygems_version: 2.
|
121
|
+
rubygems_version: 2.5.1
|
122
122
|
signing_key:
|
123
123
|
specification_version: 4
|
124
124
|
summary: Provides a simple command line tool for converting directory of csv's to
|