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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +1 -1
  3. data/Rakefile +1 -1
  4. data/lib/fbtok/opts.rb +18 -4
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 15089da91cb8cb9ce5f6905c3714e52758fcf4254c26f978ef1a64ac053caf9d
4
- data.tar.gz: 13edb307d1fcbc9b0e30ff80f1764623c5f4a1cc17ef225e61d96e071615bcc6
3
+ metadata.gz: 90e2b9d1bb70a32d8ce47c920d411de8f45a99f7d8c9661d3f144f6087c4bb63
4
+ data.tar.gz: 2878f46e029072dc5170a0153afc3f791068f83535139bc3e93fbdabfacd85a7
5
5
  SHA512:
6
- metadata.gz: 2d56318a4f9895dd71b8c6309ba131e2a310e0bc5d799bfe646f67220138ca1351bbde05ee5725bd28676988ccdbca009f0868b8de6f0e9a2ea5923743a2a32f
7
- data.tar.gz: a28531c219b2ccf4cd1ee76129dcb8564433b1b3c2bdd1fd439ab44a4be2d04541cb8436cc9daab15c3010b22f590179556acfed1a2d2c8b23243f5156220e01
6
+ metadata.gz: 85f951fecd347f7af50ce5f43bb8fcc6afccb57a27180980e2401f51d91f7607f11aeaf0d713f8808404e99d49f38b4a8fa28d3982c5ee73f3772ea320e5ee80
7
+ data.tar.gz: d0ace4aab05240e76143ea5d83acafdf8eba3690ec22ecdbc108a15bf010a1386c8b71c9bc9e86d6a6728909141d1d0f36b3d97bab1292eb0c3bf57f4438930f
data/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- ### 0.3.2
1
+ ### 0.3.3
2
2
  ### 0.0.1 / 2025-01-02
3
3
 
4
4
  * Everything is new. First release.
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'hoe'
2
2
 
3
3
 
4
4
  Hoe.spec 'fbtok' do
5
- self.version = '0.3.2'
5
+ self.version = '0.3.3'
6
6
 
7
7
  self.summary = "fbtok - football.txt lint tools incl. tokenizer, parser & more"
8
8
  self.description = summary
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{ (?: ^|/ ) # beginning (^) or beginning of path (/)
28
+ MATCH_RE = %r{ (?: ## "classic" variant i) with season folder
29
+ (?: ^|/ ) # beginning (^) or beginning of path (/)
29
30
  #{SEASON}
30
- /[a-z0-9][a-z0-9_.-]*\.txt$ ## txt e.g /1-premierleague.txt
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.2
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-01-29 00:00:00.000000000 Z
11
+ date: 2025-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sportdb-parser