sportdb-parser 0.6.5 → 0.6.7

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.
@@ -77,8 +77,9 @@ end
77
77
  Sub = Struct.new( :minute, :sub ) do
78
78
  def pretty_print( printer )
79
79
  buf = String.new
80
- buf << "(#{self.sub.pretty_inspect}"
81
- buf << " #{self.minute.to_s}" if self.minute
80
+ buf << "(" ## note - possibly recursive (thus, let minute go first/print first/upfront)
81
+ buf << "#{self.minute.to_s} " if self.minute
82
+ buf << "#{self.sub.pretty_inspect}"
82
83
  buf << ")"
83
84
  printer.text( buf )
84
85
  end
@@ -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
- MINUTE_NA_RE, ## note - add/allow not/available (n/a,na) minutes hack for now
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
@@ -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 = 5
7
+ PATCH = 7
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.5
4
+ version: 0.6.7
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-02-28 00:00:00.000000000 Z
11
+ date: 2025-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocos