sportdb 1.8.14 → 1.8.15

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5cefa76f8ddfdb3d4e725aa3e91ba49691f8fc19
4
- data.tar.gz: 4b13723ae7ef89874187ca474216d944bfd7e765
3
+ metadata.gz: 4459c37fc4ca396f49c2c42a8a0dbb671c1eb7e9
4
+ data.tar.gz: de9e5e62f8de5fb9b45a78534e43368d5404b70f
5
5
  SHA512:
6
- metadata.gz: 3911dd470b9117eea519f09eab2e675e5e398ea360dbaa3adf2fdb6997d25926836538f7bd2f4637abd1bc2d000e72ff56ab716d1d834f8641bbab5a63326e92
7
- data.tar.gz: bef43a3710fe4d9d06221d386609244693333f02164bdbc673b4ab2ad2c61d4469c6fd4b64de2da93159300d652aa4137e1440682b474caf63d31ba7056e93b5
6
+ metadata.gz: ca0972bd7ecc76d8d2aaf7ba8b12690b8145b68c80b64c630ae446a47e622cba84bcae477e9b6bacd89b6ff856716bbd3db00a0a11ce8f472e8b72d1eadd736f
7
+ data.tar.gz: 7aa791e995880106aa051855db62fa92cb63bd57671f1af0f835a457055c11bf12ec9fa0b26ff61cf9f6ffc1655678d9dbe685660939d72db7a45dba7472c680
@@ -324,10 +324,26 @@ class GameReader
324
324
  scores = find_scores!( line )
325
325
 
326
326
 
327
- map_ground!( line )
328
- ground_key = find_ground!( line )
329
- ground = ground_key.nil? ? nil : Ground.find_by_key!( ground_key )
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
 
@@ -1,6 +1,6 @@
1
1
 
2
2
  module SportDb
3
- VERSION = '1.8.14'
3
+ VERSION = '1.8.15'
4
4
  end
5
5
 
6
6
 
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.14
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-18 00:00:00.000000000 Z
11
+ date: 2014-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: props