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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4eef9e220606c9f5c1642b1b6f2dbec9aa1ebe1f21b27c79e5f7d6d3f46808f0
4
- data.tar.gz: b6a3c80beec2d05fec8f5095ef312a7c203c42285b8335ee9c98302c3a17b7ce
3
+ metadata.gz: 15d56d22fbf3bfd0f2587ff63f2f3b33b5915ad8122569843f31b99ab21d5f1c
4
+ data.tar.gz: e52ee8e33aab078d5c131da9ecd043930a63d638c9e67480f91ea336e2159eb6
5
5
  SHA512:
6
- metadata.gz: e8df71833510a8d936b40ab02d49d2a1f16b6d94d2dbd2b8c94bc90fc960c2ee0fb29d5adf74d3645f30a620d8327d9c6ed078b869524503fb9641d5581a849d
7
- data.tar.gz: '098ed870e9c081485ac45f1cf3a3c697bbc922dd9f96f85ef046b1e1a8829bf07a6041761a10062cc47f28c9471c93bbb93a05f7bcf3c1e99228b438571cdad3'
6
+ metadata.gz: ff181881d6b90957a8ee865853458b81ae1f6ff3fbb7ae1a3b15d3397a9e94262a21ea9d74d54069fd1a2ca73727fc5dcc4ea407cbfd7ff8cc39c899d20751ec
7
+ data.tar.gz: 49ceaa1d080dcd95f7eba336487de96ad7c90a249192e864b822a2a2fd933f6b426c43912b7dcfb365a98be7b40417c395340d0d4fe4ea3250164cdc55170d3c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,4 @@
1
- ### 0.4.5
2
-
1
+ ### 0.5.0
3
2
  ### 0.0.1 / 2024-07-03
4
3
 
5
4
  * Everything is new. First release.
data/bin/fbdat CHANGED
@@ -191,16 +191,14 @@ end
191
191
 
192
192
 
193
193
  datasets = if opts[:file]
194
- read_datasets( opts[:file] )
194
+ read_leagueset( opts[:file] )
195
195
  else
196
- parse_datasets_args( args )
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 |dataset|
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
- seasons = case league_key
215
- when 'world' then [Season('2022')]
216
- when 'euro' then [Season('2024')]
217
- when 'br.1', 'copa.l' then [Season('2024')]
218
- else [Season('2024/25')]
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
- dataset[1] = seasons
218
+ seasons << season
221
219
  end
222
220
  end
223
221
 
@@ -1,8 +1,8 @@
1
1
 
2
2
  module FootballdataApi
3
3
  MAJOR = 0 ## todo: namespace inside version or something - why? why not??
4
- MINOR = 4
5
- PATCH = 5
4
+ MINOR = 5
5
+ PATCH = 0
6
6
  VERSION = [MAJOR,MINOR,PATCH].join('.')
7
7
 
8
8
  def self.version
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.5
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-10-07 00:00:00.000000000 Z
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.1'
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.1'
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.4.10
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