sportdb-parser 0.6.13 → 0.6.14

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.
@@ -168,6 +168,13 @@ RoundHeader = Struct.new( :names, :group ) do
168
168
  end
169
169
 
170
170
 
171
+ RoundOutline = Struct.new( :outline ) do
172
+ def pretty_print( printer )
173
+ printer.text( "<RoundOutline #{self.outline}>" )
174
+ end
175
+ end
176
+
177
+
171
178
  MatchLine = Struct.new( :ord, :date, :time, :wday,
172
179
  :team1, :team2,
173
180
  :score, :score_note,
@@ -152,7 +152,7 @@ GEO_BASICS_RE = %r{
152
152
  (?<spaces> [ ]{2,}) |
153
153
  (?<space> [ ])
154
154
  |
155
- (?<sym> [,\[] )
155
+ (?<sym> [,›>\[] )
156
156
  }ix
157
157
 
158
158
 
@@ -197,5 +197,22 @@ PROP_GOAL_RE = Regexp.union(
197
197
  )
198
198
 
199
199
 
200
+ ####
201
+ #
202
+ ROUND_OUTLINE_RE = %r{ ^
203
+ [ ]* ## ignore leading spaces (if any)
204
+ (?: »|>> )
205
+ [ ]+
206
+ (?<round_outline>
207
+ ## must start with letter - why? why not?
208
+ ### 1st round
209
+ ## allow numbers e.g. Group A - 1
210
+ .+? ## use non-greedy
211
+ )
212
+ [ ]* ## ignore trailing spaces (if any)
213
+ $
214
+ }ix
215
+
216
+
200
217
  end # class Lexer
201
218
  end # module SportDb
@@ -4,7 +4,7 @@ module SportDb
4
4
  module Parser
5
5
  MAJOR = 0 ## todo: namespace inside version or something - why? why not??
6
6
  MINOR = 6
7
- PATCH = 13
7
+ PATCH = 14
8
8
  VERSION = [MAJOR,MINOR,PATCH].join('.')
9
9
 
10
10
  def self.version
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sportdb-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.13
4
+ version: 0.6.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gerald Bauer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-03-05 00:00:00.000000000 Z
11
+ date: 2025-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocos