sportdb-market 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest.txt +3 -0
- data/db/at/2012_13/bl.rb +6 -7
- data/db/at/2012_13/bl_betathome.txt +22 -11
- data/db/at/2012_13/bl_tipp3.txt +11 -14
- data/db/at/2012_13/cup.rb +4 -4
- data/db/at/2012_13/cup_betathome.txt +8 -8
- data/db/at/2012_13/cup_tipp3.txt +1 -0
- data/db/cl/2012_13/cl_betathome.txt +40 -20
- data/db/cl/2012_13/cl_tipp3.txt +17 -17
- data/db/euro/2012.rb +149 -0
- data/db/euro/2012_tipico.txt +35 -0
- data/db/euro/2012_tipp3.txt +35 -0
- data/db/services.rb +2 -1
- data/db/world/quali_tipp3.txt +10 -10
- data/lib/sportdb/market/market.rb +35 -2
- data/lib/sportdb/market/reader.rb +2 -2
- data/lib/sportdb/market/version.rb +1 -1
- metadata +9 -4
data/Manifest.txt
CHANGED
@@ -11,6 +11,9 @@ db/at/2012_13/cup_tipp3.txt
|
|
11
11
|
db/cl/2012_13/cl.rb
|
12
12
|
db/cl/2012_13/cl_betathome.txt
|
13
13
|
db/cl/2012_13/cl_tipp3.txt
|
14
|
+
db/euro/2012.rb
|
15
|
+
db/euro/2012_tipico.txt
|
16
|
+
db/euro/2012_tipp3.txt
|
14
17
|
db/services.rb
|
15
18
|
db/world/quali_tipp3.txt
|
16
19
|
lib/sportdb/market/loader.rb
|
data/db/at/2012_13/bl.rb
CHANGED
@@ -13,13 +13,12 @@ admira = Team.find_by_key!( 'admira' )
|
|
13
13
|
austria = Team.find_by_key!( 'austria' )
|
14
14
|
sturm = Team.find_by_key!( 'sturm' )
|
15
15
|
ried = Team.find_by_key!( 'ried' )
|
16
|
-
|
16
|
+
innsbruck = Team.find_by_key!( 'innsbruck' )
|
17
17
|
mattersburg = Team.find_by_key!( 'mattersburg' )
|
18
|
-
|
18
|
+
wrneustadt = Team.find_by_key!( 'wrneustadt' )
|
19
19
|
wac = Team.find_by_key!( 'wac' )
|
20
20
|
|
21
21
|
|
22
|
-
|
23
22
|
tipp3 = Service.find_by_key!( 'tipp3' )
|
24
23
|
betathome = Service.find_by_key!( 'betathome' )
|
25
24
|
|
@@ -33,8 +32,8 @@ tipp3_winner_odds = [
|
|
33
32
|
[ ried, 75 ],
|
34
33
|
[ mattersburg, 150 ],
|
35
34
|
[ wac, 200 ],
|
36
|
-
[
|
37
|
-
[
|
35
|
+
[ wrneustadt, 700 ],
|
36
|
+
[ innsbruck, 850 ]]
|
38
37
|
|
39
38
|
betathome_winner_odds = [
|
40
39
|
[ salzburg, 1.65 ],
|
@@ -45,8 +44,8 @@ betathome_winner_odds = [
|
|
45
44
|
[ wac, 70 ],
|
46
45
|
[ admira, 75 ],
|
47
46
|
[ mattersburg, 100 ],
|
48
|
-
[
|
49
|
-
[
|
47
|
+
[ wrneustadt, 250 ],
|
48
|
+
[ innsbruck, 350 ]]
|
50
49
|
|
51
50
|
|
52
51
|
EventQuote.create_from_ary!( tipp3_winner_odds, tipp3, bl )
|
@@ -6,20 +6,31 @@
|
|
6
6
|
|
7
7
|
11. Runde - 6/7 Okt
|
8
8
|
|
9
|
-
wac ried
|
10
|
-
rapid
|
11
|
-
mattersburg salzburg
|
12
|
-
sturm austria
|
13
|
-
admira
|
9
|
+
wac ried 2.4 3.25 2.7
|
10
|
+
rapid wrneustadt 1.25 5.5 9
|
11
|
+
mattersburg salzburg 3.95 3.35 1.85
|
12
|
+
sturm austria 2.5 3.1 2.7
|
13
|
+
admira innsbruck 1.45 4.3 5.9
|
14
14
|
|
15
15
|
|
16
16
|
|
17
17
|
|
18
18
|
|
19
|
-
13. Runde
|
19
|
+
13. Runde // 27+28 Okt
|
20
20
|
|
21
|
-
SV Josko Fenster Ried - SC Wiener Neustadt
|
22
|
-
FC Admira Wacker Mödling - FK Austria Wien
|
23
|
-
SV Mattersburg - FC Wacker Innsbruck
|
24
|
-
Wolfsberger AC - SK Sturm Graz
|
25
|
-
SK Rapid Wien - Red Bull Salzburg
|
21
|
+
SV Josko Fenster Ried - SC Wiener Neustadt 1,55 3,55 6,00
|
22
|
+
FC Admira Wacker Mödling - FK Austria Wien 2,80 3,30 2,30
|
23
|
+
SV Mattersburg - FC Wacker Innsbruck 1,80 3,35 4,20
|
24
|
+
Wolfsberger AC - SK Sturm Graz 2,90 3,30 2,25
|
25
|
+
SK Rapid Wien - Red Bull Salzburg 2,75 3,20 2,40
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
16. Runde // 17+18 Nov
|
31
|
+
|
32
|
+
FK Austria Wien - SC Wiener Neustadt 1,20 6,00 11,00
|
33
|
+
SK Sturm Graz - SV Josko Fenster Ried 1,75 3,50 4,25
|
34
|
+
SV Mattersburg - SK Rapid Wien 3,75 3,35 1,90
|
35
|
+
Wolfsberger AC - FC Admira Wacker Mödling 2,25 3,20 3,00
|
36
|
+
Red Bull Salzburg - FC Wacker Innsbruck 1,20 6,00 11,00
|
data/db/at/2012_13/bl_tipp3.txt
CHANGED
@@ -6,26 +6,23 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
-
### todo:
|
10
|
-
# rename neustadt -> wrneustadt
|
11
|
-
# wacker -> innsbruck
|
12
|
-
|
13
9
|
|
14
10
|
11. Runde - 6/7 Okt || Wettprogramm 40B
|
15
11
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
12
|
+
Wolfsberger AC SV Josko Ried 2,20 3,00 2,60
|
13
|
+
SV Mattersburg Red Bull Salzburg 4,00 3,30 1,80
|
14
|
+
Admira Wacker Wacker Innsbruck 1,45 3,60 5,20
|
15
|
+
SK Sturm Graz FK Austria Wien 2,40 3,10 2,70
|
16
|
+
SK Rapid Wien SC Wiener Neustadt 1,20 5,00 7,50
|
17
|
+
|
21
18
|
|
22
19
|
12. Runde - 20/21 Okt || Wettprogramm 42B
|
23
20
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
21
|
+
Red Bull Salzburg Wolfsberger AC 1,30 4,50 8,00
|
22
|
+
Wacker Innsbruck SV Josko Ried 2,60 2,90 2,30
|
23
|
+
SK Sturm Graz SV Mattersburg 1,45 3,50 5,00
|
24
|
+
SC Wiener Neustadt Admira Wacker 3,00 3,00 2,00
|
25
|
+
FK Austria Wien SK Rapid Wien 2,40 3,30 2,80
|
29
26
|
|
30
27
|
|
31
28
|
13. Runde - 27/28 Okt || Wettprogramm 43B
|
data/db/at/2012_13/cup.rb
CHANGED
@@ -14,9 +14,9 @@ admira = Team.find_by_key!( 'admira' )
|
|
14
14
|
austria = Team.find_by_key!( 'austria' )
|
15
15
|
sturm = Team.find_by_key!( 'sturm' )
|
16
16
|
ried = Team.find_by_key!( 'ried' )
|
17
|
-
|
17
|
+
innsbruck = Team.find_by_key!( 'innsbruck' )
|
18
18
|
mattersburg = Team.find_by_key!( 'mattersburg' )
|
19
|
-
|
19
|
+
wrneustadt = Team.find_by_key!( 'wrneustadt' )
|
20
20
|
wac = Team.find_by_key!( 'wac' )
|
21
21
|
|
22
22
|
## erste liga teams
|
@@ -102,8 +102,8 @@ tipp3_cup_winner_odds = [
|
|
102
102
|
[ ried, 12 ],
|
103
103
|
[ wac, 20 ],
|
104
104
|
[ mattersburg, 20 ],
|
105
|
-
[
|
106
|
-
[
|
105
|
+
[ wrneustadt, 25 ],
|
106
|
+
[ innsbruck, 25 ],
|
107
107
|
[ austrial, 25 ],
|
108
108
|
[ altach, 30 ],
|
109
109
|
[ groedig, 30 ],
|
@@ -22,12 +22,12 @@ gak wac 7.2 4.5 1.3
|
|
22
22
|
|
23
23
|
3. Runde / Achtelfinale / Di+Mi 30.+31. Okt 2012
|
24
24
|
|
25
|
-
SK Sturm Graz - FC Wacker Innsbruck
|
26
|
-
FC Lustenau - Wolfsberger AC
|
27
|
-
FC Pasching - SK Austria Klagenfurt
|
28
|
-
LASK Linz - SV Mattersburg
|
29
|
-
Wiener Viktoria - SV Josko Fenster Ried
|
30
|
-
SC Kalsdorf - Red Bull Salzburg
|
31
|
-
Villacher SV - FK Austria Wien
|
32
|
-
SK Rapid Wien - SCR Altach
|
25
|
+
SK Sturm Graz - FC Wacker Innsbruck 1,40 4,25 5,75
|
26
|
+
FC Lustenau - Wolfsberger AC 3,90 3,40 1,75
|
27
|
+
FC Pasching - SK Austria Klagenfurt 1,60 3,55 4,65
|
28
|
+
LASK Linz - SV Mattersburg 3,80 3,30 1,80
|
29
|
+
Wiener Viktoria - SV Josko Fenster Ried 9,50 5,50 1,20
|
30
|
+
SC Kalsdorf - Red Bull Salzburg 12,00 8,00 1,10
|
31
|
+
Villacher SV - FK Austria Wien 8,50 6,00 1,20
|
32
|
+
SK Rapid Wien - SCR Altach 1,15 6,00 12,00
|
33
33
|
|
data/db/at/2012_13/cup_tipp3.txt
CHANGED
@@ -48,23 +48,43 @@ Manchester United - Sporting Braga 1,30 5,15 9
|
|
48
48
|
Galatasaray - CFR Cluj 1,70 3,5 5
|
49
49
|
|
50
50
|
|
51
|
-
4. Spieltag
|
52
|
-
|
53
|
-
Dynamo Kiev - FC Porto
|
54
|
-
Paris Saint Germain - NK Dinamo Zagreb
|
55
|
-
FC Schalke 04 - Arsenal FC
|
56
|
-
Olympiakos Piraeus - HSC Montpellier
|
57
|
-
AC Milan - CF Malaga
|
58
|
-
RSC Anderlecht - FC Zenit St Petersburg
|
59
|
-
Manchester City - Ajax Amsterdam
|
60
|
-
Real Madrid - Borussia Dortmund
|
61
|
-
|
62
|
-
Chelsea FC - Shakhtar Donetsk
|
63
|
-
Juventus Turin - FC Nordsjaelland
|
64
|
-
CF Valencia - Bate Borisov
|
65
|
-
FC Bayern München - OSC Lille
|
66
|
-
Benfica Lissabon - Spartak Moscow
|
67
|
-
Celtic Glasgow - FC Barcelona
|
68
|
-
CFR Cluj - Galatasaray
|
69
|
-
Sporting Braga - Manchester United
|
70
|
-
|
51
|
+
4. Spieltag // 6+7 Nov
|
52
|
+
|
53
|
+
Dynamo Kiev - FC Porto 2,65 3,30 2,55
|
54
|
+
Paris Saint Germain - NK Dinamo Zagreb 1,15 7,00 16,00
|
55
|
+
FC Schalke 04 - Arsenal FC 1,95 3,35 3,80
|
56
|
+
Olympiakos Piraeus - HSC Montpellier 2,00 3,20 3,85
|
57
|
+
AC Milan - CF Malaga 2,15 3,20 3,40
|
58
|
+
RSC Anderlecht - FC Zenit St Petersburg 2,85 3,30 2,40
|
59
|
+
Manchester City - Ajax Amsterdam 1,30 5,50 8,20
|
60
|
+
Real Madrid - Borussia Dortmund 1,40 4,50 7,40
|
61
|
+
|
62
|
+
Chelsea FC - Shakhtar Donetsk 1,85 3,55 4,00
|
63
|
+
Juventus Turin - FC Nordsjaelland 1,15 7,00 16,00
|
64
|
+
CF Valencia - Bate Borisov 1,25 6,00 9,25
|
65
|
+
FC Bayern München - OSC Lille 1,20 6,35 12,00
|
66
|
+
Benfica Lissabon - Spartak Moscow 1,60 3,65 5,75
|
67
|
+
Celtic Glasgow - FC Barcelona 7,50 5,00 1,35
|
68
|
+
CFR Cluj - Galatasaray 2,60 3,30 2,60
|
69
|
+
Sporting Braga - Manchester United 3,80 3,35 1,95
|
70
|
+
|
71
|
+
|
72
|
+
5. Spieltag // 20+21 Nov
|
73
|
+
|
74
|
+
Bate Borisov - OSC Lille 2,00 3,40 3,60
|
75
|
+
Spartak Moscow - FC Barcelona 7,70 4,90 1,35
|
76
|
+
FC Nordsjaelland - Shakhtar Donetsk 9,20 5,10 1,30
|
77
|
+
Juventus Turin - Chelsea FC 1,90 3,60 3,70
|
78
|
+
CF Valencia - FC Bayern München 3,00 3,50 2,20
|
79
|
+
Benfica Lissabon - Celtic Glasgow 1,50 4,15 6,00
|
80
|
+
CFR Cluj - Sporting Braga 2,75 3,50 2,35
|
81
|
+
Galatasaray - Manchester United 2,10 3,50 3,20
|
82
|
+
|
83
|
+
FC Zenit St Petersburg - CF Malaga 1,80 3,65 4,10
|
84
|
+
Dynamo Kiev - Paris Saint Germain 2,90 3,30 2,35
|
85
|
+
FC Porto - NK Dinamo Zagreb 1,15 7,50 14,00
|
86
|
+
Arsenal FC - HSC Montpellier 1,30 5,00 9,50
|
87
|
+
FC Schalke 04 - Olympiakos Piraeus 1,45 4,25 6,75
|
88
|
+
RSC Anderlecht - AC Milan 2,75 3,40 2,40
|
89
|
+
Ajax Amsterdam - Borussia Dortmund 3,65 3,50 1,95
|
90
|
+
Manchester City - Real Madrid 3,00 3,50 2,20
|
data/db/cl/2012_13/cl_tipp3.txt
CHANGED
@@ -43,23 +43,23 @@ mancity dortmund 1.75 3.6 3.9
|
|
43
43
|
|
44
44
|
3. Spieltag - Di./Mi., 23.+24. Okt 2012 || Wettprogramm 43A
|
45
45
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
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
63
|
|
64
64
|
|
65
65
|
4. Spieltag - Di./Mi., 6.+7. Nov 2012 || Wettprogramm
|
data/db/euro/2012.rb
ADDED
@@ -0,0 +1,149 @@
|
|
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 )
|
@@ -0,0 +1,35 @@
|
|
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
|
@@ -0,0 +1,35 @@
|
|
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/db/services.rb
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
-
Service.create!( key:'tipp3',
|
3
|
+
Service.create!( key: 'tipp3', title: 'tipp3' ) # tipp3 classic
|
4
4
|
Service.create!( key: 'betathome', title: 'bet-at-home' )
|
5
|
+
Service.create!( key: 'tipico', title: 'tipico' )
|
5
6
|
|
6
7
|
## todo: use new version constant for app module e.g. Wettpool::VERSION ??
|
7
8
|
Prop.create!( key: 'db.services.version', value: '1' )
|
data/db/world/quali_tipp3.txt
CHANGED
@@ -1,28 +1,28 @@
|
|
1
1
|
|
2
2
|
Quali 1. Spieltag - Fr. 7. Sep 2012 || Wettprogramm 36B
|
3
3
|
|
4
|
-
|
5
|
-
|
4
|
+
Kasachstan - Irland 4,00 3,20 1,65
|
5
|
+
Deutschland - Färöer Inseln 1,01 15,00 50,00
|
6
6
|
|
7
7
|
|
8
8
|
Quali 2. Spieltag - Di. 11. Sep 2012 || Wettprogramm 37A
|
9
9
|
|
10
|
-
|
11
|
-
|
10
|
+
Schweden - Kasachstan 1,05 6,00 12,00
|
11
|
+
Österreich - Deutschland 6,00 4,50 1,45
|
12
12
|
|
13
13
|
|
14
14
|
Quali 3. Spieltag - Fr. 12. Okt 2012 || Wettprogramm 41B
|
15
15
|
|
16
|
-
|
17
|
-
|
18
|
-
|
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
19
|
|
20
20
|
|
21
21
|
Quali 4. Spieltag - Di. 16. Okt 2012 || Wettprogramm 42A
|
22
22
|
|
23
|
-
|
24
|
-
|
25
|
-
|
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
26
|
|
27
27
|
|
28
28
|
Quali 5. Spieltag - Fr. 22. Mär 2013
|
@@ -27,6 +27,39 @@ module SportDB::Market
|
|
27
27
|
"#{File.expand_path( File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) )}"
|
28
28
|
end
|
29
29
|
|
30
|
+
|
31
|
+
def self.create
|
32
|
+
CreateDB.up
|
33
|
+
end
|
34
|
+
|
35
|
+
def self.fixtures_rb # all builtin ruby fixtures; helper for covenience
|
36
|
+
['services',
|
37
|
+
'at/2012_13/bl',
|
38
|
+
'at/2012_13/cup',
|
39
|
+
'cl/2012_13/cl',
|
40
|
+
'euro/2012']
|
41
|
+
end
|
42
|
+
|
43
|
+
def self.load_all
|
44
|
+
load( fixtures_rb )
|
45
|
+
end
|
46
|
+
|
47
|
+
def self.fixtures_txt
|
48
|
+
[['betathome', 'at.2012/13', 'at/2012_13/bl_betathome'],
|
49
|
+
['tipp3', 'at.2012/13', 'at/2012_13/bl_tipp3'],
|
50
|
+
['betathome', 'at.cup.2012/13', 'at/2012_13/cup_betathome'],
|
51
|
+
['tipp3', 'at.cup.2012/13', 'at/2012_13/cup_tipp3'],
|
52
|
+
['betathome', 'cl.2012/13', 'cl/2012_13/cl_betathome'],
|
53
|
+
['tipp3', 'cl.2012/13', 'cl/2012_13/cl_tipp3'],
|
54
|
+
['tipico', 'euro.2012', 'euro/2012_tipico'],
|
55
|
+
['tipp3', 'euro.2012', 'euro/2012_tipp3' ]]
|
56
|
+
end
|
57
|
+
|
58
|
+
def self.read_all
|
59
|
+
read( fixtures_txt )
|
60
|
+
end
|
61
|
+
|
62
|
+
|
30
63
|
# load built-in (that is, bundled within the gem) named seeds
|
31
64
|
# - pass in an array of seed names e.g. [ 'cl/teams', 'cl/2012_13/cl' ] etc.
|
32
65
|
|
@@ -70,7 +103,7 @@ module SportDB::Market
|
|
70
103
|
Deleter.new.run
|
71
104
|
end # method delete!
|
72
105
|
|
73
|
-
|
74
|
-
|
106
|
+
## say hello
|
107
|
+
puts SportDB::Market.banner
|
75
108
|
|
76
109
|
end # module SportDB::Market
|
@@ -69,10 +69,10 @@ private
|
|
69
69
|
titles += team.synonyms.split('|') if team.synonyms.present?
|
70
70
|
|
71
71
|
## NB: sort here by length (largest goes first - best match)
|
72
|
-
# exclude
|
72
|
+
# exclude code and key (key should always go last)
|
73
73
|
titles = titles.sort { |left,right| right.length <=> left.length }
|
74
74
|
|
75
|
-
titles << team.
|
75
|
+
titles << team.code if team.code.present?
|
76
76
|
titles << team.key
|
77
77
|
|
78
78
|
@known_teams << [ team.key, titles ]
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sportdb-market
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
+
- 1
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 0.0.9
|
10
|
+
version: 0.1.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Gerald Bauer
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-11-
|
18
|
+
date: 2012-11-18 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rdoc
|
@@ -61,6 +61,8 @@ extra_rdoc_files:
|
|
61
61
|
- db/at/2012_13/cup_tipp3.txt
|
62
62
|
- db/cl/2012_13/cl_betathome.txt
|
63
63
|
- db/cl/2012_13/cl_tipp3.txt
|
64
|
+
- db/euro/2012_tipico.txt
|
65
|
+
- db/euro/2012_tipp3.txt
|
64
66
|
- db/world/quali_tipp3.txt
|
65
67
|
files:
|
66
68
|
- GEM.HISTORY.md
|
@@ -76,6 +78,9 @@ files:
|
|
76
78
|
- db/cl/2012_13/cl.rb
|
77
79
|
- db/cl/2012_13/cl_betathome.txt
|
78
80
|
- db/cl/2012_13/cl_tipp3.txt
|
81
|
+
- db/euro/2012.rb
|
82
|
+
- db/euro/2012_tipico.txt
|
83
|
+
- db/euro/2012_tipp3.txt
|
79
84
|
- db/services.rb
|
80
85
|
- db/world/quali_tipp3.txt
|
81
86
|
- lib/sportdb/market/loader.rb
|