taric 1.0.0.pre.alpha → 1.0.0.pre.alpha.1

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
  SHA1:
3
- metadata.gz: 225a33ae7c4795ef4821a3d6c5e2a5aed7094408
4
- data.tar.gz: 7e3ce24fe918ae29bdd34bfa8c330bef08481e53
3
+ metadata.gz: 981cc456351c4d6f30c0372d223586e55942ba41
4
+ data.tar.gz: b62a039a6417dc96364e40a66f8c793a93e8d655
5
5
  SHA512:
6
- metadata.gz: ceea3e9902d26b049c932424262bdcf04d267e434e36488916a22df4777ceebd26dd7cc5998dd0b27f01abd255777491fe20486304692c1d59adb55df6d8e127
7
- data.tar.gz: 5ebb0a24674df7002b0da5aac910581e3a24a031ccf42402a3be3ea47d18bc4087cfbf5ef387357c9efe330d1e3a1166a95e8f95102cc123ad9b141b6aae8a0f
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}/championmastery/location/{platform_id}/player"
8
- MASTERY_BY_CHAMPION_ID = EndpointTemplate.new(template_url: "#{BASE_MASTERY_URL}/{summonerId}/champion/{championId}{?api_key}")
9
- MASTERY_ALL_CHAMPIONS = EndpointTemplate.new(template_url: "#{BASE_MASTERY_URL}/{summonerId}/champions{?api_key}")
10
- MASTERY_SCORE = EndpointTemplate.new(template_url: "#{BASE_MASTERY_URL}/{summonerId}/score{?api_key}")
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 champion_mastery_all(summoner_id: )
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
@@ -1,3 +1,3 @@
1
1
  module Taric
2
- VERSION = '1.0.0-alpha'
2
+ VERSION = '1.0.0-alpha.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taric
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.alpha
4
+ version: 1.0.0.pre.alpha.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph Yi