sportdb 1.8.14 → 1.8.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sportdb/readers/game.rb +20 -4
- data/lib/sportdb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4459c37fc4ca396f49c2c42a8a0dbb671c1eb7e9
|
4
|
+
data.tar.gz: de9e5e62f8de5fb9b45a78534e43368d5404b70f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca0972bd7ecc76d8d2aaf7ba8b12690b8145b68c80b64c630ae446a47e622cba84bcae477e9b6bacd89b6ff856716bbd3db00a0a11ce8f472e8b72d1eadd736f
|
7
|
+
data.tar.gz: 7aa791e995880106aa051855db62fa92cb63bd57671f1af0f835a457055c11bf12ec9fa0b26ff61cf9f6ffc1655678d9dbe685660939d72db7a45dba7472c680
|
data/lib/sportdb/readers/game.rb
CHANGED
@@ -324,10 +324,26 @@ class GameReader
|
|
324
324
|
scores = find_scores!( line )
|
325
325
|
|
326
326
|
|
327
|
-
|
328
|
-
|
329
|
-
ground
|
330
|
-
|
327
|
+
####
|
328
|
+
# note:
|
329
|
+
# only map ground if we got any grounds (setup/configured in event)
|
330
|
+
|
331
|
+
if @event.grounds.count > 0
|
332
|
+
|
333
|
+
## todo/check: use @known_grounds for check?? why? why not??
|
334
|
+
## use in @known_grounds = TextUtils.build_title_table_for( @event.grounds )
|
335
|
+
|
336
|
+
##
|
337
|
+
# fix: mark mapped title w/ type (ground-) or such!! - too avoid fallthrough match
|
338
|
+
# e.g. three teams match - but only two get mapped, third team gets match for ground
|
339
|
+
# e.g Somalia v Djibouti @ Djibouti
|
340
|
+
map_ground!( line )
|
341
|
+
ground_key = find_ground!( line )
|
342
|
+
ground = ground_key.nil? ? nil : Ground.find_by_key!( ground_key )
|
343
|
+
else
|
344
|
+
# no grounds configured; always nil
|
345
|
+
ground = nil
|
346
|
+
end
|
331
347
|
|
332
348
|
logger.debug " line: >#{line}<"
|
333
349
|
|
data/lib/sportdb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sportdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: props
|