sportdb-parser 0.6.5 → 0.6.6
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 +4 -4
- data/CHANGELOG.md +1 -1
- data/lib/sportdb/parser/lexer.rb +5 -5
- data/lib/sportdb/parser/token.rb +2 -1
- data/lib/sportdb/parser/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: 150ee98d02311f0436226fb662d1cde426c6f91a88e6298257252c58e827cb17
|
4
|
+
data.tar.gz: e06fb067d2ddc317fe4f7ba033b512f378d6fa32da58756238e30d617653755e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95c28de0c34ab52e3ca0f49fdd6ec5634dbaee2cf35e6a3c221d6f38f0d463d0e7e381151cd7572a88026a508f2991e822bf3882c46b7943903bc73a1d7477e6
|
7
|
+
data.tar.gz: 3a5fd4e4dbb4731201f152732791afb544fc05ee7136a8021e98faf7fe6a7fcedd0b22699848e22e9a39fa74dab2a9686f908cde74c8cc50b2e80e2fc491ebd1
|
data/CHANGELOG.md
CHANGED
data/lib/sportdb/parser/lexer.rb
CHANGED
@@ -707,6 +707,11 @@ def _tokenize_line( line )
|
|
707
707
|
end
|
708
708
|
|
709
709
|
|
710
|
+
if @re == GOAL_RE ### ALWAYS switch back to top level mode
|
711
|
+
puts " LEAVE GOAL_RE MODE, BACK TO TOP_LEVEL/RE" if debug?
|
712
|
+
@re = RE
|
713
|
+
end
|
714
|
+
|
710
715
|
##
|
711
716
|
## if in prop mode continue if last token is [,-]
|
712
717
|
## otherwise change back to "standard" mode
|
@@ -725,11 +730,6 @@ def _tokenize_line( line )
|
|
725
730
|
end
|
726
731
|
end
|
727
732
|
|
728
|
-
|
729
|
-
if @re == GOAL_RE ### ALWAYS switch back to top level mode
|
730
|
-
puts " LEAVE GOAL_RE MODE, BACK TO TOP_LEVEL/RE" if debug?
|
731
|
-
@re = RE
|
732
|
-
end
|
733
733
|
|
734
734
|
[tokens,errors]
|
735
735
|
end
|
data/lib/sportdb/parser/token.rb
CHANGED
@@ -171,10 +171,11 @@ GOAL_RE = Regexp.union(
|
|
171
171
|
PROP_NAME_RE, ## note - (re)use prop name for now for (player) name
|
172
172
|
)
|
173
173
|
|
174
|
+
## note - leave out n/a minute in goals - make minutes optional!!!
|
174
175
|
PROP_GOAL_RE = Regexp.union(
|
175
176
|
GOAL_BASICS_RE,
|
176
177
|
MINUTE_RE,
|
177
|
-
|
178
|
+
## MINUTE_NA_RE, ## note - add/allow not/available (n/a,na) minutes hack for now
|
178
179
|
GOAL_OG_RE, GOAL_PEN_RE,
|
179
180
|
SCORE_RE,
|
180
181
|
PROP_NAME_RE, ## note - (re)use prop name for now for (player) name
|