sportdb 1.8.19 → 1.8.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Manifest.txt +6 -3
- data/bin/sportdb +0 -0
- data/lib/sportdb/readers/game.rb +40 -4
- data/lib/sportdb/version.rb +1 -1
- data/test/data/world-cup/1930/cup.txt +71 -0
- data/test/data/world-cup/1930/cup.yml +23 -0
- data/test/data/world-cup/leagues.txt +5 -0
- data/test/data/world-cup/seasons.txt +4 -0
- data/test/data/world-cup/teams.txt +16 -0
- data/test/helper.rb +3 -0
- data/test/test_round_auto.rb +109 -0
- metadata +78 -46
- data/test/data/at-austria/setups/2013_14.txt +0 -17
- data/test/data/at-austria/setups/all.txt +0 -17
- data/test/data/at-austria/setups/teams.txt +0 -5
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6b49f1d9eb1e2369fca189847d4747a36d6580f1
|
4
|
+
data.tar.gz: 1a9ef5c40c3e83e3d8de49afcabe0a05e59ae982
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4c6cde7744335707e17253705a4f321bdd6c08384d550ad58c7853fd3d4e5efd097c137d43d7fe5a08d078390277481c9bb0e36d2db74e60f534fac1e0f9d2c9
|
7
|
+
data.tar.gz: 698495bbde6338c1855414963b0fd601af31c7926492d5269dbcf7af87007dd3581c759cc3266795b70600ad31c562d31f3a6224b5edbc4e6614f7f3a8f8c9b6
|
data/Manifest.txt
CHANGED
@@ -108,17 +108,20 @@ test/data/at-austria/2013_14/bl_ii.txt
|
|
108
108
|
test/data/at-austria/2013_14/el.txt
|
109
109
|
test/data/at-austria/2013_14/el.yml
|
110
110
|
test/data/at-austria/leagues.txt
|
111
|
-
test/data/at-austria/setups/2013_14.txt
|
112
|
-
test/data/at-austria/setups/all.txt
|
113
|
-
test/data/at-austria/setups/teams.txt
|
114
111
|
test/data/at-austria/teams.txt
|
115
112
|
test/data/at-austria/teams_2.txt
|
113
|
+
test/data/world-cup/1930/cup.txt
|
114
|
+
test/data/world-cup/1930/cup.yml
|
115
|
+
test/data/world-cup/leagues.txt
|
116
|
+
test/data/world-cup/seasons.txt
|
117
|
+
test/data/world-cup/teams.txt
|
116
118
|
test/helper.rb
|
117
119
|
test/test_changes.rb
|
118
120
|
test/test_cursor.rb
|
119
121
|
test/test_date.rb
|
120
122
|
test/test_lang.rb
|
121
123
|
test/test_reader.rb
|
124
|
+
test/test_round_auto.rb
|
122
125
|
test/test_round_def.rb
|
123
126
|
test/test_round_header.rb
|
124
127
|
test/test_scores.rb
|
data/bin/sportdb
CHANGED
File without changes
|
data/lib/sportdb/readers/game.rb
CHANGED
@@ -32,6 +32,11 @@ class GameReader
|
|
32
32
|
event = reader.event ## was fetch_event( name )
|
33
33
|
fixtures = reader.fixtures ## was fetch_event_fixtures( name )
|
34
34
|
|
35
|
+
## reset cached values
|
36
|
+
## for auto-number rounds etc.
|
37
|
+
|
38
|
+
@last_round_pos = nil
|
39
|
+
|
35
40
|
fixtures.each do |fixture|
|
36
41
|
read_fixtures( event.key, fixture ) ## use read_for or read_for_event - why ??? why not??
|
37
42
|
end
|
@@ -90,6 +95,10 @@ class GameReader
|
|
90
95
|
@last_date = nil
|
91
96
|
|
92
97
|
|
98
|
+
#####
|
99
|
+
# fix: move to read and share event/known_teams
|
100
|
+
# for all 1-n fixture files (no need to configure every time!!)
|
101
|
+
|
93
102
|
@event = Event.find_by_key!( event_key )
|
94
103
|
|
95
104
|
logger.debug "Event #{@event.key} >#{@event.title}<"
|
@@ -178,6 +187,11 @@ class GameReader
|
|
178
187
|
# start_at = start_at.beginning_of_day
|
179
188
|
# end_at = end_at.end_of_day
|
180
189
|
|
190
|
+
# note: make sure start_at/end_at is date only (e.g. use start_at.to_date)
|
191
|
+
# sqlite3 saves datetime in date field as datetime, for example (will break date compares later!)
|
192
|
+
start_at = start_at.to_date
|
193
|
+
end_at = end_at.to_date
|
194
|
+
|
181
195
|
|
182
196
|
pos = find_round_pos!( line )
|
183
197
|
title = find_round_def_title!( line )
|
@@ -235,8 +249,23 @@ class GameReader
|
|
235
249
|
# add an example here
|
236
250
|
group_title, group_pos = find_group_title_and_pos!( line )
|
237
251
|
|
252
|
+
## todo/check/fix:
|
253
|
+
# make sure Round of 16 will not return pos 16 -- how? possible?
|
254
|
+
# add unit test too to verify
|
238
255
|
pos = find_round_pos!( line )
|
239
256
|
|
257
|
+
## check if pos available; if not auto-number/calculate
|
258
|
+
if pos.nil?
|
259
|
+
pos = (@last_round_pos||0)+1
|
260
|
+
logger.debug( " no round pos found; auto-number round - use (#{pos})" )
|
261
|
+
end
|
262
|
+
|
263
|
+
# store pos for auto-number next round if missing
|
264
|
+
# - note: only if greater/bigger than last; use max
|
265
|
+
# - note: last_round_pos might be nil - thus set to 0
|
266
|
+
@last_round_pos = [pos,@last_round_pos||0].max
|
267
|
+
|
268
|
+
|
240
269
|
title = find_round_header_title!( line )
|
241
270
|
|
242
271
|
## NB: use extracted round title for knockout check
|
@@ -399,13 +428,17 @@ class GameReader
|
|
399
428
|
pp Round.all
|
400
429
|
end
|
401
430
|
|
431
|
+
# store pos for auto-number next round if missing
|
432
|
+
# - note: only if greater/bigger than last; use max
|
433
|
+
# - note: last_round_pos might be nil - thus set to 0
|
434
|
+
@last_round_pos = [round.pos,@last_round_pos||0].max
|
435
|
+
|
402
436
|
## note: will crash (round.pos) if round is nil
|
403
437
|
logger.debug( " using round #{round.pos} >#{round.title}< start_at: #{round.start_at}, end_at: #{round.end_at}" )
|
404
438
|
else
|
405
439
|
## use round from last round header
|
406
440
|
round = @round
|
407
441
|
end
|
408
|
-
|
409
442
|
|
410
443
|
|
411
444
|
### check if games exists
|
@@ -543,9 +576,12 @@ class GameReader
|
|
543
576
|
|
544
577
|
## todo: check for no records
|
545
578
|
## e.g. if game[0].present? or just if game[0] ??
|
546
|
-
|
547
|
-
|
548
|
-
|
579
|
+
|
580
|
+
# note: make sure start_at/end_at is date only (e.g. use play_at.to_date)
|
581
|
+
# sqlite3 saves datetime in date field as datetime, for example (will break date compares later!)
|
582
|
+
|
583
|
+
round_attribs[:start_at] = games[0].play_at.to_date
|
584
|
+
round_attribs[:end_at ] = games[-1].play_at.to_date
|
549
585
|
|
550
586
|
logger.debug round_attribs.to_json
|
551
587
|
round.update_attributes!( round_attribs )
|
data/lib/sportdb/version.rb
CHANGED
@@ -0,0 +1,71 @@
|
|
1
|
+
##############################################
|
2
|
+
# World Cup 1930 Uruguay, 13 July - 30 July
|
3
|
+
|
4
|
+
|
5
|
+
Group 1 | Argentina Chile France Mexico
|
6
|
+
Group 2 | Yugoslavia Brazil Bolivia
|
7
|
+
Group 3 | Uruguay Romania Peru
|
8
|
+
Group 4 | United States Paraguay Belgium
|
9
|
+
|
10
|
+
|
11
|
+
Matchday 1 | 13 July
|
12
|
+
Matchday 2 | 14 July
|
13
|
+
Matchday 3 | 15 July
|
14
|
+
Matchday 4 | 16 July
|
15
|
+
Matchday 5 | 17 July
|
16
|
+
Matchday 6 | 18 July
|
17
|
+
Matchday 7 | 19 July
|
18
|
+
Matchday 8 | 20 July
|
19
|
+
Matchday 9 | 21 July
|
20
|
+
Matchday 10 | 22 July
|
21
|
+
|
22
|
+
### - test auto-numbering (do NOTE predefine)
|
23
|
+
## (11) Semi-finals | 26 July - 27 July
|
24
|
+
## (12) Final | 30 July
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
Group 1:
|
29
|
+
|
30
|
+
(1) 13 July France 4-1 Mexico @ Estadio Pocitos, Montevideo
|
31
|
+
(5) 15 July Argentina 1-0 France @ Estadio Parque Central, Montevideo
|
32
|
+
(6) 16 July Chile 3-0 Mexico @ Estadio Parque Central, Montevideo
|
33
|
+
(10) 19 July Chile 1-0 France @ Estadio Centenario, Montevideo
|
34
|
+
(11) 19 July Argentina 6-3 Mexico @ Estadio Centenario, Montevideo
|
35
|
+
(15) 22 July Argentina 3-1 Chile @ Estadio Centenario, Montevideo
|
36
|
+
|
37
|
+
|
38
|
+
Group 2:
|
39
|
+
|
40
|
+
(3) 14 July Yugoslavia 2-1 Brazil @ Estadio Parque Central, Montevideo
|
41
|
+
(7) 17 July Yugoslavia 4-0 Bolivia @ Estadio Parque Central, Montevideo
|
42
|
+
(12) 20 July Brazil 4-0 Bolivia @ Estadio Centenario, Montevideo
|
43
|
+
|
44
|
+
|
45
|
+
Group 3:
|
46
|
+
|
47
|
+
(4) 14 July Romania 3-1 Peru @ Estadio Pocitos, Montevideo
|
48
|
+
(9) 18 July Uruguay 1-0 Peru @ Estadio Centenario, Montevideo
|
49
|
+
(14) 21 July Uruguay 4-0 Romania @ Estadio Centenario, Montevideo
|
50
|
+
|
51
|
+
|
52
|
+
Group 4:
|
53
|
+
|
54
|
+
(2) 13 July United States 3-0 Belgium @ Estadio Parque Central, Montevideo
|
55
|
+
(8) 17 July United States 3-0 Paraguay @ Estadio Parque Central, Montevideo
|
56
|
+
(13) 20 July Paraguay 1-0 Belgium @ Estadio Centenario, Montevideo
|
57
|
+
|
58
|
+
|
59
|
+
### (11) Semi-finals
|
60
|
+
### (12) Final
|
61
|
+
|
62
|
+
Semi-finals
|
63
|
+
|
64
|
+
(16) 26 July Argentina 6-1 United States @ Estadio Centenario, Montevideo
|
65
|
+
(17) 27 July Uruguay 6-1 Yugoslavia @ Estadio Centenario, Montevideo
|
66
|
+
|
67
|
+
|
68
|
+
Final
|
69
|
+
|
70
|
+
(18) 30 July Uruguay 4-2 Argentina @ Estadio Centenario, Montevideo
|
71
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
##############################################
|
2
|
+
# World Cup 1930 Uruguay, 13 July - 30 July
|
3
|
+
|
4
|
+
league: world
|
5
|
+
season: 1930
|
6
|
+
start_at: 1930-07-13
|
7
|
+
|
8
|
+
# 13 Teams
|
9
|
+
|
10
|
+
teams:
|
11
|
+
- arg # Argentina
|
12
|
+
- bra # Brazil
|
13
|
+
- bol # Bolivia
|
14
|
+
- chi # Chile
|
15
|
+
- uru # Uruguay
|
16
|
+
- per # Peru
|
17
|
+
- par # Paraguay
|
18
|
+
- mex # Mexico
|
19
|
+
- usa # United States
|
20
|
+
- fra # France
|
21
|
+
- yug # Yugoslavia (-2003)
|
22
|
+
- bel # Belgium
|
23
|
+
- rou # Romania
|
@@ -0,0 +1,16 @@
|
|
1
|
+
#############################
|
2
|
+
# 13 Teams
|
3
|
+
|
4
|
+
arg, Argentina, ARG, ar
|
5
|
+
bra, Brazil, BRA, br
|
6
|
+
bol, Bolivia, BOL, bo
|
7
|
+
chi, Chile, CHI, cl
|
8
|
+
uru, Uruguay, URU, uy
|
9
|
+
per, Peru, PER, pe
|
10
|
+
par, Paraguay, PAR, py
|
11
|
+
mex, Mexico, MEX, mx
|
12
|
+
usa, United States, USA, us
|
13
|
+
fra, France, FRA, fr
|
14
|
+
yug, Yugoslavia, YUG, rs
|
15
|
+
rou, Romania, ROU, ro
|
16
|
+
bel, Belgium, BEL, be
|
data/test/helper.rb
CHANGED
@@ -69,9 +69,11 @@ end
|
|
69
69
|
Country = WorldDb::Model::Country
|
70
70
|
|
71
71
|
League = SportDb::Model::League
|
72
|
+
Season = SportDb::Model::Season
|
72
73
|
Event = SportDb::Model::Event
|
73
74
|
Team = SportDb::Model::Team
|
74
75
|
|
76
|
+
Round = SportDb::Model::Round
|
75
77
|
Game = SportDb::Model::Game
|
76
78
|
GameCursor = SportDb::Model::GameCursor
|
77
79
|
|
@@ -79,6 +81,7 @@ GameCursor = SportDb::Model::GameCursor
|
|
79
81
|
# Reader shortcuts
|
80
82
|
|
81
83
|
TeamReader = SportDb::TeamReader
|
84
|
+
SeasonReader = SportDb::SeasonReader
|
82
85
|
LeagueReader = SportDb::LeagueReader
|
83
86
|
GameReader = SportDb::GameReader
|
84
87
|
|
@@ -0,0 +1,109 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
###
|
4
|
+
# to run use
|
5
|
+
# ruby -I ./lib -I ./test test/test_round_auto.rb
|
6
|
+
# or better
|
7
|
+
# rake -I ./lib test
|
8
|
+
|
9
|
+
|
10
|
+
require 'helper'
|
11
|
+
|
12
|
+
class TestRoundAuto < MiniTest::Unit::TestCase
|
13
|
+
|
14
|
+
def setup
|
15
|
+
WorldDb.delete!
|
16
|
+
SportDb.delete!
|
17
|
+
## SportDb.read_builtin
|
18
|
+
|
19
|
+
add_countries
|
20
|
+
end
|
21
|
+
|
22
|
+
def add_countries
|
23
|
+
countries = [
|
24
|
+
['ar', 'Argentina', 'ARG' ],
|
25
|
+
['br', 'Brazil', 'BRA' ],
|
26
|
+
['bo', 'Bolivia', 'BOL' ],
|
27
|
+
['cl', 'Chile', 'CHI' ],
|
28
|
+
['uy', 'Uruguay', 'URU' ],
|
29
|
+
['pe', 'Peru', 'PER' ],
|
30
|
+
['py', 'Paraguay', 'PAR' ],
|
31
|
+
['mx', 'Mexico', 'MEX' ],
|
32
|
+
['us', 'United States', 'USA' ],
|
33
|
+
['fr', 'France', 'FRA' ],
|
34
|
+
['rs', 'Serbia', 'SRB' ],
|
35
|
+
['be', 'Belgium', 'BEL' ],
|
36
|
+
['ro', 'Romania', 'ROU' ]]
|
37
|
+
|
38
|
+
countries.each do |country|
|
39
|
+
key = country[0]
|
40
|
+
name = country[1]
|
41
|
+
code = country[2]
|
42
|
+
Country.create!( key: key, name: name, code: code, pop: 1, area: 1)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
|
47
|
+
def test_world_cup_1930
|
48
|
+
teamreader = TeamReader.new( SportDb.test_data_path )
|
49
|
+
teamreader.read( 'world-cup/teams' )
|
50
|
+
|
51
|
+
assert_equal 13, Team.count
|
52
|
+
|
53
|
+
ar = Team.find_by_key!( 'arg' )
|
54
|
+
br = Team.find_by_key!( 'bra' )
|
55
|
+
be = Team.find_by_key!( 'bel' )
|
56
|
+
|
57
|
+
assert_equal 'Argentina', ar.title
|
58
|
+
assert_equal 'Brazil', br.title
|
59
|
+
assert_equal 'Belgium', be.title
|
60
|
+
|
61
|
+
assert_equal 'ARG', ar.code
|
62
|
+
assert_equal 'BRA', br.code
|
63
|
+
|
64
|
+
|
65
|
+
seasonreader = SeasonReader.new( SportDb.test_data_path )
|
66
|
+
seasonreader.read( 'world-cup/seasons')
|
67
|
+
|
68
|
+
assert_equal 1, Season.count
|
69
|
+
|
70
|
+
y = Season.find_by_key!( '1930' )
|
71
|
+
assert_equal '1930', y.title
|
72
|
+
|
73
|
+
|
74
|
+
leaguereader = LeagueReader.new( SportDb.test_data_path )
|
75
|
+
leaguereader.read( 'world-cup/leagues' )
|
76
|
+
|
77
|
+
assert_equal 1, League.count
|
78
|
+
|
79
|
+
l = League.find_by_key!( 'world' )
|
80
|
+
assert_equal 'World Cup', l.title
|
81
|
+
|
82
|
+
|
83
|
+
gamereader = GameReader.new( SportDb.test_data_path )
|
84
|
+
gamereader.read( 'world-cup/1930/cup' )
|
85
|
+
|
86
|
+
assert_equal 1, Event.count
|
87
|
+
|
88
|
+
w = Event.find_by_key!( 'world.1930' )
|
89
|
+
|
90
|
+
assert_equal 13, w.teams.count
|
91
|
+
assert_equal 18, w.games.count
|
92
|
+
assert_equal 12, w.rounds.count
|
93
|
+
|
94
|
+
##
|
95
|
+
# auto-numbered knock-out rounds
|
96
|
+
r11 = Round.find_by_pos!( 11 )
|
97
|
+
|
98
|
+
assert_equal 'Semi-finals', r11.title
|
99
|
+
assert_equal 2, r11.games.count
|
100
|
+
|
101
|
+
r12 = Round.find_by_pos!( 12 )
|
102
|
+
|
103
|
+
assert_equal 'Final', r12.title
|
104
|
+
assert_equal 1, r12.games.count
|
105
|
+
|
106
|
+
end # method test_world_cup_1930
|
107
|
+
|
108
|
+
|
109
|
+
end # class TestRoundAuto
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sportdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
5
|
-
prerelease:
|
4
|
+
version: 1.8.20
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Gerald Bauer
|
@@ -13,114 +12,144 @@ date: 2014-05-15 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: props
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
17
|
- - ! '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ! '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
25
27
|
- !ruby/object:Gem::Dependency
|
26
28
|
name: logutils
|
27
|
-
requirement:
|
28
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
31
|
- - ! '>='
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: '0'
|
33
34
|
type: :runtime
|
34
35
|
prerelease: false
|
35
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
36
41
|
- !ruby/object:Gem::Dependency
|
37
42
|
name: textutils
|
38
|
-
requirement:
|
39
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
40
44
|
requirements:
|
41
45
|
- - ! '>='
|
42
46
|
- !ruby/object:Gem::Version
|
43
47
|
version: '0'
|
44
48
|
type: :runtime
|
45
49
|
prerelease: false
|
46
|
-
version_requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
47
55
|
- !ruby/object:Gem::Dependency
|
48
56
|
name: worlddb
|
49
|
-
requirement:
|
50
|
-
none: false
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
51
58
|
requirements:
|
52
59
|
- - ! '>='
|
53
60
|
- !ruby/object:Gem::Version
|
54
61
|
version: 2.0.2
|
55
62
|
type: :runtime
|
56
63
|
prerelease: false
|
57
|
-
version_requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 2.0.2
|
58
69
|
- !ruby/object:Gem::Dependency
|
59
70
|
name: tagutils
|
60
|
-
requirement:
|
61
|
-
none: false
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
62
72
|
requirements:
|
63
73
|
- - ! '>='
|
64
74
|
- !ruby/object:Gem::Version
|
65
75
|
version: '0'
|
66
76
|
type: :runtime
|
67
77
|
prerelease: false
|
68
|
-
version_requirements:
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ! '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: fetcher
|
71
|
-
requirement:
|
72
|
-
none: false
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
73
86
|
requirements:
|
74
87
|
- - ! '>='
|
75
88
|
- !ruby/object:Gem::Version
|
76
89
|
version: '0.3'
|
77
90
|
type: :runtime
|
78
91
|
prerelease: false
|
79
|
-
version_requirements:
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ! '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.3'
|
80
97
|
- !ruby/object:Gem::Dependency
|
81
98
|
name: gli
|
82
|
-
requirement:
|
83
|
-
none: false
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
84
100
|
requirements:
|
85
101
|
- - ! '>='
|
86
102
|
- !ruby/object:Gem::Version
|
87
103
|
version: 2.5.6
|
88
104
|
type: :runtime
|
89
105
|
prerelease: false
|
90
|
-
version_requirements:
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 2.5.6
|
91
111
|
- !ruby/object:Gem::Dependency
|
92
112
|
name: activerecord
|
93
|
-
requirement:
|
94
|
-
none: false
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
95
114
|
requirements:
|
96
115
|
- - ! '>='
|
97
116
|
- !ruby/object:Gem::Version
|
98
117
|
version: '0'
|
99
118
|
type: :runtime
|
100
119
|
prerelease: false
|
101
|
-
version_requirements:
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ! '>='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
102
125
|
- !ruby/object:Gem::Dependency
|
103
126
|
name: rdoc
|
104
|
-
requirement:
|
105
|
-
none: false
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
106
128
|
requirements:
|
107
129
|
- - ~>
|
108
130
|
- !ruby/object:Gem::Version
|
109
131
|
version: '4.0'
|
110
132
|
type: :development
|
111
133
|
prerelease: false
|
112
|
-
version_requirements:
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ~>
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '4.0'
|
113
139
|
- !ruby/object:Gem::Dependency
|
114
140
|
name: hoe
|
115
|
-
requirement:
|
116
|
-
none: false
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
117
142
|
requirements:
|
118
143
|
- - ~>
|
119
144
|
- !ruby/object:Gem::Version
|
120
|
-
version: '3.
|
145
|
+
version: '3.10'
|
121
146
|
type: :development
|
122
147
|
prerelease: false
|
123
|
-
version_requirements:
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ~>
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '3.10'
|
124
153
|
description: sportdb - sport.db command line tool
|
125
154
|
email: opensport@googlegroups.com
|
126
155
|
executables:
|
@@ -241,17 +270,20 @@ files:
|
|
241
270
|
- test/data/at-austria/2013_14/el.txt
|
242
271
|
- test/data/at-austria/2013_14/el.yml
|
243
272
|
- test/data/at-austria/leagues.txt
|
244
|
-
- test/data/at-austria/setups/2013_14.txt
|
245
|
-
- test/data/at-austria/setups/all.txt
|
246
|
-
- test/data/at-austria/setups/teams.txt
|
247
273
|
- test/data/at-austria/teams.txt
|
248
274
|
- test/data/at-austria/teams_2.txt
|
275
|
+
- test/data/world-cup/1930/cup.txt
|
276
|
+
- test/data/world-cup/1930/cup.yml
|
277
|
+
- test/data/world-cup/leagues.txt
|
278
|
+
- test/data/world-cup/seasons.txt
|
279
|
+
- test/data/world-cup/teams.txt
|
249
280
|
- test/helper.rb
|
250
281
|
- test/test_changes.rb
|
251
282
|
- test/test_cursor.rb
|
252
283
|
- test/test_date.rb
|
253
284
|
- test/test_lang.rb
|
254
285
|
- test/test_reader.rb
|
286
|
+
- test/test_round_auto.rb
|
255
287
|
- test/test_round_def.rb
|
256
288
|
- test/test_round_header.rb
|
257
289
|
- test/test_scores.rb
|
@@ -261,6 +293,7 @@ files:
|
|
261
293
|
homepage: https://github.com/geraldb/sport.db.ruby
|
262
294
|
licenses:
|
263
295
|
- Public Domain
|
296
|
+
metadata: {}
|
264
297
|
post_install_message: ! '******************************************************************************
|
265
298
|
|
266
299
|
|
@@ -278,31 +311,30 @@ rdoc_options:
|
|
278
311
|
require_paths:
|
279
312
|
- lib
|
280
313
|
required_ruby_version: !ruby/object:Gem::Requirement
|
281
|
-
none: false
|
282
314
|
requirements:
|
283
315
|
- - ! '>='
|
284
316
|
- !ruby/object:Gem::Version
|
285
317
|
version: 1.9.2
|
286
318
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
287
|
-
none: false
|
288
319
|
requirements:
|
289
320
|
- - ! '>='
|
290
321
|
- !ruby/object:Gem::Version
|
291
322
|
version: '0'
|
292
323
|
requirements: []
|
293
324
|
rubyforge_project:
|
294
|
-
rubygems_version: 1.
|
325
|
+
rubygems_version: 2.1.10
|
295
326
|
signing_key:
|
296
|
-
specification_version:
|
327
|
+
specification_version: 4
|
297
328
|
summary: sportdb - sport.db command line tool
|
298
329
|
test_files:
|
330
|
+
- test/test_changes.rb
|
331
|
+
- test/test_cursor.rb
|
299
332
|
- test/test_date.rb
|
300
333
|
- test/test_lang.rb
|
301
|
-
- test/
|
302
|
-
- test/
|
303
|
-
- test/test_winner.rb
|
334
|
+
- test/test_reader.rb
|
335
|
+
- test/test_round_auto.rb
|
304
336
|
- test/test_round_def.rb
|
305
|
-
- test/test_utils.rb
|
306
337
|
- test/test_round_header.rb
|
307
|
-
- test/
|
308
|
-
- test/
|
338
|
+
- test/test_scores.rb
|
339
|
+
- test/test_utils.rb
|
340
|
+
- test/test_winner.rb
|