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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 671dd55d2764b48c749a0d00de696a89a3e9562f
4
- data.tar.gz: cb79be8747abc47ef356a84936aa37065101fc65
3
+ metadata.gz: 70333f8ef87129ac463a0de95e5fd4f62ce41973
4
+ data.tar.gz: 9faa5a8b97ea68c87357b33bdb3c20e6e6b1969d
5
5
  SHA512:
6
- metadata.gz: 981bba71413fff29315186316faf673e6298931129745ab3a0b15f3929ec77e90da33ba68c4bf2e644bba19c5e1a9147f3ebdd5a0b7441003c05a6aefde50ba5
7
- data.tar.gz: 2a8afb1afc8ac40383574e109b60411dabf3353fbaf6ad413966dc30afb2b53c3f5f5805d1a80d89a26a68fd139ecef1e21310bdce1474aec2c5fda748b4aa8e
6
+ metadata.gz: be98bcc80a8cde4861aa47e0b57727861a45c24416b8670176bfd427156bf1e5162d926865d1184d0d25d30797da6480c6b2dee49bcafb3fd82d2f8cf942cc52
7
+ data.tar.gz: 21f91987bb7b9c9ee12eb7c3532bdeccd5ce33e75029dab892112a4598b45747d1d8c96988a6b3392be675c4260e51c16eab6c116fdaa934a4f9ecd39aa06416
@@ -108,7 +108,7 @@ command [:create] do |c|
108
108
  end # command create
109
109
 
110
110
 
111
- desc "Build DB (download/create/load); use ./Datafile - zips get downloaded to ./tmp"
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
@@ -3,7 +3,7 @@ module SportDb
3
3
 
4
4
  MAJOR = 1 ## todo: namespace inside version or something - why? why not??
5
5
  MINOR = 9
6
- PATCH = 12
6
+ PATCH = 13
7
7
  VERSION = [MAJOR,MINOR,PATCH].join('.')
8
8
 
9
9
  def self.version
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.12
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-26 00:00:00.000000000 Z
11
+ date: 2014-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: props