sportdb 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -45,7 +45,7 @@ teams = [
45
45
 
46
46
  ## some more teams for wm quali
47
47
 
48
- [ 'fro', 'Färöer', 'FRO', fo ],
48
+ [ 'fro', 'Färöer|Färöer Inseln', 'FRO', fo ],
49
49
  [ 'kaz', 'Kasachstan', 'KAZ', kz ],
50
50
  [ 'aut', 'Österreich', 'AUT', at ],
51
51
  [ 'blr', 'Weißrussland', 'BLR', by ],
@@ -0,0 +1,57 @@
1
+ # encoding: utf-8
2
+
3
+ ######################################
4
+ ## NFL Teams 2012
5
+
6
+
7
+ ## todo: add "official" three letter tags
8
+
9
+ teams = [
10
+ ['nyjets', 'New York Jets', 'AFC East'],
11
+ ['newengland', 'New England Patriots|New England', 'AFC East'],
12
+ ['buffalo', 'Buffalo Bills|Buffalo', 'AFC East'],
13
+ ['miami', 'Miami Dolphins|Miami', 'AFC East'],
14
+
15
+ ['', 'Baltimore Ravens', 'AFC North'],
16
+ ['', 'Cincinnati Bengals', 'AFC North'],
17
+ ['', 'Pittsburgh Steelers', 'AFC North'],
18
+ ['', 'Cleveland Browns', 'AFC North'],
19
+
20
+ ['', 'Houston Texans', 'AFC South'],
21
+ ['', 'Indianapolis Colts', 'AFC South'],
22
+ ['', 'Tennessee Titans', 'AFC South'],
23
+ ['', 'Jacksonville Jaguars', 'AFC South'],
24
+
25
+ ['sandiego', 'San Diego Chargers|San Diego', 'AFC West'],
26
+ ['denver', 'Denver Broncos|Denver', 'AFC West'],
27
+ ['oakland', 'Oakland Raiders|Oakland', 'AFC West'],
28
+ ['kansascity', 'Kansas City Chiefs|Kansas City', 'AFC West'],
29
+
30
+ ['', '', ''],
31
+ ['', '', ''],
32
+ ['', '', ''],
33
+ ['', '', ''],
34
+
35
+ ['', '', ''],
36
+ ['', '', ''],
37
+ ['', '', ''],
38
+ ['', '', ''],
39
+
40
+
41
+ ['', '', ''],
42
+ ['', '', ''],
43
+ ['', '', ''],
44
+ ['', '', ''],
45
+
46
+
47
+ ['', '', ''],
48
+ ['', '', ''],
49
+ ['', '', ''],
50
+ ['', '', '']]
51
+
52
+
53
+ us = Country.find_by_key!( 'us' )
54
+
55
+ Team.create_from_ary!( teams, club: true, country: us )
56
+
57
+ Prop.create!( key: 'db.nfl.teams.version', value: '1' )
@@ -206,6 +206,7 @@ class Reader
206
206
  if is_round?( line )
207
207
  puts "parsing round line: >#{line}<"
208
208
  pos = find_round_pos!( line )
209
+ puts " line: >#{line}<"
209
210
 
210
211
  ## NB: dummy/placeholder start_at, end_at date
211
212
  ## replace/patch after adding all games for round
@@ -237,7 +238,6 @@ class Reader
237
238
  @patch_rounds ||= {}
238
239
  @patch_rounds[ @round.id ] = @round.id
239
240
 
240
- puts " line: >#{line}<"
241
241
 
242
242
  else
243
243
  puts "parsing game (fixture) line: >#{line}<"
@@ -248,6 +248,8 @@ class Reader
248
248
  team1 = find_team1!( line )
249
249
  team2 = find_team2!( line )
250
250
 
251
+ puts " line: >#{line}<"
252
+
251
253
 
252
254
  ### todo: cache team lookups in hash?
253
255
 
@@ -286,8 +288,6 @@ class Reader
286
288
  puts game_attribs.to_json
287
289
 
288
290
  @game.update_attributes!( game_attribs )
289
-
290
- puts " line: >#{line}<"
291
291
  end
292
292
  end # oldlines.each
293
293
 
@@ -1,4 +1,4 @@
1
1
 
2
2
  module SportDB
3
- VERSION = '0.4.0'
3
+ VERSION = '0.4.1'
4
4
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sportdb
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 0
10
- version: 0.4.0
9
+ - 1
10
+ version: 0.4.1
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-10-16 00:00:00 Z
18
+ date: 2012-10-26 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: activerecord
@@ -70,6 +70,9 @@ extensions: []
70
70
 
71
71
  extra_rdoc_files:
72
72
  - Manifest.txt
73
+ - db/at/2012_13/bl.txt
74
+ - db/de/2012_13/bl.txt
75
+ - db/en/2012_13/pl.txt
73
76
  files:
74
77
  - History.markdown
75
78
  - Manifest.txt
@@ -79,6 +82,7 @@ files:
79
82
  - db/at/2011_12/bl.rb
80
83
  - db/at/2011_12/cup.rb
81
84
  - db/at/2012_13/bl.rb
85
+ - db/at/2012_13/bl.txt
82
86
  - db/at/2012_13/cup.rb
83
87
  - db/at/teams.rb
84
88
  - db/cl/2011_12/cl.rb
@@ -87,13 +91,18 @@ files:
87
91
  - db/cl/teams.rb
88
92
  - db/countries.rb
89
93
  - db/de/2012_13/bl.rb
94
+ - db/de/2012_13/bl.txt
95
+ - db/de/2012_13/bl_fixtures.rb
90
96
  - db/de/teams.rb
91
97
  - db/en/2012_13/pl.rb
98
+ - db/en/2012_13/pl.txt
99
+ - db/en/2012_13/pl_fixtures.rb
92
100
  - db/en/teams.rb
93
101
  - db/euro/2012.rb
94
102
  - db/euro/teams.rb
95
103
  - db/mx/apertura_2012.rb
96
104
  - db/mx/teams.rb
105
+ - db/nfl/teams.rb
97
106
  - db/nhl/teams.rb
98
107
  - db/ro/l1_2012_13.rb
99
108
  - db/ro/teams.rb