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 +4 -4
- data/README.md +2 -1
- data/lib/taric/operation/api.rb +2 -0
- data/lib/taric/operation/masteries.rb +17 -0
- data/lib/taric/operation/summoner.rb +0 -9
- data/lib/taric/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d46901e8836cc9bc74e48dbc65e7381739dad92
|
4
|
+
data.tar.gz: 21c61793d9993b3e8620276a8547aaa4ec77a0e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5177e7f082635a7f15b65c0f08618000da845911b2bcc168d8ec270f8648df2ce62712e2606245b6ffd513b777a7c1bcbbf8a1d04709d941ec2955c66c239f9
|
7
|
+
data.tar.gz: 1057062fd80b613b8e6b245d284ab0cce8f1114d1a8d46f6798473593328ab1c8a63bc1eeaf4e56162ff94df07c855ee07c3af2ef4642a1909fd9672a8cc0129
|
data/README.md
CHANGED
data/lib/taric/operation/api.rb
CHANGED
@@ -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
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.
|
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-
|
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
|