sportdb-market 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest.txt +0 -14
- data/README.md +5 -1
- data/Rakefile +2 -8
- data/lib/sportdb/market.rb +17 -17
- data/lib/sportdb/market/loader.rb +26 -27
- data/lib/sportdb/market/models/event_quote.rb +3 -3
- data/lib/sportdb/market/models/game.rb +4 -4
- data/lib/sportdb/market/models/group_quote.rb +3 -3
- data/lib/sportdb/market/models/quote.rb +5 -4
- data/lib/sportdb/market/models/service.rb +3 -3
- data/lib/sportdb/market/reader.rb +14 -26
- data/lib/sportdb/market/schema.rb +6 -6
- data/lib/sportdb/market/version.rb +3 -3
- metadata +36 -76
- data/data/at/2012_13/bl.rb +0 -57
- data/data/at/2012_13/bl_betathome.txt +0 -44
- data/data/at/2012_13/bl_tipp3.txt +0 -37
- data/data/at/2012_13/cup.rb +0 -117
- data/data/at/2012_13/cup_betathome.txt +0 -33
- data/data/at/2012_13/cup_tipp3.txt +0 -28
- data/data/cl/2012_13/cl.rb +0 -95
- data/data/cl/2012_13/cl_betathome.txt +0 -111
- data/data/cl/2012_13/cl_tipp3.txt +0 -75
- data/data/euro/2012.rb +0 -149
- data/data/euro/2012_tipico.txt +0 -35
- data/data/euro/2012_tipp3.txt +0 -35
- data/data/services.rb +0 -8
- data/data/world/quali_tipp3.txt +0 -31
@@ -1,75 +0,0 @@
|
|
1
|
-
|
2
|
-
1. Spieltag - Di./Mi., 18.+19. Sep 2012 || Wettprogramm 38A
|
3
|
-
|
4
|
-
paris kiew 1.55 3.3 4.5
|
5
|
-
zagreb porto 3.2 3 1.8
|
6
|
-
milan anderlecht 1.4 3.5 6
|
7
|
-
malaga zenit 2.3 3 2.3
|
8
|
-
olympiacos schalke 2.4 3 2.4
|
9
|
-
montpellier arsenal 2.7 3.1 2.1
|
10
|
-
dortmund ajax 1.35 3.8 6
|
11
|
-
madrid mancity 1.65 3.4 4.8
|
12
|
-
|
13
|
-
donezk nordsjalland 1.2 4.5 6.8
|
14
|
-
chelsea juventus 1.9 3 3.2
|
15
|
-
bayern valencia 1.4 4 7
|
16
|
-
lille borissow 1.35 3.5 5.6
|
17
|
-
celtic benfica 3 3 2
|
18
|
-
barcelona spartak 1.05 6 12
|
19
|
-
braga cluj 1.45 3.4 4.6
|
20
|
-
manunited galatasaray 1.25 4.5 7.0
|
21
|
-
|
22
|
-
|
23
|
-
2. Spieltag - Di./Mi., 2.+3. Okt 2012 || Wettprogramm 40A
|
24
|
-
|
25
|
-
spartak celtic 1.45 3.4 4.6
|
26
|
-
nordsjalland chelsea 7 4.5 1.25
|
27
|
-
juventus donezk 1.45 3.4 5.5
|
28
|
-
borissow bayern 6.6 4 1.3
|
29
|
-
valencia lille 1.45 3.4 4.6
|
30
|
-
benfica barcelona 6 4 1.45
|
31
|
-
cluj manunited 5 3.5 1.45
|
32
|
-
galatasaray braga 1.7 3.3 3.6
|
33
|
-
|
34
|
-
zenit milan 2 3 3
|
35
|
-
kiew zagreb 1.3 3.8 5.8
|
36
|
-
porto paris 2.1 2.9 2.9
|
37
|
-
arsenal olympiacos 1.3 4 6.6
|
38
|
-
schalke montpellier 1.45 3.4 5.5
|
39
|
-
anderlecht malaga 2.4 2.9 2.3
|
40
|
-
ajax madrid 6.6 4 1.3
|
41
|
-
mancity dortmund 1.75 3.6 3.9
|
42
|
-
|
43
|
-
|
44
|
-
3. Spieltag - Di./Mi., 23.+24. Okt 2012 || Wettprogramm 43A
|
45
|
-
|
46
|
-
Spartak Moskau RUS Benfica Lis. POR 2,50 3,00 2,30
|
47
|
-
Nordsjaelland DEN Juventus Turin ITA 5,80 3,80 1,30
|
48
|
-
Shakhtar Don. UKR FC Chelsea ENG 2,30 3,00 2,50
|
49
|
-
Bate Borisov BLR FC Valencia ESP 2,80 2,90 2,00
|
50
|
-
Lille OSC FRA Bayern München GER 6,50 3,70 1,45
|
51
|
-
FC Barcelona ESP Celtic Glasgow SCO 1,05 6,50 10,00
|
52
|
-
Galatasaray TUR CFR Cluj ROU 1,50 3,40 4,80
|
53
|
-
Manchester U. ENG Sporting Braga POR 1,30 3,80 5,80
|
54
|
-
|
55
|
-
Zenit Petersb. RUS RSC Anderlecht BEL 1,40 3,50 4,90
|
56
|
-
FC Porto POR FC Dynamo Kiew UKR 1,45 3,30 5,00
|
57
|
-
Dinamo Zagreb CRO Paris S.Germai FRA 4,30 3,30 1,50
|
58
|
-
Montpellier FRA Olympiakos P. GRE 1,90 2,90 3,00
|
59
|
-
FC Arsenal ENG FC Schalke 04 GER 1,90 3,00 3,20
|
60
|
-
Malaga CF ESP AC Milan ITA 1,90 3,10 3,10
|
61
|
-
Bor. Dortmund GER Real Madrid ESP 3,30 3,20 2,00
|
62
|
-
Ajax Amsterdam NED Man. City ENG 3,90 3,20 1,65
|
63
|
-
|
64
|
-
|
65
|
-
4. Spieltag - Di./Mi., 6.+7. Nov 2012 || Wettprogramm
|
66
|
-
|
67
|
-
|
68
|
-
5. Spieltag - Di./Mi., 20.+21. Nov 2012 || Wettprogramm
|
69
|
-
|
70
|
-
|
71
|
-
6. Spieltag - Di./Mi., 4.+5. Dez 2012 || Wettprogramm
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
data/data/euro/2012.rb
DELETED
@@ -1,149 +0,0 @@
|
|
1
|
-
|
2
|
-
euro = Event.find_euro_2012!
|
3
|
-
|
4
|
-
euroa = Group.find_by_event_id_and_pos!( euro.id, 1 )
|
5
|
-
eurob = Group.find_by_event_id_and_pos!( euro.id, 2 )
|
6
|
-
euroc = Group.find_by_event_id_and_pos!( euro.id, 3 )
|
7
|
-
eurod = Group.find_by_event_id_and_pos!( euro.id, 4 )
|
8
|
-
|
9
|
-
pol = Team.find_by_key!( 'pol' )
|
10
|
-
gre = Team.find_by_key!( 'gre' )
|
11
|
-
rus = Team.find_by_key!( 'rus' )
|
12
|
-
cze = Team.find_by_key!( 'cze' )
|
13
|
-
|
14
|
-
ned = Team.find_by_key!( 'ned' )
|
15
|
-
den = Team.find_by_key!( 'den' )
|
16
|
-
ger = Team.find_by_key!( 'ger' )
|
17
|
-
por = Team.find_by_key!( 'por' )
|
18
|
-
|
19
|
-
esp = Team.find_by_key!( 'esp' )
|
20
|
-
ita = Team.find_by_key!( 'ita' )
|
21
|
-
irl = Team.find_by_key!( 'irl' )
|
22
|
-
cro = Team.find_by_key!( 'cro' )
|
23
|
-
|
24
|
-
ukr = Team.find_by_key!( 'ukr' )
|
25
|
-
swe = Team.find_by_key!( 'swe' )
|
26
|
-
fra = Team.find_by_key!( 'fra' )
|
27
|
-
eng = Team.find_by_key!( 'eng' )
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
tipico = Service.find_by_key!( 'tipico' )
|
32
|
-
betathome = Service.find_by_key!( 'betathome' )
|
33
|
-
tipp3 = Service.find_by_key!( 'tipp3' )
|
34
|
-
|
35
|
-
|
36
|
-
tipico_winner_odds = [ # tipico quotes 27/may
|
37
|
-
[ esp, 3.6 ],
|
38
|
-
[ ger, 4 ],
|
39
|
-
[ ned, 8 ],
|
40
|
-
[ fra, 12 ],
|
41
|
-
[ eng, 12 ],
|
42
|
-
[ ita, 15 ],
|
43
|
-
[ por, 20 ],
|
44
|
-
[ rus, 25 ],
|
45
|
-
[ pol, 45 ],
|
46
|
-
[ cro, 50 ],
|
47
|
-
[ ukr, 50 ],
|
48
|
-
[ swe, 60 ],
|
49
|
-
[ gre, 70 ],
|
50
|
-
[ cze, 70 ],
|
51
|
-
[ den, 100 ],
|
52
|
-
[ irl, 100 ]]
|
53
|
-
|
54
|
-
EventQuote.create_from_ary!( tipico_winner_odds, tipico, euro )
|
55
|
-
|
56
|
-
|
57
|
-
betathome_winner_odds = [
|
58
|
-
[ esp, 3.5 ],
|
59
|
-
[ ger, 3.9 ],
|
60
|
-
[ ned, 7.5 ],
|
61
|
-
[ eng, 10 ],
|
62
|
-
[ fra, 15 ],
|
63
|
-
[ ita, 15 ],
|
64
|
-
[ por, 18 ],
|
65
|
-
[ rus, 20 ],
|
66
|
-
[ cro, 40 ],
|
67
|
-
[ ukr, 40 ],
|
68
|
-
[ cze, 50 ],
|
69
|
-
[ gre, 50 ],
|
70
|
-
[ pol, 50 ],
|
71
|
-
[ swe, 65 ],
|
72
|
-
[ den, 80 ],
|
73
|
-
[ irl, 80 ]]
|
74
|
-
|
75
|
-
EventQuote.create_from_ary!( betathome_winner_odds, betathome, euro )
|
76
|
-
|
77
|
-
|
78
|
-
tipp3_winner_odds = [
|
79
|
-
[ esp, 3.5 ],
|
80
|
-
[ ger, 3.8 ],
|
81
|
-
[ ned, 8 ],
|
82
|
-
[ eng, 12 ],
|
83
|
-
[ ita, 12 ],
|
84
|
-
[ fra, 12 ],
|
85
|
-
[ por, 20 ],
|
86
|
-
[ rus, 25 ],
|
87
|
-
[ cro, 50 ],
|
88
|
-
[ ukr, 50 ],
|
89
|
-
[ pol, 60 ],
|
90
|
-
[ cze, 70 ],
|
91
|
-
[ gre, 70 ],
|
92
|
-
[ swe, 75 ],
|
93
|
-
[ den, 90 ],
|
94
|
-
[ irl, 90 ]]
|
95
|
-
|
96
|
-
EventQuote.create_from_ary!( tipp3_winner_odds, tipp3, euro )
|
97
|
-
|
98
|
-
|
99
|
-
tipp3_groupa_winner_odds = [
|
100
|
-
[ rus, 2.3 ],
|
101
|
-
[ pol, 3.4 ],
|
102
|
-
[ cze, 4.5 ],
|
103
|
-
[ gre, 5 ]]
|
104
|
-
tipp3_groupb_winner_odds = [
|
105
|
-
[ ger, 2.1 ],
|
106
|
-
[ ned, 2.6 ],
|
107
|
-
[ por, 4.5 ],
|
108
|
-
[ den, 15 ]]
|
109
|
-
tipp3_groupc_winner_odds = [
|
110
|
-
[ esp, 1.45 ],
|
111
|
-
[ ita, 4 ],
|
112
|
-
[ cro, 6.5 ],
|
113
|
-
[ irl, 18 ]]
|
114
|
-
tipp3_groupd_winner_odds = [
|
115
|
-
[ eng, 2.6 ],
|
116
|
-
[ fra, 2.6 ],
|
117
|
-
[ ukr, 5 ],
|
118
|
-
[ swe, 6 ]]
|
119
|
-
|
120
|
-
GroupQuote.create_from_ary!( tipp3_groupa_winner_odds, tipp3, euroa )
|
121
|
-
GroupQuote.create_from_ary!( tipp3_groupb_winner_odds, tipp3, eurob )
|
122
|
-
GroupQuote.create_from_ary!( tipp3_groupc_winner_odds, tipp3, euroc )
|
123
|
-
GroupQuote.create_from_ary!( tipp3_groupd_winner_odds, tipp3, eurod )
|
124
|
-
|
125
|
-
tipico_groupa_winner_odds = [
|
126
|
-
[ rus, 2.5 ],
|
127
|
-
[ pol, 3.6 ],
|
128
|
-
[ cze, 4.7 ],
|
129
|
-
[ gre, 5.5 ]]
|
130
|
-
tipico_groupb_winner_odds = [
|
131
|
-
[ ger, 2.05 ],
|
132
|
-
[ ned, 2.9 ],
|
133
|
-
[ por, 5 ],
|
134
|
-
[ den, 20 ]]
|
135
|
-
tipico_groupc_winner_odds = [
|
136
|
-
[ esp, 1.55 ],
|
137
|
-
[ ita, 4 ],
|
138
|
-
[ cro, 8 ],
|
139
|
-
[ irl, 18 ]]
|
140
|
-
tipico_groupd_winner_odds = [
|
141
|
-
[ fra, 2.6 ],
|
142
|
-
[ eng, 2.7 ],
|
143
|
-
[ ukr, 5.5 ],
|
144
|
-
[ swe, 7 ]]
|
145
|
-
|
146
|
-
GroupQuote.create_from_ary!( tipico_groupa_winner_odds, tipico, euroa )
|
147
|
-
GroupQuote.create_from_ary!( tipico_groupb_winner_odds, tipico, eurob )
|
148
|
-
GroupQuote.create_from_ary!( tipico_groupc_winner_odds, tipico, euroc )
|
149
|
-
GroupQuote.create_from_ary!( tipico_groupd_winner_odds, tipico, eurod )
|
data/data/euro/2012_tipico.txt
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
|
2
|
-
1. Runde
|
3
|
-
|
4
|
-
POL GRE 2 3.3 4
|
5
|
-
RUS CZE 2.1 3.3 3.7
|
6
|
-
NED DEN 1.6 3.8 6
|
7
|
-
GER POR 1.8 3.5 4.7
|
8
|
-
ESP ITA 1.8 3.5 4.8
|
9
|
-
IRL CRO 3.5 3.3 2.15
|
10
|
-
FRA ENG 2.7 3.2 2.7
|
11
|
-
UKR SWE 2.3 3.2 3.4
|
12
|
-
|
13
|
-
|
14
|
-
2. Runde
|
15
|
-
|
16
|
-
GRE CZE 3 3.2 2.5
|
17
|
-
POL RUS 3.1 3.2 2.4
|
18
|
-
DEN POR 4 3.5 1.95
|
19
|
-
NED GER 3.3 3.4 2.25
|
20
|
-
ITA CRO 2.1 3.3 3.7
|
21
|
-
ESP IRL 1.3 5 12
|
22
|
-
SWE ENG 4.3 3.3 1.95
|
23
|
-
UKR FRA 3.5 3.2 2.2
|
24
|
-
|
25
|
-
|
26
|
-
3. Runde
|
27
|
-
|
28
|
-
CZE POL 2.8 3.3 2.6
|
29
|
-
GRE RUS 4 3.4 2
|
30
|
-
POR NED 7 4.3 1.5
|
31
|
-
DEN GER 3.4 3.4 2.2
|
32
|
-
CRO ESP 6.5 4 1.55
|
33
|
-
ITA IRL 1.75 3.6 5
|
34
|
-
ENG UKR 2.15 3.3 3.6
|
35
|
-
SWE FRA 3.7 3.3 2.1
|
data/data/euro/2012_tipp3.txt
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
|
2
|
-
1. Runde
|
3
|
-
|
4
|
-
POL GRE 2 2.9 3.2
|
5
|
-
RUS CZE 2.1 2.9 3
|
6
|
-
NED DEN 1.55 3.3 4.9
|
7
|
-
GER POR 1.7 3.1 3.9
|
8
|
-
ESP ITA 1.7 3.1 3.9
|
9
|
-
IRL CRO 3.1 2.9 2.0
|
10
|
-
FRA ENG 2.4 2.9 2.4
|
11
|
-
UKR SWE 2.2 2.9 2.8
|
12
|
-
|
13
|
-
|
14
|
-
2. Runde
|
15
|
-
|
16
|
-
GRE CZE 2.6 2.9 2.3
|
17
|
-
POS RUS 2.7 3 2.2
|
18
|
-
DEN POR 3.5 3.1 1.8
|
19
|
-
NED GER 2.8 3 2.2
|
20
|
-
ITA CRO 2 2.9 3.3
|
21
|
-
ESP IRL 1.3 4.0 7.4
|
22
|
-
SWE ENG 3 2.9 2.1
|
23
|
-
UKR FRA 3.8 3 1.75
|
24
|
-
|
25
|
-
|
26
|
-
3. Runde
|
27
|
-
|
28
|
-
CZE POL 2.4 2.9 2.4
|
29
|
-
GRE RUS 3.2 3 1.9
|
30
|
-
POR NED 3 2.9 2
|
31
|
-
DEN GER 5.9 3.4 1.45
|
32
|
-
CRO ESP 5.2 3.4 1.5
|
33
|
-
ITA IRL 1.65 3.1 4.2
|
34
|
-
ENG UKR 2 3 3.1
|
35
|
-
SWE FRA 3.3 3 1.9
|
data/data/services.rb
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
Service.create!( key: 'tipp3', title: 'tipp3' ) # tipp3 classic
|
4
|
-
Service.create!( key: 'betathome', title: 'bet-at-home' )
|
5
|
-
Service.create!( key: 'tipico', title: 'tipico' )
|
6
|
-
|
7
|
-
## todo: use new version constant for app module e.g. Wettpool::VERSION ??
|
8
|
-
Prop.create!( key: 'db.services.version', value: '1' )
|
data/data/world/quali_tipp3.txt
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
|
2
|
-
Quali 1. Spieltag - Fr. 7. Sep 2012 || Wettprogramm 36B
|
3
|
-
|
4
|
-
Kasachstan - Irland 4,00 3,20 1,65
|
5
|
-
Deutschland - Färöer Inseln 1,01 15,00 50,00
|
6
|
-
|
7
|
-
|
8
|
-
Quali 2. Spieltag - Di. 11. Sep 2012 || Wettprogramm 37A
|
9
|
-
|
10
|
-
Schweden - Kasachstan 1,05 6,00 12,00
|
11
|
-
Österreich - Deutschland 6,00 4,50 1,45
|
12
|
-
|
13
|
-
|
14
|
-
Quali 3. Spieltag - Fr. 12. Okt 2012 || Wettprogramm 41B
|
15
|
-
|
16
|
-
Färöer Inseln - Schweden 11,00 6,00 1,10
|
17
|
-
Kasachstan - Österreich 5,00 3,50 1,70
|
18
|
-
Irland - Deutschland 5,50 4,00 1,35
|
19
|
-
|
20
|
-
|
21
|
-
Quali 4. Spieltag - Di. 16. Okt 2012 || Wettprogramm 42A
|
22
|
-
|
23
|
-
Färöer Inseln - Irland 6,50 4,00 1,30
|
24
|
-
Österreich - Kasachstan 1,20 6,00 12,00
|
25
|
-
Deutschland - Schweden 1,20 5,00 8,00
|
26
|
-
|
27
|
-
|
28
|
-
Quali 5. Spieltag - Fr. 22. Mär 2013
|
29
|
-
|
30
|
-
Quali 6. Spieltag - Di. 26. Mär 2013
|
31
|
-
|