sportdb-quick 0.1.0 → 0.1.1
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/bin/fbt +3 -3
- data/lib/sportdb/quick/quick_league_outline_reader.rb +9 -0
- data/lib/sportdb/quick/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: 5ee93b658f2f6fce94a131931ea37908a2edbfa19a182ec20072447b57ffc847
|
4
|
+
data.tar.gz: f5fa5ab664d71ea9a2ab8c62e1bd30d42fa678e0b2a7564124623dc5d7cd2963
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0df0b970600ee24a88d09ddffec1caa8ef94cfa75561569638da954357cec2d97ffc7ea566f03e42ec814a5998c99da79f861c54a863a439f1778a3f0426ab0
|
7
|
+
data.tar.gz: 01e1ad205c4d271a68136784a17b8f1b7987bdfa5e9b4ba5f395b42f6b488a53747525ecd7bea1e2c188012219529d7611e7d35f49ec4e5e7d499cc791e4e80a
|
data/CHANGELOG.md
CHANGED
data/bin/fbt
CHANGED
@@ -39,19 +39,19 @@ require 'optparse'
|
|
39
39
|
|
40
40
|
parser.on( "--verbose", "--debug",
|
41
41
|
"turn on verbose / debug output (default: #{opts[:debug]})" ) do |debug|
|
42
|
-
opts[:debug] =
|
42
|
+
opts[:debug] = true
|
43
43
|
end
|
44
44
|
|
45
45
|
parser.on( "--metal",
|
46
46
|
"turn off typed parse tree; show to the metal tokens"+
|
47
47
|
" (default: #{opts[:metal]})" ) do |metal|
|
48
|
-
opts[:metal] =
|
48
|
+
opts[:metal] = true
|
49
49
|
end
|
50
50
|
|
51
51
|
parser.on( "--quick",
|
52
52
|
"use quick match reader; output matches in json"+
|
53
53
|
" (default: #{opts[:quick]})" ) do |quick|
|
54
|
-
opts[:quick] =
|
54
|
+
opts[:quick] = true
|
55
55
|
end
|
56
56
|
end
|
57
57
|
parser.parse!( args )
|
@@ -41,6 +41,15 @@ class QuickLeagueOutlineReader
|
|
41
41
|
pp heading
|
42
42
|
exit 1
|
43
43
|
end
|
44
|
+
elsif node[0] == :h2
|
45
|
+
## todo/check - make sure parsed h1 first
|
46
|
+
heading = node[1]
|
47
|
+
## reuse league, season from h1
|
48
|
+
secs << { league: secs[-1][:league],
|
49
|
+
season: secs[-1][:season],
|
50
|
+
stage: heading,
|
51
|
+
lines: []
|
52
|
+
}
|
44
53
|
elsif node[0] == :p ## paragraph with (text) lines
|
45
54
|
lines = node[1]
|
46
55
|
## note: skip lines if no heading seen
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sportdb-quick
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sportdb-parser
|