fbtok 0.1.1 → 0.1.2
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/Rakefile +1 -1
- data/bin/fbx +2 -2
- data/lib/fbtok/opts.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efa16f747083c94f0a8fbb8df7ac3d1718ad2c204fca2008b711da35a7adf5ac
|
4
|
+
data.tar.gz: da8dfd82204875f23fc9efa236a1af79701e83047c5c3bf1fc34b4032371db51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29635412c9fb671cc254fa735dbf994289a961d02b92ca2480e80f4021d7f0d5b154f3b6d00c10cf50b1bce6f950ab624cbb1865d1273595a9401ad9c66a9ad4
|
7
|
+
data.tar.gz: b81ed7ecffc27725bef9dbb0f9b448eac302b649e89b7ac7da68c556fff4b14a4243dfe736145210b4cabc3a4b1b30d6633ab7a4d9fcd9f4e8082fc88522b275
|
data/CHANGELOG.md
CHANGED
data/Rakefile
CHANGED
data/bin/fbx
CHANGED
@@ -88,12 +88,12 @@ paths.each_with_index do |path,i|
|
|
88
88
|
## pp secs
|
89
89
|
|
90
90
|
secs.each_with_index do |sec,j| ## sec(tion)s
|
91
|
-
season = sec[:season]
|
91
|
+
season = Season.parse( sec[:season] ) ## convert (str) to season obj!!!
|
92
92
|
league = sec[:league]
|
93
93
|
stage = sec[:stage]
|
94
94
|
lines = sec[:lines]
|
95
95
|
|
96
|
-
puts " section #{j+1}/#{secs.size} - #{league
|
96
|
+
puts " section #{j+1}/#{secs.size} - #{league} #{season}, #{stage} - #{lines.size} line(s)"
|
97
97
|
|
98
98
|
next if opts[:outline]
|
99
99
|
|
data/lib/fbtok/opts.rb
CHANGED
@@ -18,11 +18,12 @@ class Opts
|
|
18
18
|
## note: if pattern includes directory add here
|
19
19
|
## (otherwise move to more "generic" datafile) - why? why not?
|
20
20
|
## update - note include/allow dot (.) too
|
21
|
+
## BUT NOT as first character!!! (e.g. exclude .confg.txt !!!)
|
21
22
|
## e.g. 2024-25/at.1.txt
|
22
23
|
## change to at_1 or uefa_cl or such - why? why not?
|
23
24
|
MATCH_RE = %r{ (?: ^|/ ) # beginning (^) or beginning of path (/)
|
24
25
|
#{SEASON}
|
25
|
-
/[a-z0-9_.-]
|
26
|
+
/[a-z0-9][a-z0-9_.-]*\.txt$ ## txt e.g /1-premierleague.txt
|
26
27
|
}x
|
27
28
|
|
28
29
|
|