taric 1.0.0.pre.alpha → 1.0.0.pre.alpha.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/README.md +26 -0
- data/lib/taric/operation/champion_mastery.rb +5 -9
- data/lib/taric/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 981cc456351c4d6f30c0372d223586e55942ba41
|
4
|
+
data.tar.gz: b62a039a6417dc96364e40a66f8c793a93e8d655
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6439e1d4de2d7087d3d9f0b862d42fff113af5c27751003c3009a37a9ac1b0a59116151d7ed3e6af75bdf651f26b23025d5a11338dca0e6ad7b5c61d878514ea
|
7
|
+
data.tar.gz: 8117ebfc5c095c1066c9923b81623a07d6609d84aa80ebcb3d2125a74ffbdca0884a968ebe2193356ed2e70b1e631cbbc08217e4227bc0783f6534d7720701ae
|
data/README.md
CHANGED
@@ -34,6 +34,32 @@ Or install it yourself as:
|
|
34
34
|
|
35
35
|
$ gem install taric
|
36
36
|
|
37
|
+
## API Support
|
38
|
+
|
39
|
+
> "What did I see upon the mountain? Rocks. Lots of rocks."
|
40
|
+
|
41
|
+
- [x] ~~CHAMPION-V1.2~~ replaced by CHAMPION-V3
|
42
|
+
- [ ] CHAMPION-V3
|
43
|
+
- [x] ~~CHAMPIONMASTERY~~ replaced by CHAMPION-MASTERY-V3
|
44
|
+
- [x] CHAMPION-MASTERY-V3
|
45
|
+
- [x] ~~CURRENT-GAME-V1.0~~ replaced by SPECTATOR-V3
|
46
|
+
- [x] ~~FEATURED-GAMES-V1.0~~ replaced by SPECTATOR-V3
|
47
|
+
- [x] ~~GAME-V1.3~~ replaced by MATCH-V3
|
48
|
+
- [x] LEAGUE-V2.5
|
49
|
+
- [x] ~~LOL-STATIC-DATA-V1.2~~ replaced by STATIC-DATA-V3
|
50
|
+
- [x] ~~LOL-STATUS-V1.0~~ replaced by LOL-STATUS-V3
|
51
|
+
- [ ] LOL-STATUS-V3
|
52
|
+
- [ ] MASTERIES-V3
|
53
|
+
- [x] ~~MATCH-V2.2~~ replaced by MATCH-V3
|
54
|
+
- [x] ~~MATCHLIST-V2.2~~ replaced by MATCH-V3
|
55
|
+
- [x] ~~RUNES-MASTERIES-V1.4~~ replaced by RUNES-V3 AND MASTERIES-V3
|
56
|
+
- [ ] RUNES-V3
|
57
|
+
- [ ] SPECTATOR-V3
|
58
|
+
- [ ] STATIC-DATA-V3
|
59
|
+
- [x] ~~STATS-V1.3~~ no replacement
|
60
|
+
- [x] ~~SUMMONER-V1.4~~ replaced by SUMMONER-V3
|
61
|
+
- [x] SUMMONER-V3
|
62
|
+
|
37
63
|
## Configuration
|
38
64
|
|
39
65
|
> "With clarity."
|
@@ -4,17 +4,16 @@ module Taric
|
|
4
4
|
module ChampionMastery
|
5
5
|
include Taric::Operation::Base
|
6
6
|
|
7
|
-
BASE_MASTERY_URL = "https://{host}/
|
8
|
-
|
9
|
-
|
10
|
-
MASTERY_SCORE = EndpointTemplate.new(template_url: "#{BASE_MASTERY_URL}/{summonerId}
|
11
|
-
MASTERY_TOP_CHAMPIONS = EndpointTemplate.new(template_url: "#{BASE_MASTERY_URL}/{summonerId}/topchampions{?api_key,count}")
|
7
|
+
BASE_MASTERY_URL = "https://{host}/lol/champion-mastery/v3"
|
8
|
+
MASTERY_ALL_CHAMPIONS = EndpointTemplate.new(template_url: "#{BASE_MASTERY_URL}/champion-masteries/by-summoner/{summonerId}{?api_key}")
|
9
|
+
MASTERY_BY_CHAMPION_ID = EndpointTemplate.new(template_url: "#{BASE_MASTERY_URL}/champion-masteries/by-summoner/{summonerId}/by-champion/{championId}{?api_key}")
|
10
|
+
MASTERY_SCORE = EndpointTemplate.new(template_url: "#{BASE_MASTERY_URL}/scores/by-summoner/{summonerId}{?api_key}")
|
12
11
|
|
13
12
|
def champion_mastery(summoner_id: , champion_id:)
|
14
13
|
response_for MASTERY_BY_CHAMPION_ID, {summonerId: summoner_id, championId: champion_id}
|
15
14
|
end
|
16
15
|
|
17
|
-
def
|
16
|
+
def champion_masteries(summoner_id: )
|
18
17
|
response_for MASTERY_ALL_CHAMPIONS, {summonerId: summoner_id}
|
19
18
|
end
|
20
19
|
|
@@ -22,9 +21,6 @@ module Taric
|
|
22
21
|
response_for MASTERY_SCORE, {summonerId: summoner_id}
|
23
22
|
end
|
24
23
|
|
25
|
-
def top_champions(summoner_id: , count: 3)
|
26
|
-
response_for MASTERY_TOP_CHAMPIONS, {summonerId: summoner_id, count: count}
|
27
|
-
end
|
28
24
|
end
|
29
25
|
end
|
30
26
|
end
|
data/lib/taric/version.rb
CHANGED