sportdb-quick 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/lib/sportdb/quick/match_parser.rb +9 -7
- data/lib/sportdb/quick/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a1f7a6531aba4ac7f0223ee696b347f90d422d6297ee04e03d4839f2e3a1ba0
|
4
|
+
data.tar.gz: 3d2e7b520183f40149856467646af58a17d39232d3bb0f78c285e7c220af7ece
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 071ffe16ce450fccdeb4a6fcbcc4749a2ffec2e22a95ca0b9ae8d80d981741bd6f960b0715a61aee23452dd699bd5043e46ab197fcc9a070e379e13a073f4508
|
7
|
+
data.tar.gz: c765504847f2240b14068805e3965e2f186d38f78674f631d95cacd286c64b08007b4316043951979538bf6c1a7f7e25cf14f48e96fcd33fafbae6d124216c14
|
data/CHANGELOG.md
CHANGED
@@ -566,12 +566,13 @@ class GoalStruct
|
|
566
566
|
logger.debug( "parse match: >#{nodes}<" )
|
567
567
|
|
568
568
|
## collect (possible) nodes by type
|
569
|
-
num
|
570
|
-
date
|
571
|
-
time
|
572
|
-
teams
|
573
|
-
score
|
574
|
-
more
|
569
|
+
num = nil
|
570
|
+
date = nil
|
571
|
+
time = nil
|
572
|
+
teams = []
|
573
|
+
score = nil
|
574
|
+
more = []
|
575
|
+
status = nil
|
575
576
|
|
576
577
|
while !nodes.empty?
|
577
578
|
node = nodes.shift
|
@@ -608,6 +609,8 @@ class GoalStruct
|
|
608
609
|
|
609
610
|
score = Score.new( *values )
|
610
611
|
## pp score
|
612
|
+
elsif node_type == :status # e.g. awarded, canceled, postponed, etc.
|
613
|
+
status = node[1]
|
611
614
|
elsif node_type == :vs
|
612
615
|
## skip; do nothing
|
613
616
|
##
|
@@ -711,7 +714,6 @@ class GoalStruct
|
|
711
714
|
time_str = time if date && time
|
712
715
|
|
713
716
|
|
714
|
-
status = nil
|
715
717
|
ground = nil
|
716
718
|
|
717
719
|
@matches << Import::Match.new( num: num,
|