footballdata-api 0.4.5 → 0.5.0
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 -2
- data/bin/fbdat +9 -11
- data/lib/footballdata/version.rb +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15d56d22fbf3bfd0f2587ff63f2f3b33b5915ad8122569843f31b99ab21d5f1c
|
4
|
+
data.tar.gz: e52ee8e33aab078d5c131da9ecd043930a63d638c9e67480f91ea336e2159eb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff181881d6b90957a8ee865853458b81ae1f6ff3fbb7ae1a3b15d3397a9e94262a21ea9d74d54069fd1a2ca73727fc5dcc4ea407cbfd7ff8cc39c899d20751ec
|
7
|
+
data.tar.gz: 49ceaa1d080dcd95f7eba336487de96ad7c90a249192e864b822a2a2fd933f6b426c43912b7dcfb365a98be7b40417c395340d0d4fe4ea3250164cdc55170d3c
|
data/CHANGELOG.md
CHANGED
data/bin/fbdat
CHANGED
@@ -191,16 +191,14 @@ end
|
|
191
191
|
|
192
192
|
|
193
193
|
datasets = if opts[:file]
|
194
|
-
|
194
|
+
read_leagueset( opts[:file] )
|
195
195
|
else
|
196
|
-
|
196
|
+
parse_leagueset_args( args )
|
197
197
|
end
|
198
198
|
|
199
199
|
|
200
200
|
## step 0 - validate and fill-up seasons etc.
|
201
|
-
datasets.each do |
|
202
|
-
league_key, seasons = dataset
|
203
|
-
|
201
|
+
datasets.each do |league_key, seasons|
|
204
202
|
## todo - find a better name
|
205
203
|
## use internal_league_code or such - why? why not?
|
206
204
|
### convenience helpers - lets you use eng.1, euro, etc.
|
@@ -211,13 +209,13 @@ datasets.each do |dataset|
|
|
211
209
|
## might be 2024/25 or 2024 or
|
212
210
|
# for world cup 2022 or such
|
213
211
|
if seasons.empty?
|
214
|
-
|
215
|
-
when 'world' then
|
216
|
-
when 'euro' then
|
217
|
-
when 'br.1', 'copa.l' then
|
218
|
-
else
|
212
|
+
season = case league_key
|
213
|
+
when 'world' then Season('2022')
|
214
|
+
when 'euro' then Season('2024')
|
215
|
+
when 'br.1', 'copa.l' then Season('2024')
|
216
|
+
else Season('2024/25')
|
219
217
|
end
|
220
|
-
|
218
|
+
seasons << season
|
221
219
|
end
|
222
220
|
end
|
223
221
|
|
data/lib/footballdata/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: footballdata-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
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-
|
11
|
+
date: 2024-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: football-timezones
|
@@ -78,14 +78,14 @@ dependencies:
|
|
78
78
|
requirements:
|
79
79
|
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: '4.
|
81
|
+
version: '4.2'
|
82
82
|
type: :development
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version: '4.
|
88
|
+
version: '4.2'
|
89
89
|
description: footballdata-api - get football data via Daniel Freitag's football-data.org
|
90
90
|
api v4
|
91
91
|
email: gerald.bauer@gmail.com
|
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
134
|
- !ruby/object:Gem::Version
|
135
135
|
version: '0'
|
136
136
|
requirements: []
|
137
|
-
rubygems_version: 3.
|
137
|
+
rubygems_version: 3.5.22
|
138
138
|
signing_key:
|
139
139
|
specification_version: 4
|
140
140
|
summary: footballdata-api - get football data via Daniel Freitag's football-data.org
|