sportdb 0.7.2 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest.txt +4 -6
- data/Rakefile +1 -1
- data/db/america/2011.rb +50 -0
- data/db/america/2011.txt +102 -0
- data/db/america/teams.rb +55 -0
- data/db/at/2011_12/bl.txt +40 -40
- data/db/at/2012_13/bl.txt +13 -13
- data/db/at/2012_13/cup.txt +30 -25
- data/db/at/teams.rb +10 -10
- data/db/cl/2012_13/cl.rb +16 -16
- data/db/cl/teams.rb +28 -45
- data/db/copa/sud_2012_13.txt +3 -3
- data/db/copa/teams.rb +23 -13
- data/db/de/2012_13/bl.txt +18 -18
- data/db/de/teams.rb +7 -7
- data/db/en/2012_13/pl.txt +21 -21
- data/db/en/teams.rb +4 -4
- data/db/es/teams.rb +17 -0
- data/db/leagues.rb +1 -0
- data/db/mx/apertura_2012.txt +72 -72
- data/db/mx/teams.rb +5 -5
- data/db/world/teams.rb +1 -39
- data/lib/sportdb.rb +107 -2
- data/lib/sportdb/cli/opts.rb +19 -0
- data/lib/sportdb/cli/runner.rb +49 -52
- data/lib/sportdb/models/team.rb +7 -3
- data/lib/sportdb/reader.rb +2 -2
- data/lib/sportdb/schema.rb +4 -15
- data/lib/sportdb/version.rb +1 -1
- metadata +12 -13
- data/db/at/2011_12/bl_fixtures.rb +0 -113
- data/db/at/2012_13/bl_fixtures.rb +0 -233
- data/db/at/2012_13/cup_fixtures.rb +0 -161
- data/db/de/2012_13/bl_fixtures.rb +0 -279
- data/db/en/2012_13/pl_fixtures.rb +0 -178
- data/db/world/quali_2012_13_europe_fixtures.rb +0 -119
@@ -1,119 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
####################################################################
|
4
|
-
# generiert am 2012-10-28 16:08:22 +0100
|
5
|
-
# using sportdb 0.4.3 on Ruby 1.9.3 (2012-02-16) [i686-linux]
|
6
|
-
####################################################################
|
7
|
-
|
8
|
-
|
9
|
-
###########################################
|
10
|
-
# World Cup Quali. Europe 2012/13
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
ev = Event.find_by_key!( 'wmq.euro' )
|
15
|
-
|
16
|
-
ger = Team.find_by_key!( 'ger' )
|
17
|
-
irl = Team.find_by_key!( 'irl' )
|
18
|
-
swe = Team.find_by_key!( 'swe' )
|
19
|
-
fro = Team.find_by_key!( 'fro' )
|
20
|
-
kaz = Team.find_by_key!( 'kaz' )
|
21
|
-
aut = Team.find_by_key!( 'aut' )
|
22
|
-
|
23
|
-
|
24
|
-
r01 = Round.create!( event: ev, pos: 1, title: '1. Runde', start_at: Time.utc('2012-09-07 15:00'))
|
25
|
-
r02 = Round.create!( event: ev, pos: 2, title: '2. Runde', start_at: Time.utc('2012-09-11 15:00'))
|
26
|
-
r03 = Round.create!( event: ev, pos: 3, title: '3. Runde', start_at: Time.utc('2012-10-12 20:45'))
|
27
|
-
r04 = Round.create!( event: ev, pos: 4, title: '4. Runde', start_at: Time.utc('2012-10-16 20:45'))
|
28
|
-
r05 = Round.create!( event: ev, pos: 5, title: '5. Runde', start_at: Time.utc('2013-03-22 15:00'))
|
29
|
-
r06 = Round.create!( event: ev, pos: 6, title: '6. Runde', start_at: Time.utc('2013-03-26 15:00'))
|
30
|
-
r07 = Round.create!( event: ev, pos: 7, title: '7. Runde', start_at: Time.utc('2013-06-07 15:00'))
|
31
|
-
r08 = Round.create!( event: ev, pos: 8, title: '8. Runde', start_at: Time.utc('2013-06-11 15:00'))
|
32
|
-
r09 = Round.create!( event: ev, pos: 9, title: '9. Runde', start_at: Time.utc('2013-09-06 15:00'))
|
33
|
-
r10 = Round.create!( event: ev, pos: 10, title: '10. Runde', start_at: Time.utc('2013-09-10 15:00'))
|
34
|
-
r11 = Round.create!( event: ev, pos: 11, title: '11. Runde', start_at: Time.utc('2013-10-11 15:00'))
|
35
|
-
r12 = Round.create!( event: ev, pos: 12, title: '12. Runde', start_at: Time.utc('2013-10-15 15:00'))
|
36
|
-
|
37
|
-
|
38
|
-
games01 = [
|
39
|
-
[ ger, [3,0], fro, Time.utc('2012-09-07 15:00') ],
|
40
|
-
[ kaz, [1,2], irl, Time.utc('2012-09-07 15:00') ],
|
41
|
-
]
|
42
|
-
|
43
|
-
games02 = [
|
44
|
-
[ aut, [1,2], ger, Time.utc('2012-09-11 15:00') ],
|
45
|
-
[ swe, [2,0], kaz, Time.utc('2012-09-11 15:00') ],
|
46
|
-
]
|
47
|
-
|
48
|
-
games03 = [
|
49
|
-
[ irl, [1,6], ger, Time.utc('2012-10-12 20:45') ],
|
50
|
-
[ fro, [1,2], swe, Time.utc('2012-10-12 18:00') ],
|
51
|
-
[ kaz, [0,0], aut, Time.utc('2012-10-12 18:00') ],
|
52
|
-
]
|
53
|
-
|
54
|
-
games04 = [
|
55
|
-
[ ger, [4,4], swe, Time.utc('2012-10-16 20:45') ],
|
56
|
-
[ fro, [1,4], irl, Time.utc('2012-10-16 20:00') ],
|
57
|
-
[ aut, [4,0], kaz, Time.utc('2012-10-16 20:30') ],
|
58
|
-
]
|
59
|
-
|
60
|
-
games05 = [
|
61
|
-
[ kaz, [], ger, Time.utc('2013-03-22 15:00') ],
|
62
|
-
[ aut, [], fro, Time.utc('2013-03-22 15:00') ],
|
63
|
-
[ swe, [], irl, Time.utc('2013-03-22 15:00') ],
|
64
|
-
]
|
65
|
-
|
66
|
-
games06 = [
|
67
|
-
[ ger, [], kaz, Time.utc('2013-03-26 15:00') ],
|
68
|
-
[ irl, [], aut, Time.utc('2013-03-26 15:00') ],
|
69
|
-
]
|
70
|
-
|
71
|
-
games07 = [
|
72
|
-
[ irl, [], fro, Time.utc('2013-06-07 15:00') ],
|
73
|
-
[ aut, [], swe, Time.utc('2013-06-07 15:00') ],
|
74
|
-
]
|
75
|
-
|
76
|
-
games08 = [
|
77
|
-
[ swe, [], fro, Time.utc('2013-06-11 15:00') ],
|
78
|
-
]
|
79
|
-
|
80
|
-
games09 = [
|
81
|
-
[ ger, [], aut, Time.utc('2013-09-06 15:00') ],
|
82
|
-
[ kaz, [], fro, Time.utc('2013-09-06 15:00') ],
|
83
|
-
[ irl, [], swe, Time.utc('2013-09-06 15:00') ],
|
84
|
-
]
|
85
|
-
|
86
|
-
games10 = [
|
87
|
-
[ fro, [], ger, Time.utc('2013-09-10 15:00') ],
|
88
|
-
[ aut, [], irl, Time.utc('2013-09-10 15:00') ],
|
89
|
-
[ kaz, [], swe, Time.utc('2013-09-10 15:00') ],
|
90
|
-
]
|
91
|
-
|
92
|
-
games11 = [
|
93
|
-
[ ger, [], irl, Time.utc('2013-10-11 15:00') ],
|
94
|
-
[ fro, [], kaz, Time.utc('2013-10-11 15:00') ],
|
95
|
-
[ swe, [], aut, Time.utc('2013-10-11 15:00') ],
|
96
|
-
]
|
97
|
-
|
98
|
-
games12 = [
|
99
|
-
[ swe, [], ger, Time.utc('2013-10-15 15:00') ],
|
100
|
-
[ fro, [], aut, Time.utc('2013-10-15 15:00') ],
|
101
|
-
[ irl, [], kaz, Time.utc('2013-10-15 15:00') ],
|
102
|
-
]
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
Game.create_from_ary!( games01, r01 )
|
107
|
-
Game.create_from_ary!( games02, r02 )
|
108
|
-
Game.create_from_ary!( games03, r03 )
|
109
|
-
Game.create_from_ary!( games04, r04 )
|
110
|
-
Game.create_from_ary!( games05, r05 )
|
111
|
-
Game.create_from_ary!( games06, r06 )
|
112
|
-
Game.create_from_ary!( games07, r07 )
|
113
|
-
Game.create_from_ary!( games08, r08 )
|
114
|
-
Game.create_from_ary!( games09, r09 )
|
115
|
-
Game.create_from_ary!( games10, r10 )
|
116
|
-
Game.create_from_ary!( games11, r11 )
|
117
|
-
Game.create_from_ary!( games12, r12 )
|
118
|
-
|
119
|
-
Prop.create!( key: 'db.wmq.euro.fixtures.version', value: '1' )
|