taric 1.0.0.pre.alpha.3 → 1.0.0.pre.alpha.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d362f327297096741d4e19eacf86d1bcb25077fc
4
- data.tar.gz: abac3f5c5bed56772b37d310e572201f4b264463
3
+ metadata.gz: 6d46901e8836cc9bc74e48dbc65e7381739dad92
4
+ data.tar.gz: 21c61793d9993b3e8620276a8547aaa4ec77a0e1
5
5
  SHA512:
6
- metadata.gz: 956173af07a9c576ee500cbd42bfa3679a1995834fffda72584cc160cb021673f92e0eed3225e574c4498683136465df4000ccecc3f1db46c34fc49242e703cf
7
- data.tar.gz: 9c498c7a0fc218daaeb1213ebb3d42e3bc3e20e47798872a305ee0c01dddb1f6b527fc3488eede2836a021ee15892349d2d497368c46e39728687558adb63a00
6
+ metadata.gz: b5177e7f082635a7f15b65c0f08618000da845911b2bcc168d8ec270f8648df2ce62712e2606245b6ffd513b777a7c1bcbbf8a1d04709d941ec2955c66c239f9
7
+ data.tar.gz: 1057062fd80b613b8e6b245d284ab0cce8f1114d1a8d46f6798473593328ab1c8a63bc1eeaf4e56162ff94df07c855ee07c3af2ef4642a1909fd9672a8cc0129
data/README.md CHANGED
@@ -42,7 +42,8 @@ Or install it yourself as:
42
42
  - [x] CHAMPION-MASTERY-V3
43
43
  - [x] LEAGUE-V2.5
44
44
  - [x] LOL-STATUS-V3
45
- - [ ] MASTERIES-V3
45
+ - [x] MASTERIES-V3
46
+ - [ ] MATCH-V3
46
47
  - [ ] RUNES-V3
47
48
  - [ ] SPECTATOR-V3
48
49
  - [ ] STATIC-DATA-V3
@@ -6,6 +6,7 @@ require_relative 'game'
6
6
  require_relative 'league'
7
7
  require_relative 'lol_static_data'
8
8
  require_relative 'lol_status'
9
+ require_relative 'masteries'
9
10
  require_relative 'match'
10
11
  require_relative 'match_list'
11
12
  require_relative 'stats'
@@ -25,6 +26,7 @@ module Taric
25
26
  include Taric::Operation::League
26
27
  include Taric::Operation::LolStaticData
27
28
  include Taric::Operation::LolStatus
29
+ include Taric::Operation::Masteries
28
30
  include Taric::Operation::Match
29
31
  include Taric::Operation::MatchList
30
32
  include Taric::Operation::Stats
@@ -0,0 +1,17 @@
1
+ require_relative 'endpoint_template'
2
+ module Taric
3
+ module Operation
4
+ module Masteries
5
+
6
+ MASTERIES = EndpointTemplate.new(template_url: "https://{host}/lol/platform/v3/masteries/by-summoner/{summonerId}{?api_key}")
7
+
8
+ # Masteries by summoner ID.
9
+ #
10
+ # @param summoner_id [Fixnum] Summoner ID
11
+ # @return [Hash] masteries for Summoner ID
12
+ def masteries(summoner_id: )
13
+ response_for MASTERIES, {summonerId: summoner_id}
14
+ end
15
+ end
16
+ end
17
+ end
@@ -6,17 +6,8 @@ module Taric
6
6
  include Taric::Operation::Base
7
7
 
8
8
  RUNES_AND_MASTERIES_BASE = "https://{host}/api/lol/{region}/v1.4/summoner/{summonerIds}"
9
- MASTERIES = EndpointTemplate.new(template_url: "#{RUNES_AND_MASTERIES_BASE}/masteries{?api_key}")
10
9
  RUNES = EndpointTemplate.new(template_url: "#{RUNES_AND_MASTERIES_BASE}/runes{?api_key}")
11
10
 
12
- # Masteries keyed by summoner ID.
13
- #
14
- # @param summoner_ids [String] comma separated list of Summoner IDs
15
- # @return [Hash] masteries by Summoner ID
16
- def summoner_masteries(summoner_ids:)
17
- response_for MASTERIES, {summonerIds: summoner_ids}
18
- end
19
-
20
11
  # Runes keyed by summoner ID.
21
12
  #
22
13
  # @param summoner_ids [String] comma separated list of Summoner IDs
data/lib/taric/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Taric
2
- VERSION = '1.0.0-alpha.3'
2
+ VERSION = '1.0.0-alpha.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taric
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.alpha.3
4
+ version: 1.0.0.pre.alpha.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph Yi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-28 00:00:00.000000000 Z
11
+ date: 2017-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -234,6 +234,7 @@ files:
234
234
  - lib/taric/operation/league.rb
235
235
  - lib/taric/operation/lol_static_data.rb
236
236
  - lib/taric/operation/lol_status.rb
237
+ - lib/taric/operation/masteries.rb
237
238
  - lib/taric/operation/match.rb
238
239
  - lib/taric/operation/match_list.rb
239
240
  - lib/taric/operation/stats.rb