sportdb 1.11.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{HISTORY.md → CHANGELOG.md} +0 -0
- data/Manifest.txt +10 -10
- data/README.md +32 -79
- data/Rakefile +9 -8
- data/bin/sportdb +0 -0
- data/lib/sportdb.rb +1 -0
- data/lib/sportdb/cli/main.rb +17 -131
- data/lib/sportdb/cli/opts.rb +0 -17
- data/lib/sportdb/cli/version.rb +2 -3
- metadata +20 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2822d777bf115f37ad952b7af8df4e6ef32f9606
|
4
|
+
data.tar.gz: cc7c85d6f3abeb13274c889b6700d5c66bce1107
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 363740f98a77fc813dc763db17c28f955404285438f6ca33158c2d5da1a07b89df1f30be837577fdcb2735329aea7b1b4377da11c5248a5134836ff04c3a7fd3
|
7
|
+
data.tar.gz: 57b53de7d5550722eb3da670cff255fd2a940e97a268787cc5ef294056bd5b61a52647b9834211595cb6ddf71315d27af87ccdbc270c5674e6713214f421b8ab
|
data/{HISTORY.md → CHANGELOG.md}
RENAMED
File without changes
|
data/Manifest.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
|
2
|
-
Manifest.txt
|
3
|
-
README.md
|
4
|
-
Rakefile
|
5
|
-
bin/sportdb
|
6
|
-
lib/sportdb.rb
|
7
|
-
lib/sportdb/cli/main.rb
|
8
|
-
lib/sportdb/cli/opts.rb
|
9
|
-
lib/sportdb/cli/version.rb
|
10
|
-
lib/sportdb/console.rb
|
1
|
+
CHANGELOG.md
|
2
|
+
Manifest.txt
|
3
|
+
README.md
|
4
|
+
Rakefile
|
5
|
+
bin/sportdb
|
6
|
+
lib/sportdb.rb
|
7
|
+
lib/sportdb/cli/main.rb
|
8
|
+
lib/sportdb/cli/opts.rb
|
9
|
+
lib/sportdb/cli/version.rb
|
10
|
+
lib/sportdb/console.rb
|
data/README.md
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
# sportdb - sport.db Command Line Tool
|
1
|
+
# sportdb - sport.db Command Line Tool
|
2
2
|
|
3
3
|
|
4
4
|
<!--
|
5
5
|
[![Build Status](https://secure.travis-ci.org/geraldb/sport.db.ruby.png?branch=master)](http://travis-ci.org/geraldb/sport.db.ruby)
|
6
6
|
-->
|
7
7
|
|
8
|
-
* home :: [github.com/sportdb/sport.db
|
9
|
-
* bugs :: [github.com/sportdb/sport.db
|
8
|
+
* home :: [github.com/sportdb/sport.db](https://github.com/sportdb/sport.db)
|
9
|
+
* bugs :: [github.com/sportdb/sport.db/issues](https://github.com/sportdb/sport.db/issues)
|
10
10
|
* gem :: [rubygems.org/gems/sportdb](https://rubygems.org/gems/sportdb)
|
11
11
|
* rdoc :: [rubydoc.info/gems/sportdb](http://rubydoc.info/gems/sportdb)
|
12
12
|
* forum :: [groups.google.com/group/opensport](https://groups.google.com/group/opensport)
|
@@ -14,14 +14,14 @@
|
|
14
14
|
|
15
15
|
## Usage
|
16
16
|
|
17
|
-
The sportdb gem lets you
|
17
|
+
The sportdb gem lets you read datasets in plain text into your sports database
|
18
18
|
|
19
|
-
|
19
|
+
```
|
20
20
|
SYNOPSIS
|
21
21
|
sportdb [global options] command [command options] [arguments...]
|
22
22
|
|
23
23
|
VERSION
|
24
|
-
|
24
|
+
2.0
|
25
25
|
|
26
26
|
GLOBAL OPTIONS
|
27
27
|
-d, --dbpath=PATH - Database path (default: .)
|
@@ -30,102 +30,62 @@ GLOBAL OPTIONS
|
|
30
30
|
--version - Show version
|
31
31
|
|
32
32
|
COMMANDS
|
33
|
+
new, n - Build DB w/ quick starter Datafile templates
|
34
|
+
build, b - Build DB (download/create/read); use ./Datafile - zips get downloaded to ./tmp
|
35
|
+
serve, server - Start web service (HTTP JSON API)
|
36
|
+
|
37
|
+
MORE COMMANDS
|
33
38
|
create - Create DB schema
|
34
|
-
|
35
|
-
|
36
|
-
load, l - Load sports fixtures
|
39
|
+
download, dl - Download datasets; use ./Datafile - zips get downloaded to ./tmp
|
40
|
+
read, r - Read datasets; use ./Datafile - zips required in ./tmp
|
37
41
|
logs - Show logs
|
38
42
|
props - Show props
|
39
|
-
pull - Pull (auto-update) event fixtures from upstream sources
|
40
|
-
serve, server - Start web service (HTTP JSON API)
|
41
43
|
stats - Show stats
|
42
44
|
test - (Debug) Test command suite
|
43
45
|
help - Shows a list of commands or help for one command
|
44
|
-
|
46
|
+
```
|
45
47
|
|
46
48
|
|
47
|
-
### `
|
49
|
+
### `new` Command
|
48
50
|
|
49
|
-
|
51
|
+
```
|
50
52
|
NAME
|
51
|
-
|
52
|
-
|
53
|
+
new - Build DB w/ quick starter Datafile templates
|
53
54
|
SYNOPSIS
|
54
|
-
sportdb [global options]
|
55
|
-
|
56
|
-
COMMAND OPTIONS
|
57
|
-
-i, --include=PATH - Sports data path (default: .)
|
58
|
-
--worldinclude=PATH - World data path (default: none)
|
55
|
+
sportdb [global options] new NAME
|
59
56
|
|
60
57
|
EXAMPLES
|
61
|
-
sportdb
|
62
|
-
sportdb
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
### `update` Command
|
58
|
+
sportdb new eng2019-20
|
59
|
+
sportdb new eng
|
60
|
+
```
|
67
61
|
|
68
|
-
~~~
|
69
|
-
NAME
|
70
|
-
update - Update all sports data
|
71
|
-
|
72
|
-
SYNOPSIS
|
73
|
-
sportdb [global options] update [command options] NAME
|
74
62
|
|
75
|
-
|
76
|
-
--delete - Delete all sports data records
|
77
|
-
-i, --include=PATH - Sports data path (default: .)
|
63
|
+
### `build` Command
|
78
64
|
|
79
|
-
|
80
|
-
sportdb update --include ./at-austria
|
81
|
-
sportdb update --include ./at-austria --delete
|
82
|
-
sportdb update 2013_14 --include ./at-austria --delete
|
83
|
-
~~~
|
84
|
-
|
85
|
-
### `load` Command
|
86
|
-
|
87
|
-
~~~
|
65
|
+
```
|
88
66
|
NAME
|
89
|
-
|
67
|
+
build - Build DB (download/create/read); use ./Datafile - zips get downloaded to ./tmp
|
90
68
|
|
91
69
|
SYNOPSIS
|
92
|
-
sportdb [global options]
|
93
|
-
|
94
|
-
COMMAND OPTIONS
|
95
|
-
--delete - Delete all sports data records
|
70
|
+
sportdb [global options] build
|
96
71
|
|
97
72
|
EXAMPLES
|
98
|
-
sportdb
|
99
|
-
|
100
|
-
~~~
|
101
|
-
|
102
|
-
|
103
|
-
### `pull` Command
|
104
|
-
|
105
|
-
~~~
|
106
|
-
NAME
|
107
|
-
pull - Pull (auto-update) event fixtures from upstream sources
|
108
|
-
|
109
|
-
SYNOPSIS
|
110
|
-
sportdb [global options] pull
|
111
|
-
|
112
|
-
EXAMPLES
|
113
|
-
sportdb pull
|
114
|
-
~~~
|
73
|
+
sportdb build
|
74
|
+
```
|
115
75
|
|
116
76
|
|
117
77
|
### `serve` Command
|
118
78
|
|
119
|
-
|
79
|
+
```
|
120
80
|
NAME
|
121
81
|
serve - Start web service (HTTP JSON API)
|
122
82
|
|
123
83
|
SYNOPSIS
|
124
|
-
sportdb [global options] serve
|
84
|
+
sportdb [global options] serve
|
125
85
|
|
126
86
|
EXAMPLES
|
127
87
|
sportdb serve
|
128
|
-
|
88
|
+
```
|
129
89
|
|
130
90
|
|
131
91
|
## Install
|
@@ -135,16 +95,10 @@ Just install the gem:
|
|
135
95
|
$ gem install sportdb
|
136
96
|
|
137
97
|
|
138
|
-
## Free Open Public Domain Datasets
|
139
|
-
|
140
|
-
- [`football.db`](https://github.com/openfootball) - free open public domain football (soccer) data for use in any (programming) language
|
141
|
-
- [`formula1.db`](https://github.com/opensport/formula1.db) - free open public domain Formula 1/Formula One data for use in any (programming) language
|
142
|
-
- [`ski.db`](https://github.com/opensport/ski.db) - free open public domain Ski Alpin/Alpine Ski data for use in any (programming) language
|
143
|
-
- [`american-football.db`](https://github.com/opensport/american-football.db) - free open public domain American Football data for use in any (programming) language
|
144
|
-
|
145
|
-
|
146
98
|
## License
|
147
99
|
|
100
|
+
![](https://publicdomainworks.github.io/buttons/zero88x31.png)
|
101
|
+
|
148
102
|
The `sportdb` scripts are dedicated to the public domain.
|
149
103
|
Use it as you please with no restrictions whatsoever.
|
150
104
|
|
@@ -154,4 +108,3 @@ Use it as you please with no restrictions whatsoever.
|
|
154
108
|
Send them along to the
|
155
109
|
[Open Sports & Friends Forum/Mailing List](http://groups.google.com/group/opensport).
|
156
110
|
Thanks!
|
157
|
-
|
data/Rakefile
CHANGED
@@ -9,7 +9,7 @@ Hoe.spec 'sportdb' do
|
|
9
9
|
self.summary = 'sportdb - sport.db Command Line Tool'
|
10
10
|
self.description = summary
|
11
11
|
|
12
|
-
self.urls = ['https://github.com/sportdb/sport.db
|
12
|
+
self.urls = ['https://github.com/sportdb/sport.db']
|
13
13
|
|
14
14
|
self.author = 'Gerald Bauer'
|
15
15
|
self.email = 'opensport@googlegroups.com'
|
@@ -17,17 +17,18 @@ Hoe.spec 'sportdb' do
|
|
17
17
|
# switch extension to .markdown for gihub formatting
|
18
18
|
# -- Note: auto-changed when included in manifest
|
19
19
|
self.readme_file = 'README.md'
|
20
|
-
self.history_file = '
|
20
|
+
self.history_file = 'CHANGELOG.md'
|
21
21
|
|
22
22
|
self.extra_deps = [
|
23
|
-
['sportdb-models',
|
23
|
+
['sportdb-models', '>= 1.18.2'],
|
24
|
+
['sportdb-readers', '>= 0.3.3'],
|
24
25
|
|
25
|
-
['fetcher', '>= 0.4.
|
26
|
-
['datafile', '>= 0.
|
26
|
+
['fetcher', '>= 0.4.5'], ## check if included already in datafil ??
|
27
|
+
['datafile', '>= 0.3.0'],
|
27
28
|
|
28
29
|
### sportdb addons
|
29
30
|
## ['sportdb-keys'],
|
30
|
-
['sportdb-update'],
|
31
|
+
## ['sportdb-update'],
|
31
32
|
['sportdb-service'],
|
32
33
|
|
33
34
|
## 3rd party
|
@@ -40,7 +41,7 @@ Hoe.spec 'sportdb' do
|
|
40
41
|
self.licenses = ['Public Domain']
|
41
42
|
|
42
43
|
self.spec_extras = {
|
43
|
-
required_ruby_version: '>=
|
44
|
+
required_ruby_version: '>= 2.2.2'
|
44
45
|
}
|
45
46
|
|
46
47
|
self.post_install_message =<<EOS
|
@@ -51,5 +52,5 @@ https://groups.google.com/group/opensport
|
|
51
52
|
|
52
53
|
******************************************************************************
|
53
54
|
EOS
|
54
|
-
|
55
|
+
|
55
56
|
end
|
data/bin/sportdb
CHANGED
File without changes
|
data/lib/sportdb.rb
CHANGED
data/lib/sportdb/cli/main.rb
CHANGED
@@ -8,7 +8,7 @@ module SportDb
|
|
8
8
|
|
9
9
|
class Tool
|
10
10
|
def initialize
|
11
|
-
LogUtils::Logger.root.level = :info # set logging level to info
|
11
|
+
LogUtils::Logger.root.level = :info # set logging level to info
|
12
12
|
end
|
13
13
|
|
14
14
|
def run( args )
|
@@ -39,7 +39,7 @@ module SportDb
|
|
39
39
|
|
40
40
|
|
41
41
|
logger = LogUtils::Logger.root
|
42
|
-
opts = SportDb::Opts.new
|
42
|
+
opts = SportDb::Opts.new
|
43
43
|
|
44
44
|
|
45
45
|
program_desc 'sport.db command line tool'
|
@@ -88,13 +88,11 @@ switch [:q, :quiet], negatable: false
|
|
88
88
|
desc 'Create DB schema'
|
89
89
|
command [:create] do |c|
|
90
90
|
c.action do |g,o,args|
|
91
|
-
|
91
|
+
|
92
92
|
connect_to_db( opts )
|
93
93
|
|
94
94
|
SportDb.create_all
|
95
95
|
|
96
|
-
SportDb.read_builtin # e.g. seasons.txt etc
|
97
|
-
|
98
96
|
puts 'Done.'
|
99
97
|
end # action
|
100
98
|
end # command create
|
@@ -106,14 +104,12 @@ command [:build,:b] do |c|
|
|
106
104
|
c.action do |g,o,args|
|
107
105
|
|
108
106
|
datafile = Datafile::Datafile.load_file( './Datafile' )
|
109
|
-
datafile.download # datafile step 1 - download all datasets/zips
|
107
|
+
datafile.download # datafile step 1 - download all datasets/zips
|
110
108
|
|
111
109
|
connect_to_db( opts )
|
112
110
|
|
113
111
|
SportDb.create_all
|
114
112
|
|
115
|
-
SportDb.read_builtin # e.g. seasons.txt etc
|
116
|
-
|
117
113
|
datafile.read # datafile step 2 - read all datasets
|
118
114
|
|
119
115
|
puts 'Done.'
|
@@ -156,23 +152,20 @@ command [:new,:n] do |c|
|
|
156
152
|
|
157
153
|
c.action do |g,o,args|
|
158
154
|
|
159
|
-
## todo: required template name (defaults to
|
160
|
-
setup = args[0] || '
|
155
|
+
## todo: required template name (defaults to eng2019-20) -- was worldcup2018
|
156
|
+
setup = args[0] || 'eng2019-20'
|
161
157
|
|
162
158
|
worker = Fetcher::Worker.new
|
163
|
-
|
164
|
-
worker.copy( "http://github.com/openfootball/datafile/raw/master/#{setup}.rb", './Datafile' )
|
159
|
+
worker.copy( "https://github.com/openfootball/datafile/raw/master/#{setup}.rb", './Datafile' )
|
165
160
|
|
166
161
|
## step 2: same as command build (todo - reuse code)
|
167
162
|
datafile = Datafile::Datafile.load_file( './Datafile' )
|
168
|
-
datafile.download # datafile step 1 - download all datasets/zips
|
163
|
+
datafile.download # datafile step 1 - download all datasets/zips
|
169
164
|
|
170
165
|
connect_to_db( opts ) ### todo: check let connect go first?? - for logging (logs) to db ???
|
171
166
|
|
172
167
|
SportDb.create_all
|
173
168
|
|
174
|
-
SportDb.read_builtin # e.g. seasons.txt etc
|
175
|
-
|
176
169
|
datafile.read # datafile step 2 - read all datasets
|
177
170
|
|
178
171
|
puts 'Done.'
|
@@ -181,113 +174,6 @@ end # command setup
|
|
181
174
|
|
182
175
|
|
183
176
|
|
184
|
-
desc "Create DB schema 'n' load all world and sports data"
|
185
|
-
arg_name 'NAME' # optional setup profile name
|
186
|
-
command [:setup,:s] do |c|
|
187
|
-
|
188
|
-
c.desc 'Sports data path'
|
189
|
-
c.arg_name 'PATH'
|
190
|
-
c.default_value opts.data_path
|
191
|
-
c.flag [:i,:include]
|
192
|
-
|
193
|
-
c.desc 'World data path'
|
194
|
-
c.arg_name 'PATH'
|
195
|
-
c.flag [:worldinclude] ## todo: use --world-include - how? find better name? add :'world-include' ???
|
196
|
-
|
197
|
-
c.action do |g,o,args|
|
198
|
-
|
199
|
-
connect_to_db( opts )
|
200
|
-
|
201
|
-
## todo: document optional setup profile arg (defaults to all)
|
202
|
-
setup = args[0] || 'all'
|
203
|
-
|
204
|
-
SportDb.create_all
|
205
|
-
|
206
|
-
SportDb.read_builtin # e.g. seasons.txt etc
|
207
|
-
|
208
|
-
WorldDb.read_all( opts.world_data_path )
|
209
|
-
SportDb.read_setup( "setups/#{setup}", opts.data_path )
|
210
|
-
puts 'Done.'
|
211
|
-
end # action
|
212
|
-
end # command setup
|
213
|
-
|
214
|
-
|
215
|
-
desc 'Update all sports data'
|
216
|
-
arg_name 'NAME' # optional setup profile name
|
217
|
-
command [:update,:up,:u] do |c|
|
218
|
-
|
219
|
-
c.desc 'Sports data path'
|
220
|
-
c.arg_name 'PATH'
|
221
|
-
c.default_value opts.data_path
|
222
|
-
c.flag [:i,:include]
|
223
|
-
|
224
|
-
c.desc 'Delete all sports data records'
|
225
|
-
c.switch [:delete], negatable: false
|
226
|
-
|
227
|
-
c.action do |g,o,args|
|
228
|
-
|
229
|
-
connect_to_db( opts )
|
230
|
-
|
231
|
-
## todo: document optional setup profile arg (defaults to all)
|
232
|
-
setup = args[0] || 'all'
|
233
|
-
|
234
|
-
if o[:delete].present?
|
235
|
-
SportDb.delete!
|
236
|
-
SportDb.read_builtin # NB: reload builtins (e.g. seasons etc.)
|
237
|
-
end
|
238
|
-
|
239
|
-
SportDb.read_setup( "setups/#{setup}", opts.data_path )
|
240
|
-
puts 'Done.'
|
241
|
-
end # action
|
242
|
-
end # command setup
|
243
|
-
|
244
|
-
|
245
|
-
desc 'Load sports fixtures'
|
246
|
-
arg_name 'NAME' # multiple fixture names - todo/fix: use multiple option
|
247
|
-
command [:load, :l] do |c|
|
248
|
-
|
249
|
-
c.desc 'Delete all sports data records'
|
250
|
-
c.switch [:delete], negatable: false
|
251
|
-
|
252
|
-
c.action do |g,o,args|
|
253
|
-
|
254
|
-
connect_to_db( opts )
|
255
|
-
|
256
|
-
if o[:delete].present?
|
257
|
-
SportDb.delete!
|
258
|
-
SportDb.read_builtin # NB: reload builtins (e.g. seasons etc.)
|
259
|
-
end
|
260
|
-
|
261
|
-
reader = SportDb::Reader.new( opts.data_path )
|
262
|
-
|
263
|
-
args.each do |arg|
|
264
|
-
name = arg # File.basename( arg, '.*' )
|
265
|
-
reader.load( name )
|
266
|
-
end # each arg
|
267
|
-
|
268
|
-
puts 'Done.'
|
269
|
-
end
|
270
|
-
end # command load
|
271
|
-
|
272
|
-
|
273
|
-
if defined?( SportDb::Updater ) ## add only if Updater class loaded/defined
|
274
|
-
|
275
|
-
desc 'Pull - Auto-update event fixtures from upstream online sources'
|
276
|
-
command :pull do |c|
|
277
|
-
c.action do |g,o,args|
|
278
|
-
|
279
|
-
connect_to_db( opts )
|
280
|
-
|
281
|
-
SportDb.update!
|
282
|
-
|
283
|
-
puts 'Done.'
|
284
|
-
end # action
|
285
|
-
end # command pull
|
286
|
-
|
287
|
-
end ## if defined?( SportDb::Updater )
|
288
|
-
|
289
|
-
|
290
|
-
|
291
177
|
desc 'Start web service (HTTP JSON API)'
|
292
178
|
command [:serve,:server] do |c|
|
293
179
|
|
@@ -314,9 +200,9 @@ command [:serve,:server] do |c|
|
|
314
200
|
## rack middleware might not work with multi-threaded thin web server; close it ourselfs
|
315
201
|
SportDb::Service::Server.after do
|
316
202
|
puts " #{Thread.current.object_id} -- make sure db connections gets closed after request"
|
317
|
-
# todo: check if connection is open - how?
|
203
|
+
# todo: check if connection is open - how?
|
318
204
|
ActiveRecord::Base.connection.close
|
319
|
-
end
|
205
|
+
end
|
320
206
|
|
321
207
|
SportDb::Service::Server.run!
|
322
208
|
|
@@ -330,12 +216,12 @@ desc 'Show logs'
|
|
330
216
|
command :logs do |c|
|
331
217
|
c.action do |g,o,args|
|
332
218
|
|
333
|
-
connect_to_db( opts )
|
334
|
-
|
219
|
+
connect_to_db( opts )
|
220
|
+
|
335
221
|
LogDb::Model::Log.all.each do |log|
|
336
222
|
puts "[#{log.level}] -- #{log.msg}"
|
337
223
|
end
|
338
|
-
|
224
|
+
|
339
225
|
puts 'Done.'
|
340
226
|
end
|
341
227
|
end
|
@@ -346,10 +232,10 @@ command :stats do |c|
|
|
346
232
|
c.action do |g,o,args|
|
347
233
|
|
348
234
|
connect_to_db( opts )
|
349
|
-
|
235
|
+
|
350
236
|
SportDb.tables
|
351
237
|
WorldDb.tables
|
352
|
-
|
238
|
+
|
353
239
|
puts 'Done.'
|
354
240
|
end
|
355
241
|
end
|
@@ -360,7 +246,7 @@ command :props do |c|
|
|
360
246
|
c.action do |g,o,args|
|
361
247
|
|
362
248
|
connect_to_db( opts )
|
363
|
-
|
249
|
+
|
364
250
|
### fix: SportDb.props
|
365
251
|
## use ConfDb.props or similar!!!
|
366
252
|
|
@@ -402,7 +288,7 @@ pre do |g,c,o,args|
|
|
402
288
|
LogUtils::Logger.root.level = :debug
|
403
289
|
end
|
404
290
|
|
405
|
-
logger.debug "Executing #{c.name}"
|
291
|
+
logger.debug "Executing #{c.name}"
|
406
292
|
true
|
407
293
|
end
|
408
294
|
|
data/lib/sportdb/cli/opts.rb
CHANGED
@@ -9,9 +9,6 @@ class Opts
|
|
9
9
|
@db_name = options[:dbname] if options[:dbname].present?
|
10
10
|
|
11
11
|
@verbose = true if options[:verbose] == true
|
12
|
-
|
13
|
-
@data_path = options[:include] if options[:include].present?
|
14
|
-
@world_data_path = options[:worldinclude] if options[:worldinclude].present?
|
15
12
|
end
|
16
13
|
|
17
14
|
|
@@ -32,20 +29,6 @@ class Opts
|
|
32
29
|
def db_name
|
33
30
|
@db_name || 'sport.db'
|
34
31
|
end
|
35
|
-
|
36
|
-
def data_path=(value)
|
37
|
-
@data_path = value
|
38
|
-
end
|
39
|
-
|
40
|
-
def data_path
|
41
|
-
@data_path || '.'
|
42
|
-
end
|
43
|
-
|
44
|
-
|
45
|
-
def world_data_path
|
46
|
-
@world_data_path # NB: option has no default; return nil
|
47
|
-
end
|
48
|
-
|
49
32
|
end # class Opts
|
50
33
|
|
51
34
|
end # module SportDb
|
data/lib/sportdb/cli/version.rb
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
|
6
6
|
module SportDbCli # todo/check - rename to SportDbTool or SportDbCommands or SportDbShell ??
|
7
7
|
|
8
|
-
MAJOR =
|
9
|
-
MINOR =
|
8
|
+
MAJOR = 2 ## todo: namespace inside version or something - why? why not??
|
9
|
+
MINOR = 0
|
10
10
|
PATCH = 0
|
11
11
|
VERSION = [MAJOR,MINOR,PATCH].join('.')
|
12
12
|
|
@@ -23,4 +23,3 @@ module SportDbCli # todo/check - rename to SportDbTool or SportDbCommands or
|
|
23
23
|
end
|
24
24
|
|
25
25
|
end # module SportDbCli
|
26
|
-
|
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:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sportdb-models
|
@@ -16,56 +16,56 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.18.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.18.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: sportdb-readers
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.3.3
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.3.3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: fetcher
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 0.4.5
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 0.4.5
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: datafile
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 0.3.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 0.3.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: sportdb-service
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,25 +128,25 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '3.
|
131
|
+
version: '3.16'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '3.
|
138
|
+
version: '3.16'
|
139
139
|
description: sportdb - sport.db Command Line Tool
|
140
140
|
email: opensport@googlegroups.com
|
141
141
|
executables:
|
142
142
|
- sportdb
|
143
143
|
extensions: []
|
144
144
|
extra_rdoc_files:
|
145
|
-
-
|
145
|
+
- CHANGELOG.md
|
146
146
|
- Manifest.txt
|
147
147
|
- README.md
|
148
148
|
files:
|
149
|
-
-
|
149
|
+
- CHANGELOG.md
|
150
150
|
- Manifest.txt
|
151
151
|
- README.md
|
152
152
|
- Rakefile
|
@@ -156,7 +156,7 @@ files:
|
|
156
156
|
- lib/sportdb/cli/opts.rb
|
157
157
|
- lib/sportdb/cli/version.rb
|
158
158
|
- lib/sportdb/console.rb
|
159
|
-
homepage: https://github.com/sportdb/sport.db
|
159
|
+
homepage: https://github.com/sportdb/sport.db
|
160
160
|
licenses:
|
161
161
|
- Public Domain
|
162
162
|
metadata: {}
|
@@ -176,7 +176,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
176
176
|
requirements:
|
177
177
|
- - ">="
|
178
178
|
- !ruby/object:Gem::Version
|
179
|
-
version:
|
179
|
+
version: 2.2.2
|
180
180
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
181
181
|
requirements:
|
182
182
|
- - ">="
|
@@ -184,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
184
184
|
version: '0'
|
185
185
|
requirements: []
|
186
186
|
rubyforge_project:
|
187
|
-
rubygems_version: 2.
|
187
|
+
rubygems_version: 2.5.2
|
188
188
|
signing_key:
|
189
189
|
specification_version: 4
|
190
190
|
summary: sportdb - sport.db Command Line Tool
|