sportdb 1.8.28 → 1.8.29
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest.txt +14 -0
- data/README.md +2 -2
- data/Rakefile +1 -1
- data/lib/sportdb.rb +7 -0
- data/lib/sportdb/deleter.rb +3 -0
- data/lib/sportdb/models/assoc.rb +106 -0
- data/lib/sportdb/models/assoc_assoc.rb +15 -0
- data/lib/sportdb/models/event.rb +6 -9
- data/lib/sportdb/models/event_comp.rb +21 -0
- data/lib/sportdb/models/forward.rb +2 -0
- data/lib/sportdb/models/game.rb +4 -151
- data/lib/sportdb/models/game_comp.rb +157 -0
- data/lib/sportdb/models/group.rb +4 -11
- data/lib/sportdb/models/group_comp.rb +23 -0
- data/lib/sportdb/models/team.rb +12 -52
- data/lib/sportdb/models/team_comp.rb +64 -0
- data/lib/sportdb/models/world/country.rb +2 -1
- data/lib/sportdb/reader.rb +3 -0
- data/lib/sportdb/readers/assoc.rb +34 -0
- data/lib/sportdb/schema.rb +38 -1
- data/lib/sportdb/stats.rb +2 -1
- data/lib/sportdb/version.rb +1 -1
- data/test/data/national-teams/assocs.txt +231 -0
- data/test/data/national-teams/europe/assocs.txt +13 -0
- data/test/data/national-teams/europe/teams.txt +13 -0
- data/test/data/national-teams/north-america/assocs.txt +10 -0
- data/test/data/national-teams/north-america/teams.txt +7 -0
- data/test/data/national-teams/teams.txt +19 -0
- data/test/helper.rb +8 -5
- data/test/test_assoc_reader.rb +199 -0
- metadata +42 -27
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sportdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.29
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-06-
|
12
|
+
date: 2014-06-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: props
|
16
|
-
requirement: &
|
16
|
+
requirement: &81770130 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *81770130
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: logutils
|
27
|
-
requirement: &
|
27
|
+
requirement: &81769260 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *81769260
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: textutils
|
38
|
-
requirement: &
|
38
|
+
requirement: &81768320 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *81768320
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: worlddb
|
49
|
-
requirement: &
|
49
|
+
requirement: &81767630 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 2.0.2
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *81767630
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: tagutils
|
60
|
-
requirement: &
|
60
|
+
requirement: &81767310 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *81767310
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: persondb
|
71
|
-
requirement: &
|
71
|
+
requirement: &81767040 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *81767040
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: activerecord-utils
|
82
|
-
requirement: &
|
82
|
+
requirement: &81766780 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *81766780
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: fetcher
|
93
|
-
requirement: &
|
93
|
+
requirement: &81766370 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: '0.3'
|
99
99
|
type: :runtime
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *81766370
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: gli
|
104
|
-
requirement: &
|
104
|
+
requirement: &81765650 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ! '>='
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: 2.5.6
|
110
110
|
type: :runtime
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *81765650
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: activerecord
|
115
|
-
requirement: &
|
115
|
+
requirement: &81765420 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ! '>='
|
@@ -120,10 +120,10 @@ dependencies:
|
|
120
120
|
version: '0'
|
121
121
|
type: :runtime
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *81765420
|
124
124
|
- !ruby/object:Gem::Dependency
|
125
125
|
name: rdoc
|
126
|
-
requirement: &
|
126
|
+
requirement: &81764700 !ruby/object:Gem::Requirement
|
127
127
|
none: false
|
128
128
|
requirements:
|
129
129
|
- - ~>
|
@@ -131,10 +131,10 @@ dependencies:
|
|
131
131
|
version: '4.0'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
|
-
version_requirements: *
|
134
|
+
version_requirements: *81764700
|
135
135
|
- !ruby/object:Gem::Dependency
|
136
136
|
name: hoe
|
137
|
-
requirement: &
|
137
|
+
requirement: &81764370 !ruby/object:Gem::Requirement
|
138
138
|
none: false
|
139
139
|
requirements:
|
140
140
|
- - ~>
|
@@ -142,7 +142,7 @@ dependencies:
|
|
142
142
|
version: '3.11'
|
143
143
|
type: :development
|
144
144
|
prerelease: false
|
145
|
-
version_requirements: *
|
145
|
+
version_requirements: *81764370
|
146
146
|
description: sportdb - sport.db command line tool
|
147
147
|
email: opensport@googlegroups.com
|
148
148
|
executables:
|
@@ -179,15 +179,20 @@ files:
|
|
179
179
|
- lib/sportdb/finders/scores.rb
|
180
180
|
- lib/sportdb/lang.rb
|
181
181
|
- lib/sportdb/matcher.rb
|
182
|
+
- lib/sportdb/models/assoc.rb
|
183
|
+
- lib/sportdb/models/assoc_assoc.rb
|
182
184
|
- lib/sportdb/models/badge.rb
|
183
185
|
- lib/sportdb/models/event.rb
|
186
|
+
- lib/sportdb/models/event_comp.rb
|
184
187
|
- lib/sportdb/models/event_ground.rb
|
185
188
|
- lib/sportdb/models/event_team.rb
|
186
189
|
- lib/sportdb/models/forward.rb
|
187
190
|
- lib/sportdb/models/game.rb
|
191
|
+
- lib/sportdb/models/game_comp.rb
|
188
192
|
- lib/sportdb/models/goal.rb
|
189
193
|
- lib/sportdb/models/ground.rb
|
190
194
|
- lib/sportdb/models/group.rb
|
195
|
+
- lib/sportdb/models/group_comp.rb
|
191
196
|
- lib/sportdb/models/group_team.rb
|
192
197
|
- lib/sportdb/models/league.rb
|
193
198
|
- lib/sportdb/models/person.rb
|
@@ -204,6 +209,7 @@ files:
|
|
204
209
|
- lib/sportdb/models/stats/group_standing.rb
|
205
210
|
- lib/sportdb/models/stats/group_standing_entry.rb
|
206
211
|
- lib/sportdb/models/team.rb
|
212
|
+
- lib/sportdb/models/team_comp.rb
|
207
213
|
- lib/sportdb/models/track.rb
|
208
214
|
- lib/sportdb/models/utils.rb
|
209
215
|
- lib/sportdb/models/world/city.rb
|
@@ -212,6 +218,7 @@ files:
|
|
212
218
|
- lib/sportdb/models/world/region.rb
|
213
219
|
- lib/sportdb/patterns.rb
|
214
220
|
- lib/sportdb/reader.rb
|
221
|
+
- lib/sportdb/readers/assoc.rb
|
215
222
|
- lib/sportdb/readers/event.rb
|
216
223
|
- lib/sportdb/readers/game.rb
|
217
224
|
- lib/sportdb/readers/ground.rb
|
@@ -252,6 +259,12 @@ files:
|
|
252
259
|
- test/data/at-austria/leagues.txt
|
253
260
|
- test/data/at-austria/teams.txt
|
254
261
|
- test/data/at-austria/teams_2.txt
|
262
|
+
- test/data/national-teams/assocs.txt
|
263
|
+
- test/data/national-teams/europe/assocs.txt
|
264
|
+
- test/data/national-teams/europe/teams.txt
|
265
|
+
- test/data/national-teams/north-america/assocs.txt
|
266
|
+
- test/data/national-teams/north-america/teams.txt
|
267
|
+
- test/data/national-teams/teams.txt
|
255
268
|
- test/data/players/europe/de-deutschland/players.txt
|
256
269
|
- test/data/players/south-america/br-brazil/players.txt
|
257
270
|
- test/data/world-cup/1930/cup.txt
|
@@ -278,6 +291,7 @@ files:
|
|
278
291
|
- test/data/world-cup/teams_1962.txt
|
279
292
|
- test/data/world-cup/teams_1974.txt
|
280
293
|
- test/helper.rb
|
294
|
+
- test/test_assoc_reader.rb
|
281
295
|
- test/test_changes.rb
|
282
296
|
- test/test_cursor.rb
|
283
297
|
- test/test_date.rb
|
@@ -293,7 +307,7 @@ files:
|
|
293
307
|
- test/test_utils.rb
|
294
308
|
- test/test_winner.rb
|
295
309
|
- .gemtest
|
296
|
-
homepage: https://github.com/
|
310
|
+
homepage: https://github.com/sportdb/sport.db.ruby
|
297
311
|
licenses:
|
298
312
|
- Public Domain
|
299
313
|
post_install_message: ! '******************************************************************************
|
@@ -344,4 +358,5 @@ test_files:
|
|
344
358
|
- test/test_round_auto.rb
|
345
359
|
- test/test_national_team_reader.rb
|
346
360
|
- test/test_reader.rb
|
361
|
+
- test/test_assoc_reader.rb
|
347
362
|
- test/test_changes.rb
|