sportdb-formats 2.1.3 → 2.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/lib/sportdb/formats/quick_match_linter.rb +8 -8
- data/lib/sportdb/formats/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41f3c7bf36eb0670146a99afc2b5d64bc08908519a5ec36814c2418af4e32a63
|
4
|
+
data.tar.gz: 3261bec4d966da877da33978a3feb6c2433ddc9cbe26ed7ecbd7b3080dd20a1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81090e3dd2909aaf7655f61d51447a455bb71ff93f27f958934ba0c12a7ca2ca1eb6ee913756921762258111c953ce5fdec7ee62c71123fcae4f10c800b36375
|
7
|
+
data.tar.gz: 70fec4a289b64373025385516ab608acedc806f0cf9ced07c90db698a0a2e5a4c3bbb519f1c48356058705d10a43aa8ff634dc92f737090c855c6db8152aeba2
|
data/CHANGELOG.md
CHANGED
@@ -58,14 +58,12 @@ class QuickMatchLinter
|
|
58
58
|
# and seasons
|
59
59
|
# for now merge stage into matches
|
60
60
|
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
stage = sec[:stage]
|
68
|
-
lines = sec[:lines]
|
61
|
+
outline = QuickLeagueOutline.parse( @txt )
|
62
|
+
outline.each_sec do |sec| ## sec(tion)s
|
63
|
+
season = Season.parse( sec.season ) ## convert (str) to season obj!!!
|
64
|
+
league = sec.league
|
65
|
+
stage = sec.stage
|
66
|
+
lines = sec.lines
|
69
67
|
|
70
68
|
start = if season.year?
|
71
69
|
Date.new( season.start_year, 1, 1 )
|
@@ -108,6 +106,8 @@ class QuickMatchLinter
|
|
108
106
|
end
|
109
107
|
end
|
110
108
|
|
109
|
+
### note - skip section if no lines !!!!!
|
110
|
+
next if lines.empty? ## or use lines.size == 0
|
111
111
|
|
112
112
|
|
113
113
|
parser = MatchParser.new( lines,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sportdb-formats
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.4
|
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-01-
|
11
|
+
date: 2025-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sportdb-search
|