sportdb-parser 0.6.12 → 0.6.13
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/config/zones_en.txt +2 -0
- data/lib/sportdb/parser/lang.rb +29 -25
- 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: 4a2e9867bfc8e1dec97214c0d3c335fe0d3cdb0cf5835184081af1447d509e4a
|
4
|
+
data.tar.gz: 1b038a316ad0de74bc559972e59832bfe3af5530b6c0547a9b2eaca0ecbfefbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11b6cb434a959e39b8dd8a935b9bb0d973e9e47e647c1f19dbc1c536a013b982dc948ca62c2d7a9a661a7aeb276444cfbfb81c4975df30ece993076124fce7bd
|
7
|
+
data.tar.gz: b0487df7f949c28c0d4df23d040aeff4eb3247c01b088fe45b65aa6a29a3891781d24bd56d85e99cd1e0d31d82efe953c13f6c689301a9623a01ffa2bdbb45f0
|
data/CHANGELOG.md
CHANGED
data/config/zones_en.txt
CHANGED
data/lib/sportdb/parser/lang.rb
CHANGED
@@ -39,8 +39,8 @@ ROUND_RE = %r{^
|
|
39
39
|
##
|
40
40
|
### note - allow Group ("stand-alone") as "generic" round for now
|
41
41
|
## BUT do NOT allow Group 1, Group 2, Group A, Group B, etc.
|
42
|
-
(?: Group [ ] [
|
43
|
-
Group (?: [ ] phase|stage)? |
|
42
|
+
(?: Group [ ] [a-z0-9]+ [ ] Play-?offs? |
|
43
|
+
Group (?: [ ] (?: phase|stage))? |
|
44
44
|
League (?: [ ] phase)?
|
45
45
|
)
|
46
46
|
|
|
@@ -54,10 +54,13 @@ ROUND_RE = %r{^
|
|
54
54
|
)
|
55
55
|
[ ] [1-9][0-9]*
|
56
56
|
(?: ## note - add optional Matchday 1 of 2 or such
|
57
|
-
[ ] of [1-9][0-9]*
|
57
|
+
[ ] of [ ] [1-9][0-9]*
|
58
58
|
)?
|
59
59
|
)
|
60
60
|
|
|
61
|
+
(?: Round [ ] One
|
62
|
+
)
|
63
|
+
|
|
61
64
|
## starting with qual(ification)
|
62
65
|
## Qual. Round 1 / Qual. Round 2 / Qual. Round 3
|
63
66
|
## or
|
@@ -116,16 +119,28 @@ ROUND_RE = %r{^
|
|
116
119
|
|
|
117
120
|
# round32
|
118
121
|
(?: Round[ ]of[ ]32 |
|
119
|
-
Last[ ]32
|
122
|
+
Last[ ]32 |
|
123
|
+
16th[ ]finals |
|
124
|
+
1/16[ ]finals )
|
120
125
|
|
|
121
126
|
# round16
|
122
127
|
(?: Round[ ]of[ ]16 |
|
123
|
-
Last[ ]16
|
128
|
+
Last[ ]16 |
|
129
|
+
8th[ ]finals |
|
130
|
+
1/8[ ]finals )
|
124
131
|
|
|
132
|
+
# round8 aka quarterfinals
|
133
|
+
# note - allow quarter-finals/quarter finals/quarterfinals
|
134
|
+
(?: Round[ ]of[ ]8 |
|
135
|
+
Last[ ]8 |
|
136
|
+
1/4[ ]finals |
|
137
|
+
Quarter[ -]?finals? |
|
138
|
+
Quarters )
|
139
|
+
|
|
125
140
|
# fifthplace
|
126
141
|
(?:
|
127
142
|
(?: (Fifth|5th)[ -]place
|
128
|
-
(?: [ ] (?: match|play[ -]?off
|
143
|
+
(?: [ ] (?: match|final|play[ -]?off ))?
|
129
144
|
) |
|
130
145
|
(?: Match[ ]for[ ](?: fifth|5th )[ -]place )
|
131
146
|
)
|
@@ -133,33 +148,21 @@ ROUND_RE = %r{^
|
|
133
148
|
# thirdplace
|
134
149
|
(?:
|
135
150
|
(?: (Third|3rd)[ -]place
|
136
|
-
(?: [ ] (?: match|play[ -]?off
|
151
|
+
(?: [ ] (?: match|final|play[ -]?off ))?
|
137
152
|
) |
|
138
153
|
(?: Match[ ]for[ ](?: third|3rd )[ -]place )
|
139
154
|
)
|
140
155
|
|
|
141
|
-
#
|
142
|
-
(?:
|
143
|
-
## note - allow quarter-finals/quarter finals/quarterfinals
|
144
|
-
Quarter[ -]?finals? |
|
145
|
-
Quarters |
|
146
|
-
Last[ ]8 |
|
147
|
-
8th[ ]finals |
|
148
|
-
1/8[ ]finals ## check 1/8 finals is same as querter-finals?
|
149
|
-
)
|
150
|
-
|
|
151
|
-
# semifinals
|
156
|
+
# round4 aka semifinals
|
152
157
|
(?:
|
158
|
+
Round[ ]of[ ]4 |
|
159
|
+
Last[ ]4 |
|
153
160
|
Semi[ -]?finals? |
|
154
|
-
Semis
|
155
|
-
Last[ ]4 |
|
156
|
-
1/4[ ]finals ## check 1/4 finals is same as semi-finals?
|
157
|
-
)
|
161
|
+
Semis )
|
158
162
|
|
|
159
|
-
# final
|
163
|
+
# round2 aka final
|
160
164
|
Finals?
|
161
|
-
|
162
|
-
|
|
165
|
+
|
|
163
166
|
## add replays
|
164
167
|
## e.g. Final Replay
|
165
168
|
## Quarter-finals replays
|
@@ -271,6 +274,7 @@ LEG_RE = %r{^
|
|
271
274
|
# leg 1 of 2 / leg 2 of 2
|
272
275
|
# note - leg limited to ALWAY 1/2 of 2 for now - why? why not?
|
273
276
|
# for more use match 1/2/3 etc.
|
277
|
+
## allow leg of three (e.g. leg 1 of 3) - why? why not?
|
274
278
|
(?: leg [ ] [12]
|
275
279
|
(?: [ ] of [ ] 2)? )
|
276
280
|
|
|