fbtok 0.3.2 → 0.3.3
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 +4 -4
- data/CHANGELOG.md +1 -1
- data/Rakefile +1 -1
- data/lib/fbtok/opts.rb +18 -4
- 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: 90e2b9d1bb70a32d8ce47c920d411de8f45a99f7d8c9661d3f144f6087c4bb63
|
4
|
+
data.tar.gz: 2878f46e029072dc5170a0153afc3f791068f83535139bc3e93fbdabfacd85a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85f951fecd347f7af50ce5f43bb8fcc6afccb57a27180980e2401f51d91f7607f11aeaf0d713f8808404e99d49f38b4a8fa28d3982c5ee73f3772ea320e5ee80
|
7
|
+
data.tar.gz: d0ace4aab05240e76143ea5d83acafdf8eba3690ec22ecdbc108a15bf010a1386c8b71c9bc9e86d6a6728909141d1d0f36b3d97bab1292eb0c3bf57f4438930f
|
data/CHANGELOG.md
CHANGED
data/Rakefile
CHANGED
data/lib/fbtok/opts.rb
CHANGED
@@ -13,7 +13,7 @@ class Opts
|
|
13
13
|
|
14
14
|
SEASON_RE = %r{ (?:
|
15
15
|
\d{4}-\d{2}
|
16
|
-
| \d{4}(--[a-z0-9_-]+)?
|
16
|
+
| \d{4} (?: --[a-z0-9_-]+ )? ## todo/fix - allow "extension" to 2024-25 too - why?
|
17
17
|
)
|
18
18
|
}x
|
19
19
|
SEASON = SEASON_RE.source ## "inline" helper for embedding in other regexes - keep? why? why not?
|
@@ -25,12 +25,26 @@ class Opts
|
|
25
25
|
## BUT NOT as first character!!! (e.g. exclude .confg.txt !!!)
|
26
26
|
## e.g. 2024-25/at.1.txt
|
27
27
|
## change to at_1 or uefa_cl or such - why? why not?
|
28
|
-
MATCH_RE = %r{ (?:
|
28
|
+
MATCH_RE = %r{ (?: ## "classic" variant i) with season folder
|
29
|
+
(?: ^|/ ) # beginning (^) or beginning of path (/)
|
29
30
|
#{SEASON}
|
30
|
-
|
31
|
+
/
|
32
|
+
[a-z0-9][a-z0-9_.-]*\.txt$ ## txt e.g /1-premierleague.txt
|
33
|
+
)
|
34
|
+
|
|
35
|
+
(?: ## "compact" variant ii) with season in filename
|
36
|
+
(?: ^|/ ) # beginning (^) or beginning of path (/)
|
37
|
+
(?: \d{4}-\d{2}
|
38
|
+
|
|
39
|
+
\d{4}
|
40
|
+
)
|
41
|
+
_ ## allow more than one underscore - why? why not?
|
42
|
+
[a-z0-9][a-z0-9_.-]*\.txt$
|
43
|
+
)
|
31
44
|
}x
|
32
45
|
|
33
|
-
|
46
|
+
### add support for matchdatafile with season NOT in directory
|
47
|
+
## but starting filename e.g. 2024_friendlies.txt or 2024-25_bundesliga.txt
|
34
48
|
|
35
49
|
|
36
50
|
def self._find( path )
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fbtok
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
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-
|
11
|
+
date: 2025-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sportdb-parser
|