sportdb 0.5.6 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,6 +22,9 @@ db/cl/2011_12/el.rb
22
22
  db/cl/2012_13/cl.rb
23
23
  db/cl/badges.rb
24
24
  db/cl/teams.rb
25
+ db/copa/sud_2012_13.rb
26
+ db/copa/sud_2012_13.txt
27
+ db/copa/teams.rb
25
28
  db/countries.rb
26
29
  db/de/2012_13/bl.rb
27
30
  db/de/2012_13/bl.txt
@@ -47,12 +50,14 @@ db/ro/teams.rb
47
50
  db/seasons.rb
48
51
  db/world/2010.rb
49
52
  db/world/2010.txt
50
- db/world/quali_2012_13.rb
51
- db/world/quali_2012_13_c.rb
52
- db/world/quali_2012_13_c.txt
53
- db/world/quali_2012_13_fixtures.rb
54
- db/world/quali_2012_13_i.rb
55
- db/world/quali_2012_13_i.txt
53
+ db/world/quali_2012_13_america.rb
54
+ db/world/quali_2012_13_america.txt
55
+ db/world/quali_2012_13_europe.rb
56
+ db/world/quali_2012_13_europe_c.rb
57
+ db/world/quali_2012_13_europe_c.txt
58
+ db/world/quali_2012_13_europe_fixtures.rb
59
+ db/world/quali_2012_13_europe_i.rb
60
+ db/world/quali_2012_13_europe_i.txt
56
61
  db/world/teams.rb
57
62
  lib/sportdb.rb
58
63
  lib/sportdb/cli/opts.rb
@@ -0,0 +1,39 @@
1
+ # encoding: utf-8
2
+
3
+ #################################
4
+ ## Copa Sudamericana 2012/13
5
+
6
+ ###
7
+ ## fix: time zone and times??
8
+
9
+
10
+ sud = Event.create!( key: 'copa.sud.2012/13',
11
+ title: 'Copa Sudamericana',
12
+ start_at: Time.cet( '2012-08-03 12:00' ),
13
+ league: League.find_by_key!('copa.sud'),
14
+ season: Season.find_by_key!('2012/13'))
15
+
16
+
17
+ team_keys_sud = [
18
+ 'tigre',
19
+ 'colon',
20
+ 'independiente',
21
+ 'saopaulo',
22
+ 'gremio',
23
+ 'palmeiras',
24
+ 'atleticogo',
25
+ 'udechile',
26
+ 'cduc',
27
+ 'millonarios',
28
+ 'quito',
29
+ 'emelec',
30
+ 'loja',
31
+ 'barcelonasc',
32
+ 'liverpoolfc',
33
+ 'porteno'
34
+ ]
35
+
36
+
37
+ sud.add_teams_from_ary!( team_keys_sud )
38
+
39
+ Prop.create!( key: 'db.copa.sud.2012/13.version', value: '1' )
@@ -0,0 +1,49 @@
1
+ #################################
2
+ ## Copa Sudamericana 2012/13
3
+
4
+ ###
5
+ ## fix: time zone and times??
6
+
7
+
8
+ 1. Runde // Achtelfinale - Hinspiele
9
+
10
+ 2012-09-26 12:00 Deportivo Quito 2:0 CA Tigre
11
+ 2012-09-26 12:00 Independiente 2:1 Liverpool FC Montevideo
12
+ 2012-09-27 12:00 Barcelona SC Guayaquil 0:1 Grêmio
13
+ 2012-09-27 12:00 LDU de Loja 1:1 São Paulo FC
14
+ 2012-09-28 12:00 CA Colón 1:2 Cerro Porteño
15
+ 2012-10-03 12:00 U. de Chile 2:2 CS Emelec
16
+ 2012-10-03 12:00 Palmeiras 3:1 Millonarios Bogotá
17
+ 2012-10-04 12:00 Universidad Católica 2:0 Atlético Goianiense
18
+
19
+
20
+ 2. Runde // Achtelfinale - Rückspiele
21
+
22
+ 2012-10-24 12:00 Atlético Goianiense 3:1 Universidad Católica
23
+ 2012-10-24 12:00 Millonarios Bogotá 3:0 Palmeiras
24
+ 2012-10-24 12:00 Cerro Porteño 2:1 CA Colón
25
+ 2012-10-25 12:00 Grêmio 2:1 Barcelona SC Guayaquil
26
+ 2012-10-25 12:00 São Paulo FC 0:0 LDU de Loja
27
+ 2012-10-26 12:00 CS Emelec 0:1 U. de Chile
28
+ 2012-10-26 12:00 CA Tigre 4:0 Deportivo Quito
29
+ 2012-10-26 12:00 Liverpool FC Montevideo 1:2 Independiente
30
+
31
+
32
+ 3. Runde // Viertelfinale - Hinspiele
33
+
34
+ 2012-10-31 12:00 Grêmio 1:0 Millonarios Bogotá
35
+ 2012-11-01 12:00 Cerro Porteño 1:0 CA Tigre
36
+ 2012-11-01 12:00 U. de Chile 0:2 São Paulo FC
37
+ 2012-11-02 12:00 Independiente 2:2 Universidad Católica
38
+
39
+
40
+ 4. Runde // Viertelfinale - Rückspiele
41
+
42
+ 2012-11-07 12:00 CA Tigre - Cerro Porteño
43
+ 2012-11-07 12:00 São Paulo FC - U. de Chile
44
+ 2012-11-07 12:00 Millonarios - Grêmio
45
+ 2012-11-07 12:00 Universidad Católica - Independiente
46
+
47
+
48
+
49
+
@@ -0,0 +1,40 @@
1
+ # encoding: utf-8
2
+
3
+ ar = Country.find_by_key!( 'ar' )
4
+ br = Country.find_by_key!( 'br' )
5
+ cl = Country.find_by_key!( 'cl' )
6
+ py = Country.find_by_key!( 'py' )
7
+ uy = Country.find_by_key!( 'uy' )
8
+ ec = Country.find_by_key!( 'ec' )
9
+ co = Country.find_by_key!( 'co' )
10
+
11
+ teams = [
12
+ ['tigre', 'Club Atlético Tigre|CA Tigre|Tigre', ar ],
13
+ ['colon', 'CA Colón|Club Atlético Colón (Santa Fe)', ar],
14
+ ['independiente', 'Independiente|CA Independiente de Avellaneda', ar],
15
+
16
+ ['saopaulo', 'São Paulo FC|São Paulo|Sao Paulo|FC Sao Paulo', br ],
17
+ ['gremio', 'Grêmio Porto Alegre|Grêmio|Gremio Porto Alegre', br ],
18
+ ['palmeiras', 'SE Palmeiras São Paulo|SE Palmeiras|Palmeiras', br],
19
+ ['atleticogo', 'Atlético Goianiense|Atlético GO', br],
20
+
21
+ ['udechile', 'Universidad de Chile|U. de Chile|Club Universidad de Chile', cl ],
22
+ ['cduc', 'Universidad Católica|CDUC|CD Universidad Católica', cl],
23
+
24
+ ['millonarios', 'Millonarios Bogotá|Millonarios', co ],
25
+
26
+ ['quito', 'Deportivo Quito|Club Deportivo Quito', ec],
27
+ ['emelec', 'CS Emelec|Emelec', ec],
28
+ ['loja', 'LDU Loja|LDU de Loja', ec],
29
+ ['barcelonasc', 'Barcelona SC Guayaquil|Barcelona SC', ec],
30
+
31
+ ['liverpoolfc', 'Liverpool FC Montevideo|Liverpool FC|Liverpool Fútbol Club', uy],
32
+
33
+ ['porteno', 'Cerro Porteño|Club Cerro Porteño', py ],
34
+ ]
35
+
36
+
37
+
38
+ Team.create_from_ary!( teams, club: true )
39
+
40
+ Prop.create!( key: 'db.copa.teams.version', value: '1' )
@@ -64,6 +64,8 @@ countries = [
64
64
  [ 'cl', 'Chile', 'CHI' ],
65
65
  [ 'py', 'Paraguay', 'PAR' ],
66
66
  [ 'uy', 'Uruguay', 'URU' ],
67
+ [ 'ec', 'Ecuador', 'ECU' ],
68
+ [ 'co', 'Colombia', 'COL' ],
67
69
 
68
70
  #####################
69
71
  #### north/central america & caribbean islands
@@ -72,6 +74,9 @@ countries = [
72
74
  [ 'mx', 'Mexiko', 'MEX' ],
73
75
  [ 'us', 'United States', 'USA' ],
74
76
  [ 'hn', 'Honduras', 'HON' ],
77
+ [ 'cr', 'Costa Rica', 'CRC' ],
78
+ [ 'sv', 'El Salvador', 'SLV' ],
79
+ [ 'gy', 'Guyana', 'GUY' ],
75
80
 
76
81
  ########################
77
82
  ## africa
@@ -40,8 +40,10 @@ League.create_from_ary!( leagues_club, club: true )
40
40
  ## international leagues w/ football clubs teams
41
41
 
42
42
  leagues_club_intl = [
43
- [ 'cl', 'Champions League' ],
44
- [ 'el', 'Europa League' ]
43
+ [ 'cl', 'Champions League' ],
44
+ [ 'el', 'Europa League' ],
45
+ [ 'copa', 'Copa Libertadores' ],
46
+ [ 'copa.sud', 'Copa Sudamericana' ]
45
47
  ]
46
48
 
47
49
  League.create_from_ary!( leagues_club_intl, club: true )
@@ -51,9 +53,10 @@ League.create_from_ary!( leagues_club_intl, club: true )
51
53
  ## internationl tournaments & cups w/ national teams
52
54
 
53
55
  leagues_intl = [
54
- [ 'euro', 'Euro' ],
55
- [ 'wm', 'World Cup' ], ## change key to world??
56
- [ 'wmq', 'World Cup Quali' ]
56
+ [ 'euro', 'Euro' ],
57
+ [ 'wm', 'World Cup' ], ## change key to world??
58
+ [ 'wmq.euro', 'World Cup Quali Europe' ],
59
+ [ 'wmq.america', 'World Cup Quali North/Central America and Caribbean' ]
57
60
  ]
58
61
 
59
62
  League.create_from_ary!( leagues_intl, club: false )
@@ -0,0 +1,33 @@
1
+ # encoding: utf-8
2
+
3
+ #
4
+ # note: fix: play_at times and timezones
5
+ # what timezone to use?
6
+
7
+ #############################################################
8
+ ## WM 2014 - Qualification North/Central America & Caribbean Islands
9
+
10
+
11
+ world = Event.create!( key: 'wmq.america',
12
+ title: 'World Cup Quali. North/Central America & Caribbean',
13
+ start_at: Time.cet( '2012-09-06 12:00' ),
14
+ league: League.find_by_key!('wmq.america'),
15
+ season: Season.find_by_key!('2012/13'))
16
+
17
+ team_keys_world2 = [
18
+ 'mex',
19
+ 'crc',
20
+ 'slv',
21
+ 'guy'
22
+ ]
23
+
24
+ world.add_teams_from_ary!( team_keys_world2 )
25
+
26
+
27
+ world2 = Group.create!( event: world, pos: 2, title: 'Gruppe 2' )
28
+
29
+ world2.add_teams_from_ary!( team_keys_world2 )
30
+
31
+
32
+
33
+ Prop.create!( key: 'db.world.quali.america.2012/13.version', value: '1' )
@@ -0,0 +1,41 @@
1
+ #############################################################
2
+ ## WM 2014 - Qualification North/Central America & Caribbean Islands
3
+
4
+ #
5
+ # note: fix: play_at times and timezones
6
+ # what timezone to use?
7
+
8
+
9
+ ######################################################
10
+ ### Group 2 | Mexico, Costa Rica, El Salvador, Guyana
11
+
12
+
13
+ 1. Spieltag
14
+
15
+ 2012-06-09 12:00 Mexiko - Guyana 3:1
16
+ 2012-06-09 12:00 Costa Rica - El Salvador 2:2
17
+
18
+ 2. Spieltag
19
+
20
+ 2012-06-13 12:00 Guyana - Costa Rica 0:4
21
+ 2012-06-13 12:00 El Salvador - Mexiko 1:2
22
+
23
+ 3. Spieltag
24
+
25
+ 2012-09-08 12:00 El Salvador - Guyana 2:2
26
+ 2012-09-08 12:00 Costa Rica - Mexiko 0:2
27
+
28
+ 4. Spieltag
29
+
30
+ 2012-09-12 12:00 Guyana - El Salvador 2:3
31
+ 2012-09-12 12:00 Mexiko - Costa Rica 1:0
32
+
33
+ 5. Spieltag
34
+
35
+ 2012-10-13 12:00 Guyana - Mexiko 0:5
36
+ 2012-10-13 12:00 El Salvador - Costa Rica 0:1
37
+
38
+ 6. Spieltag
39
+
40
+ 2012-10-17 12:00 Mexiko - El Salvador 2:0
41
+ 2012-10-17 12:00 Costa Rica - Guyana 7:0
@@ -6,10 +6,10 @@
6
6
  ## WM 2014 - Qualification Europe
7
7
 
8
8
 
9
- world = Event.create!( key: 'wmq',
10
- title: 'World Cup Quali. Europe 2012/13',
9
+ world = Event.create!( key: 'wmq.euro',
10
+ title: 'World Cup Quali. Europe',
11
11
  start_at: Time.cet( '2012-09-07 00:00' ),
12
- league: League.find_by_key!('wmq'),
12
+ league: League.find_by_key!('wmq.euro'),
13
13
  season: Season.find_by_key!('2012/13'))
14
14
 
15
- Prop.create!( key: 'db.world.quali.2012/13.version', value: '1' )
15
+ Prop.create!( key: 'db.world.quali.euro.2012/13.version', value: '1' )
@@ -5,7 +5,7 @@
5
5
  #
6
6
  # note: for teams see seeds/euro/teams.rb
7
7
 
8
- world = Event.find_by_key!( 'wmq' )
8
+ world = Event.find_by_key!( 'wmq.euro' )
9
9
 
10
10
  team_keys_worldc = [
11
11
  'ger',
@@ -23,4 +23,4 @@ worldc = Group.create!( event: world, pos: 3, title: 'Gruppe C' )
23
23
  worldc.add_teams_from_ary!( team_keys_worldc )
24
24
 
25
25
 
26
- Prop.create!( key: 'db.world.quali.2012/13.c.version', value: '1' )
26
+ Prop.create!( key: 'db.world.quali.euro.2012/13.c.version', value: '1' )
@@ -11,7 +11,7 @@
11
11
 
12
12
 
13
13
 
14
- ev = Event.find_by_key!( 'wmq' )
14
+ ev = Event.find_by_key!( 'wmq.euro' )
15
15
 
16
16
  ger = Team.find_by_key!( 'ger' )
17
17
  irl = Team.find_by_key!( 'irl' )
@@ -116,4 +116,4 @@ Game.create_from_ary!( games10, r10 )
116
116
  Game.create_from_ary!( games11, r11 )
117
117
  Game.create_from_ary!( games12, r12 )
118
118
 
119
- Prop.create!( key: 'db.wmq.fixtures.version', value: '1' )
119
+ Prop.create!( key: 'db.wmq.euro.fixtures.version', value: '1' )
@@ -5,7 +5,7 @@
5
5
 
6
6
  # note: for teams see seeds/euro/teams.rb
7
7
 
8
- world = Event.find_by_key!( 'wmq' )
8
+ world = Event.find_by_key!( 'wmq.euro' )
9
9
 
10
10
  team_keys_worldi = [
11
11
  'fra',
@@ -23,4 +23,4 @@ worldi.add_teams_from_ary!( team_keys_worldi )
23
23
 
24
24
 
25
25
 
26
- Prop.create!( key: 'db.world.quali.2012/13.i.version', value: '1' )
26
+ Prop.create!( key: 'db.world.quali.euro.2012/13.i.version', value: '1' )
@@ -24,11 +24,17 @@ teams_america1 = [
24
24
  mx = Country.find_by_key!( 'mx' )
25
25
  us = Country.find_by_key!( 'us' )
26
26
  hn = Country.find_by_key!( 'hn' )
27
+ cr = Country.find_by_key!( 'cr' )
28
+ sv = Country.find_by_key!( 'sv' )
29
+ gy = Country.find_by_key!( 'gy' )
27
30
 
28
31
  teams_america2 = [
29
32
  [ 'mex', 'Mexiko', 'MEX', mx ],
30
33
  [ 'usa', 'Vereinigte Staaten|United States', 'USA', us ],
31
- [ 'hon', 'Honduras', 'HON', hn ]
34
+ [ 'hon', 'Honduras', 'HON', hn ],
35
+ [ 'crc', 'Costa Rica', 'CRC', cr ],
36
+ [ 'slv', 'El Salvador', 'SLV', sv ],
37
+ [ 'guy', 'Guyana', 'GUY', gy ],
32
38
  ]
33
39
 
34
40
 
@@ -1,4 +1,4 @@
1
1
 
2
2
  module SportDB
3
- VERSION = '0.5.6'
3
+ VERSION = '0.6.0'
4
4
  end
metadata CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 5
9
8
  - 6
10
- version: 0.5.6
9
+ - 0
10
+ version: 0.6.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-03 00:00:00 Z
18
+ date: 2012-11-04 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: activerecord
@@ -73,13 +73,15 @@ extra_rdoc_files:
73
73
  - db/at/2011_12/bl.txt
74
74
  - db/at/2012_13/bl.txt
75
75
  - db/at/2012_13/cup.txt
76
+ - db/copa/sud_2012_13.txt
76
77
  - db/de/2012_13/bl.txt
77
78
  - db/en/2012_13/pl.txt
78
79
  - db/euro/2008.txt
79
80
  - db/mx/apertura_2012.txt
80
81
  - db/world/2010.txt
81
- - db/world/quali_2012_13_c.txt
82
- - db/world/quali_2012_13_i.txt
82
+ - db/world/quali_2012_13_america.txt
83
+ - db/world/quali_2012_13_europe_c.txt
84
+ - db/world/quali_2012_13_europe_i.txt
83
85
  files:
84
86
  - History.markdown
85
87
  - Manifest.txt
@@ -105,6 +107,9 @@ files:
105
107
  - db/cl/2012_13/cl.rb
106
108
  - db/cl/badges.rb
107
109
  - db/cl/teams.rb
110
+ - db/copa/sud_2012_13.rb
111
+ - db/copa/sud_2012_13.txt
112
+ - db/copa/teams.rb
108
113
  - db/countries.rb
109
114
  - db/de/2012_13/bl.rb
110
115
  - db/de/2012_13/bl.txt
@@ -130,12 +135,14 @@ files:
130
135
  - db/seasons.rb
131
136
  - db/world/2010.rb
132
137
  - db/world/2010.txt
133
- - db/world/quali_2012_13.rb
134
- - db/world/quali_2012_13_c.rb
135
- - db/world/quali_2012_13_c.txt
136
- - db/world/quali_2012_13_fixtures.rb
137
- - db/world/quali_2012_13_i.rb
138
- - db/world/quali_2012_13_i.txt
138
+ - db/world/quali_2012_13_america.rb
139
+ - db/world/quali_2012_13_america.txt
140
+ - db/world/quali_2012_13_europe.rb
141
+ - db/world/quali_2012_13_europe_c.rb
142
+ - db/world/quali_2012_13_europe_c.txt
143
+ - db/world/quali_2012_13_europe_fixtures.rb
144
+ - db/world/quali_2012_13_europe_i.rb
145
+ - db/world/quali_2012_13_europe_i.txt
139
146
  - db/world/teams.rb
140
147
  - lib/sportdb.rb
141
148
  - lib/sportdb/cli/opts.rb