sportdb-parser 0.6.16 → 0.6.17

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
  SHA256:
3
- metadata.gz: 3da9280d27bf1e4662eb10f9451679e4aace18b9a0e1bfa29dd1e7b6bcbdc5e5
4
- data.tar.gz: e6786f648848cd075ef3e0f6d8d7fda2d31743f989653c0fcf2312a33a223357
3
+ metadata.gz: 1ba31cc4284de6a4ea05615ad37a30546375c5e3218847a8f69c3c359074fb9c
4
+ data.tar.gz: 5b8c73196c6bd08a399c7687cd65f4e05f4c3a66580eaeecd6dbaad33837b822
5
5
  SHA512:
6
- metadata.gz: 04250d17d120c12dc0b3980ff971b02fa178e617f35af70651f86011d9f5d4cad1d81df84a1f5af97ab73cb9023cc6cb190b13c420af71f3bcb2af7df6a526f1
7
- data.tar.gz: 120486063a9a82891a63914654965b799aef774680695de8bda3bb52894399d0800b98efb852f87f672dbe303dc6c415b91a10a094989e94ddf3e319b3183cc9
6
+ metadata.gz: cf4bc5b5a112effc59895c405e3484224d4d94aadf4771fecff90458b01aa63b43703632fdada70df9ee906aa8e517b1736dbdb2de795ba53b3b8e05d6c1ba4c
7
+ data.tar.gz: 46b6a97cb0af77debec3bd58ee24bd12b1236680dc53ff76a50b725621961bb9aabdfc151d9379d01672ebbef2423c3ce4f4d948adc506789c846491a7f30f15
data/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- ### 0.6.16
1
+ ### 0.6.17
2
2
  ### 0.0.1 / 2024-07-12
3
3
 
4
4
  * Everything is new. First release.
@@ -69,10 +69,12 @@ MINUTE_RE = %r{
69
69
  # or others with first matching position
70
70
  # or if chars get eaten-up?
71
71
  # let us know if \G is required here or not
72
+ #
73
+ ## note - use \A (instead of ^) - \A strictly matches the start of the string.
72
74
 
73
75
 
74
76
  PLAYER_WITH_MINUTE_RE = %r{
75
- ^ ### note - MUST start line; leading spaces optional (eat-up)
77
+ \A ### note - MUST start line; leading spaces optional (eat-up)
76
78
  [ ]*
77
79
  (?: # optional open bracket ([) -- remove later
78
80
  (?<open_bracket> \[ )
@@ -143,8 +145,11 @@ PLAYER_WITH_MINUTE_RE = %r{
143
145
  }ix
144
146
 
145
147
 
148
+
149
+ ## note - use \A (instead of ^) - \A strictly matches the start of the string.
150
+
146
151
  PLAYER_WITH_SCORE_RE = %r{
147
- ^ ### note - MUST start line; leading spaces optional (eat-up)
152
+ \A ### note - MUST start line; leading spaces optional (eat-up)
148
153
  [ ]*
149
154
  (?<player_with_score>
150
155
  (?<score>
@@ -60,6 +60,10 @@ TEXT_RE = %r{
60
60
  1/ \d{1,2} [ ] \p{L}+
61
61
  |
62
62
  ## opt 4 - add another weirdo case
63
+ ## e.g. 's Gravenwezel-Schilde
64
+ '[s]
65
+ |
66
+ ## opt 5 - add another weirdo case
63
67
  ## e.g. 5.-8. Platz Playoffs - keep - why? why not?
64
68
  \d+\.-\d+\. [ ]? \p{L}+
65
69
  )
@@ -70,18 +74,27 @@ TEXT_RE = %r{
70
74
  ## AND switch to case-sensitive (via -i!!!)
71
75
  )
72
76
  | # only single spaces allowed inline!!!
73
- [-/]
77
+ [_/]
74
78
  )?
75
79
  (?:
76
- \p{L} |
80
+ \p{L}
81
+ |
77
82
  [&'°]
78
- |
83
+ |
84
+ (?: (?<! [ ]) ## todo - check regex - make sure lookbehind is always first/before!!
85
+ [-] ### allow e.g. Sport- if lookbehind is unicode letter or dot (.)
86
+ ### or U.N.A.M.-Pumas
87
+ ## (?<= [\p{L}.] )
88
+ ## try more flexible (use negative lookbehind - no space)
89
+ )
90
+ |
79
91
  (?:
80
92
  \d+
81
93
  (?!
82
- [0-9h'+-] | ## protected break on 12h / 12' / 1-1
83
- ## check usege for 3+4 - possible? where ? why?
84
- (?:[.:]\d) ## protected/exclude/break on 12.03 / 12:03
94
+ [0-9h'+] | ## protected break on 12h / 12' / 1-1
95
+ ## check usege for 3+4 - possible? where ? why?
96
+ (?:[.:-]\d) ## protected/exclude/break on 12.03 / 12:03 / 12-12
97
+ ## BUT allow Park21-Arena for example e.g. 21-A :-)
85
98
  )
86
99
  ## negative lookahead for numbers
87
100
  ## note - include digits itself!!!
@@ -199,7 +199,8 @@ PROP_GOAL_RE = Regexp.union(
199
199
 
200
200
  ####
201
201
  #
202
- ROUND_OUTLINE_RE = %r{ ^
202
+ ## note - use \A (instead of ^) - \A strictly matches the start of the string.
203
+ ROUND_OUTLINE_RE = %r{ \A
203
204
  [ ]* ## ignore leading spaces (if any)
204
205
  (?: »|>> )
205
206
  [ ]+
@@ -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 = 16
7
+ PATCH = 17
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.16
4
+ version: 0.6.17
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-09 00:00:00.000000000 Z
11
+ date: 2025-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocos