rito 0.3.0 → 0.3.1
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 +19 -0
- data/README.md +2 -1
- data/lib/rito/endpoints/lor.rb +0 -10
- data/lib/rito/endpoints/riftbound.rb +15 -0
- data/lib/rito/endpoints/tft.rb +15 -7
- data/lib/rito/endpoints/valorant.rb +8 -3
- data/lib/rito/routing.rb +2 -1
- data/lib/rito/version.rb +1 -1
- data/lib/rito.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6b7b56e2ebcc806ea4e657c2eaf6de65fbf5e2abcb6447a2543c9c7f88fb053f
|
|
4
|
+
data.tar.gz: a33ab0b69073f9864d843c857b1dd1ff47664f1ea682e75f4feaa9171f00229c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 423b3499635cb2c42180112e470ea0dad001b38c91d35ea28cc33ef58e59ad513abb4751f4c5b39a226ed49041fff64affc5b98e689aec2cc9a60aaad4225c8e
|
|
7
|
+
data.tar.gz: 89c6a06c5aabad571775d23faf15dc5c316ec0cf8e8d67b3f294217fd4249c337867e833524a0953002d34b45a93948b65c175184a6c09e108895681c8cfe18b
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.1 (2026-09-05)
|
|
4
|
+
|
|
5
|
+
Fixed endpoint diffs against the current riotapi-schema (last generated
|
|
6
|
+
2026-08-05):
|
|
7
|
+
|
|
8
|
+
- **val-console-match-v1 paths were wrong** (`/val/console/match/v1/...` →
|
|
9
|
+
`/val/match/console/v1/...`) — every console match call would 404.
|
|
10
|
+
The matchlist now sends the required `platformType` query param
|
|
11
|
+
(`ids_by_puuid` gained a required `platform_type:` keyword) and
|
|
12
|
+
`recent_by_queue` was added (GET recent-matches/by-queue).
|
|
13
|
+
- TFT match `ids_by_puuid` gained `start_time:` / `end_time:` params.
|
|
14
|
+
- TFT league `challenger` / `grandmaster` / `master` gained an optional
|
|
15
|
+
`queue:` param.
|
|
16
|
+
- `apac` is now a valid regional (lor-match-v1).
|
|
17
|
+
- The Riftbound endpoint class moved out of the LoR file into its own
|
|
18
|
+
`endpoints/riftbound.rb` (no API change).
|
|
19
|
+
- CI: GitHub releases now use the tagged version's CHANGELOG section as
|
|
20
|
+
the release body instead of auto-generated notes.
|
|
21
|
+
|
|
3
22
|
## 0.3.0 (2026-09-05)
|
|
4
23
|
|
|
5
24
|
Aligned the endpoint surface with the current Riot API reference
|
data/README.md
CHANGED
|
@@ -242,7 +242,8 @@ Note: VALORANT uses its own platform routing values (`na, eu, ap, kr,
|
|
|
242
242
|
latam, br`; console: `na, eu, ap, br, latam`) — the client validates
|
|
243
243
|
against the right set per product. `esports` is a valid platform for
|
|
244
244
|
VALORANT content/match and a valid regional for tft-match-v1 (with
|
|
245
|
-
`esportseu`)
|
|
245
|
+
`esportseu`); `apac` is a valid regional for lor-match-v1. The
|
|
246
|
+
tournament endpoints only exist on the `americas`
|
|
246
247
|
platform — pass `region: :na1` or `:americas`.
|
|
247
248
|
|
|
248
249
|
## Testing your own app
|
data/lib/rito/endpoints/lor.rb
CHANGED
|
@@ -54,16 +54,6 @@ module Rito
|
|
|
54
54
|
end
|
|
55
55
|
end
|
|
56
56
|
end
|
|
57
|
-
|
|
58
|
-
class Riftbound < Base
|
|
59
|
-
ROUTING = :regional
|
|
60
|
-
|
|
61
|
-
def contents(locale: nil, region: nil)
|
|
62
|
-
params = {}
|
|
63
|
-
params['locale'] = locale if locale
|
|
64
|
-
get('/riftbound/content/v1/contents', region, params: params)
|
|
65
|
-
end
|
|
66
|
-
end
|
|
67
57
|
end
|
|
68
58
|
|
|
69
59
|
module Lor
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Rito
|
|
4
|
+
module Endpoints
|
|
5
|
+
class Riftbound < Base
|
|
6
|
+
ROUTING = :regional
|
|
7
|
+
|
|
8
|
+
def contents(locale: nil, region: nil)
|
|
9
|
+
params = {}
|
|
10
|
+
params['locale'] = locale if locale
|
|
11
|
+
get('/riftbound/content/v1/contents', region, params: params)
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
data/lib/rito/endpoints/tft.rb
CHANGED
|
@@ -31,16 +31,22 @@ module Rito
|
|
|
31
31
|
get("/tft/league/v1/entries/#{escape(tier)}/#{escape(division)}", region, params: params)
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
-
def challenger(region: nil)
|
|
35
|
-
|
|
34
|
+
def challenger(queue: nil, region: nil)
|
|
35
|
+
params = {}
|
|
36
|
+
params['queue'] = queue if queue
|
|
37
|
+
get('/tft/league/v1/challenger', region, params: params)
|
|
36
38
|
end
|
|
37
39
|
|
|
38
|
-
def grandmaster(region: nil)
|
|
39
|
-
|
|
40
|
+
def grandmaster(queue: nil, region: nil)
|
|
41
|
+
params = {}
|
|
42
|
+
params['queue'] = queue if queue
|
|
43
|
+
get('/tft/league/v1/grandmaster', region, params: params)
|
|
40
44
|
end
|
|
41
45
|
|
|
42
|
-
def master(region: nil)
|
|
43
|
-
|
|
46
|
+
def master(queue: nil, region: nil)
|
|
47
|
+
params = {}
|
|
48
|
+
params['queue'] = queue if queue
|
|
49
|
+
get('/tft/league/v1/master', region, params: params)
|
|
44
50
|
end
|
|
45
51
|
|
|
46
52
|
def rated_ladder_top(queue, region: nil)
|
|
@@ -51,10 +57,12 @@ module Rito
|
|
|
51
57
|
class MatchV1 < Base
|
|
52
58
|
ROUTING = :regional
|
|
53
59
|
|
|
54
|
-
def ids_by_puuid(puuid, count: nil, start: nil, region: nil)
|
|
60
|
+
def ids_by_puuid(puuid, count: nil, start: nil, start_time: nil, end_time: nil, region: nil)
|
|
55
61
|
params = {}
|
|
56
62
|
params['count'] = count if count
|
|
57
63
|
params['start'] = start if start
|
|
64
|
+
params['startTime'] = start_time if start_time
|
|
65
|
+
params['endTime'] = end_time if end_time
|
|
58
66
|
get("/tft/match/v1/matches/by-puuid/#{escape(puuid)}/ids", region, params: params)
|
|
59
67
|
end
|
|
60
68
|
|
|
@@ -33,11 +33,16 @@ module Rito
|
|
|
33
33
|
ROUTING = :valorant_console_platform
|
|
34
34
|
|
|
35
35
|
def by_id(match_id, region: nil)
|
|
36
|
-
get("/val/console/
|
|
36
|
+
get("/val/match/console/v1/matches/#{escape(match_id)}", region)
|
|
37
37
|
end
|
|
38
38
|
|
|
39
|
-
def ids_by_puuid(puuid, region: nil)
|
|
40
|
-
get("/val/console/
|
|
39
|
+
def ids_by_puuid(puuid, platform_type:, region: nil)
|
|
40
|
+
get("/val/match/console/v1/matchlists/by-puuid/#{escape(puuid)}", region,
|
|
41
|
+
params: { 'platformType' => platform_type })
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
def recent_by_queue(queue, region: nil)
|
|
45
|
+
get("/val/match/console/v1/recent-matches/by-queue/#{escape(queue)}", region)
|
|
41
46
|
end
|
|
42
47
|
end
|
|
43
48
|
|
data/lib/rito/routing.rb
CHANGED
|
@@ -5,7 +5,8 @@ module Rito
|
|
|
5
5
|
PLATFORMS = %w[
|
|
6
6
|
br1 eun1 euw1 jp1 kr la1 la2 me1 na1 oc1 pbe1 ru sg2 tr1 tw2 vn2
|
|
7
7
|
].freeze
|
|
8
|
-
|
|
8
|
+
# esports/esportseu are accepted by tft-match-v1; apac by lor-match-v1.
|
|
9
|
+
REGIONALS = %w[americas apac asia esports esportseu europe sea].freeze
|
|
9
10
|
|
|
10
11
|
CLUSTERS = {
|
|
11
12
|
'americas' => %w[na1 br1 la1 la2],
|
data/lib/rito/version.rb
CHANGED
data/lib/rito.rb
CHANGED
|
@@ -46,6 +46,7 @@ require_relative 'rito/endpoints/lol/tournament_v5'
|
|
|
46
46
|
require_relative 'rito/endpoints/tft'
|
|
47
47
|
require_relative 'rito/endpoints/valorant'
|
|
48
48
|
require_relative 'rito/endpoints/lor'
|
|
49
|
+
require_relative 'rito/endpoints/riftbound'
|
|
49
50
|
require_relative 'rito/version'
|
|
50
51
|
|
|
51
52
|
module Rito
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rito
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- kodbilenadam
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-09-
|
|
11
|
+
date: 2026-09-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -65,6 +65,7 @@ files:
|
|
|
65
65
|
- lib/rito/endpoints/lol/summoner_v4.rb
|
|
66
66
|
- lib/rito/endpoints/lol/tournament_v5.rb
|
|
67
67
|
- lib/rito/endpoints/lor.rb
|
|
68
|
+
- lib/rito/endpoints/riftbound.rb
|
|
68
69
|
- lib/rito/endpoints/tft.rb
|
|
69
70
|
- lib/rito/endpoints/valorant.rb
|
|
70
71
|
- lib/rito/errors.rb
|