sportdb 1.9.12 → 1.9.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sportdb/cli/main.rb +31 -2
- data/lib/sportdb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70333f8ef87129ac463a0de95e5fd4f62ce41973
|
4
|
+
data.tar.gz: 9faa5a8b97ea68c87357b33bdb3c20e6e6b1969d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be98bcc80a8cde4861aa47e0b57727861a45c24416b8670176bfd427156bf1e5162d926865d1184d0d25d30797da6480c6b2dee49bcafb3fd82d2f8cf942cc52
|
7
|
+
data.tar.gz: 21f91987bb7b9c9ee12eb7c3532bdeccd5ce33e75029dab892112a4598b45747d1d8c96988a6b3392be675c4260e51c16eab6c116fdaa934a4f9ecd39aa06416
|
data/lib/sportdb/cli/main.rb
CHANGED
@@ -108,7 +108,7 @@ command [:create] do |c|
|
|
108
108
|
end # command create
|
109
109
|
|
110
110
|
|
111
|
-
desc "Build DB (download/create/
|
111
|
+
desc "Build DB (download/create/read); use ./Datafile - zips get downloaded to ./tmp"
|
112
112
|
command [:build,:b] do |c|
|
113
113
|
|
114
114
|
c.action do |g,o,args|
|
@@ -134,6 +134,35 @@ command [:build,:b] do |c|
|
|
134
134
|
end # command setup
|
135
135
|
|
136
136
|
|
137
|
+
desc "Read datasets; use ./Datafile - zips required in ./tmp"
|
138
|
+
command [:read,:r] do |c|
|
139
|
+
|
140
|
+
c.action do |g,o,args|
|
141
|
+
|
142
|
+
connect_to_db( opts )
|
143
|
+
|
144
|
+
builder = SportDb::Builder.load_file( './Datafile' )
|
145
|
+
builder.read
|
146
|
+
|
147
|
+
puts 'Done.'
|
148
|
+
end # action
|
149
|
+
end # command setup
|
150
|
+
|
151
|
+
desc "Download datasets; use ./Datafile - zips get downloaded to ./tmp"
|
152
|
+
command [:download,:dl] do |c|
|
153
|
+
|
154
|
+
c.action do |g,o,args|
|
155
|
+
|
156
|
+
# note: no database connection needed (check - needed for logs?? - not setup by default???)
|
157
|
+
|
158
|
+
builder = SportDb::Builder.load_file( './Datafile' )
|
159
|
+
builder.download
|
160
|
+
|
161
|
+
puts 'Done.'
|
162
|
+
end # action
|
163
|
+
end # command setup
|
164
|
+
|
165
|
+
|
137
166
|
desc "Build DB w/ quick starter Datafile templates"
|
138
167
|
arg_name 'NAME' # optional setup profile name
|
139
168
|
command [:new,:n] do |c|
|
@@ -150,7 +179,7 @@ command [:new,:n] do |c|
|
|
150
179
|
builder = SportDb::Builder.load_file( './Datafile' )
|
151
180
|
builder.download # builder step 1 - download all datasets/zips
|
152
181
|
|
153
|
-
connect_to_db( opts )
|
182
|
+
connect_to_db( opts ) ### todo: check let connect go first?? - for logging (logs) to db ???
|
154
183
|
|
155
184
|
LogDb.create
|
156
185
|
ConfDb.create
|
data/lib/sportdb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sportdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: props
|