taric 1.0.0.pre.beta.0 → 1.0.0

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: 44cd3b4600cd84b0ad5028a0efb5079f81b7d970
4
- data.tar.gz: 1d69a03f5509088119d3aa362645c7ba4dff4c43
3
+ metadata.gz: e1f94f1069841bb455489c42bcca6d841e5ffc8f
4
+ data.tar.gz: cf3eaa6228e798e76e1ceb7bea026339161a2b19
5
5
  SHA512:
6
- metadata.gz: 10c53039c913dbb5950ae1ad8fa9090f2e7e6d7a3e216ebdcfd53d704d858901c28e19cb244c98848f4399b8980f7645ce933fe5db0b46bbcabbe59d75e68eb3
7
- data.tar.gz: 3f4d46480b99b87414d045541795ce4422164882df82d26cacdea7d1c8677eb8f7cefbebf7fc5c85b4d5e6d22af0f5dbbb1c4a548232c15c9475918e4b4b7807
6
+ metadata.gz: eafb2cdb0de729cd167c407829431106b5673ce2bf01658091d954c7d78ddcb6e1e41b3b8cad59e3bb92bb6e375003072dca6f6fd8959ac6baa5d3979c11f6ba
7
+ data.tar.gz: ddc554cf1f823a1e409529db2f54ad4d07b03c4ef908a4699caeb72768d231cedd9a203680d47310748be25d29aa30860262e31141a523e9d8b6d650e3c24553
@@ -1,7 +1,8 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.1.5
4
- - 2.2.1
5
- - 2.3.0
3
+ - 2.1.10
4
+ - 2.2.7
5
+ - 2.3.4
6
+ - 2.4.1
6
7
  after_success:
7
8
  - bundle exec codeclimate-test-reporter
data/README.md CHANGED
@@ -40,7 +40,7 @@ Or install it yourself as:
40
40
 
41
41
  - [x] CHAMPION-V3
42
42
  - [x] CHAMPION-MASTERY-V3
43
- - [x] LEAGUE-V2.5
43
+ - [x] LEAGUE-V3
44
44
  - [x] LOL-STATUS-V3
45
45
  - [x] MASTERIES-V3
46
46
  - [x] MATCH-V3
@@ -51,6 +51,7 @@ Or install it yourself as:
51
51
  - [x] ~~CURRENT-GAME-V1.0~~ replaced by SPECTATOR-V3
52
52
  - [x] ~~FEATURED-GAMES-V1.0~~ replaced by SPECTATOR-V3
53
53
  - [x] ~~GAME-V1.3~~ replaced by MATCH-V3
54
+ - [x] ~~LEAGUE-V2.5~~ replaced by LEAGUE-V3
54
55
  - [x] ~~LOL-STATIC-DATA-V1.2~~ replaced by STATIC-DATA-V3
55
56
  - [x] ~~LOL-STATUS-V1.0~~ replaced by LOL-STATUS-V3
56
57
  - [x] ~~MATCH-V2.2~~ replaced by MATCH-V3
@@ -127,25 +128,23 @@ responses = parallel_client.execute!
127
128
  ### Champion
128
129
 
129
130
  ```ruby
130
- # https://developer.riotgames.com/api/methods#!/958/3289
131
131
  client.champion(id: )
132
+ ```
132
133
 
133
- # https://developer.riotgames.com/api/methods#!/958/3290
134
+ ```ruby
134
135
  client.champions
135
136
  ```
136
137
 
137
138
  ### Current Game
138
139
 
139
140
  ```ruby
140
- # https://developer.riotgames.com/api/methods#!/956/3287
141
- client.current_game(summoner_id: )
141
+ response = client.current_game(summoner_id: 21066)
142
142
  ```
143
143
 
144
144
  ### Featured Games
145
145
 
146
146
  ```ruby
147
- # https://developer.riotgames.com/api/methods#!/957/3288
148
- client.featured_games
147
+ response = client.featured_games
149
148
  ```
150
149
 
151
150
  TODO: finish writing this crap :p
@@ -57,8 +57,8 @@ module Taric
57
57
  # @param api_key [String] rito api key
58
58
  # @param region [Symbol] key for region
59
59
  # @return [Hash] of api_key and region info
60
- def operation_values(api_key:, region:)
61
- {api_key: api_key}.merge!(REGION_ENDPOINT_INFO[region])
60
+ def operation_values(region:)
61
+ REGION_ENDPOINT_INFO[region]
62
62
  end
63
63
  memoize :operation_values
64
64
 
@@ -72,8 +72,8 @@ module Taric
72
72
  #
73
73
  # @example
74
74
  # Taric::Client.expand_template(api_key: 'ritokey', region: :na, operation: Taric::Operation::Champion::CHAMPIONS)
75
- def expand_template(api_key:, region:, operation:, options: {})
76
- operation.expand(options.merge(operation_values(api_key: api_key, region: region)))
75
+ def expand_template(region:, operation:, options: {})
76
+ operation.expand(options.merge(operation_values(region: region)))
77
77
  end
78
78
  end
79
79
 
@@ -81,7 +81,15 @@ module Taric
81
81
  def response_for(operation, options = {})
82
82
  -> (method, url, body, headers) {
83
83
  API_CALL.(method, url, body, headers, @config.requestor.(@conn), @config.response_handler)
84
- }.(operation.method, self.class.expand_template(api_key: @api_key, region: @region, operation: operation.template_url, options: options), operation.body, operation.headers)
84
+ }.(
85
+ operation.method,
86
+ self.class.expand_template(
87
+ region: @region,
88
+ operation: operation.template_url,
89
+ options: options
90
+ ),
91
+ operation.body,
92
+ operation.headers.merge('X-Riot-Token' => @api_key))
85
93
  end
86
94
 
87
95
  class ParallelClient
@@ -108,7 +116,7 @@ module Taric
108
116
  private
109
117
 
110
118
  def response_for(operation, options = {})
111
- @operations << {url: @parent.class.expand_template(api_key: @parent.api_key, region: @parent.region, operation: operation.template_url, options: options), method: operation.method, body: operation.body, headers: operation.headers}
119
+ @operations << {url: @parent.class.expand_template(region: @parent.region, operation: operation.template_url, options: options), method: operation.method, body: operation.body, headers: operation.headers}
112
120
  self
113
121
  end
114
122
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require_relative 'base'
2
3
  require_relative 'endpoint_template'
3
4
  module Taric
@@ -5,10 +6,10 @@ module Taric
5
6
  module Champion
6
7
  include Taric::Operation::Base
7
8
 
8
- CHAMPION_BASE_URL = "https://{host}/lol/platform/v3/champions"
9
+ CHAMPION_BASE_URL = 'https://{host}/lol/platform/v3/champions'
9
10
 
10
- CHAMPIONS = EndpointTemplate.new(template_url: "#{CHAMPION_BASE_URL}{?api_key,freeToPlay}")
11
- CHAMPION_BY_ID = EndpointTemplate.new(template_url: "#{CHAMPION_BASE_URL}/{id}{?api_key}")
11
+ CHAMPIONS = EndpointTemplate.new(template_url: "#{CHAMPION_BASE_URL}{?freeToPlay}")
12
+ CHAMPION_BY_ID = EndpointTemplate.new(template_url: "#{CHAMPION_BASE_URL}/{id}")
12
13
 
13
14
  # Returns champion data.
14
15
  #
@@ -5,9 +5,9 @@ module Taric
5
5
  include Taric::Operation::Base
6
6
 
7
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}")
8
+ MASTERY_ALL_CHAMPIONS = EndpointTemplate.new(template_url: "#{BASE_MASTERY_URL}/champion-masteries/by-summoner/{summonerId}")
9
+ MASTERY_BY_CHAMPION_ID = EndpointTemplate.new(template_url: "#{BASE_MASTERY_URL}/champion-masteries/by-summoner/{summonerId}/by-champion/{championId}")
10
+ MASTERY_SCORE = EndpointTemplate.new(template_url: "#{BASE_MASTERY_URL}/scores/by-summoner/{summonerId}")
11
11
 
12
12
  def champion_mastery(summoner_id: , champion_id:)
13
13
  response_for MASTERY_BY_CHAMPION_ID, {summonerId: summoner_id, championId: champion_id}
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require_relative 'base'
2
3
  require_relative 'endpoint_template'
3
4
  module Taric
@@ -5,69 +6,66 @@ module Taric
5
6
  module League
6
7
  include Taric::Operation::Base
7
8
 
8
- LEAGUE_VERSION = 'v2.5'
9
- BASE_LEAGUE_URL = "#{BASE_URL_FN.(LEAGUE_VERSION)}/league"
9
+ LEAGUES_BY_SUMMONER_ID = EndpointTemplate.new(template_url: 'https://{host}/lol/league/v3/leagues/by-summoner/{summonerId}')
10
+ POSITION_BY_SUMMONER_ID = EndpointTemplate.new(template_url: 'https://{host}/lol/league/v3/positions/by-summoner/{summonerId}')
11
+ CHALLENGER = EndpointTemplate.new(template_url: 'https://{host}/lol/league/v3/challengerleagues/by-queue/{queue}')
12
+ MASTER = EndpointTemplate.new(template_url: 'https://{host}/lol/league/v3/masterleagues/by-queue/{queue}')
10
13
 
11
- LEAGUES_BY_SUMMONER_IDS = EndpointTemplate.new(template_url: "#{BASE_LEAGUE_URL}/by-summoner/{summonerIds}{?api_key}")
12
- ENTRIES_BY_SUMMONER_IDS = EndpointTemplate.new(template_url: "#{BASE_LEAGUE_URL}/by-summoner/{summonerIds}/entry{?api_key}")
13
- CHALLENGER = EndpointTemplate.new(template_url: "#{BASE_LEAGUE_URL}/challenger{?api_key,type}")
14
- MASTER = EndpointTemplate.new(template_url: "#{BASE_LEAGUE_URL}/master{?api_key,type}")
15
-
16
- CHALLENGER_QUEUE_TYPES = ['RANKED_FLEX_SR'.freeze, 'RANKED_FLEX_TT'.freeze, 'RANKED_SOLO_5x5'.freeze, 'RANKED_TEAM_3x3'.freeze, 'RANKED_TEAM_5x5'.freeze].freeze
14
+ CHALLENGER_QUEUE_TYPES = %w(RANKED_FLEX_SR, RANKED_FLEX_TT, RANKED_SOLO_5x5).freeze
17
15
  MASTER_QUEUE_TYPES = CHALLENGER_QUEUE_TYPES
18
16
 
19
- # Leagues by summoner IDs.
17
+ # Leagues by summoner ID.
20
18
  #
21
- # @see https://developer.riotgames.com/api/methods#!/985/3351
22
- # @param summoner_ids summoner_ids [String] comma separated list of summoner ids
23
- # @return [Hash] leagues keyed by summoner ids
19
+ # @see https://developer.riotgames.com/api-methods/#league-v3/GET_getAllLeaguesForSummoner
20
+ # @param summoner_id [String] player's summoner ID
21
+ # @return [Hash] leagues keyed by summoner ID
24
22
  #
25
23
  # @example
26
24
  # result = client.leagues_by_summoner_ids(summoner_ids: '21066,38877656')
27
25
  # leagues = result['21066']
28
26
  # entries = first_summoner_leagues.first['entries']
29
- def leagues_by_summoner_ids(summoner_ids:)
30
- response_for LEAGUES_BY_SUMMONER_IDS, {summonerIds: summoner_ids}
27
+ def leagues(summoner_id:)
28
+ response_for LEAGUES_BY_SUMMONER_ID, {summonerId: summoner_id}
31
29
  end
32
30
 
33
31
  # League entries by summoner IDs.
34
32
  #
35
- # @see https://developer.riotgames.com/api/methods#!/985/3351
33
+ # @see https://developer.riotgames.com/api-methods/#league-v3/GET_getAllLeaguePositionsForSummoner
36
34
  # @param summoner_ids summoner_ids [String] comma separated list of summoner ids
37
35
  # @return [Hash] league entries keyed by summoner_ids
38
36
  #
39
37
  # @example
40
- # result = client.league_entries_by_summoner_ids(summoner_ids: '21066,38877656')
41
- # entries = result['38877656']
42
- # entry = entries.first
43
- # entry_name = entry['name']
44
- # entry_tier = entry['tier']
45
- def league_entries_by_summoner_ids(summoner_ids:)
46
- response_for ENTRIES_BY_SUMMONER_IDS, {summonerIds: summoner_ids}
38
+ # result = client.league_positions(summoner_id: '21066').body
39
+ # mapped_by_queue = result.map{ |h| [h['queueType'], h] }.to_h # {'RANKED_SOLO_5x5' => {...}}
40
+ # solo_queue = mapped_by_queue['RANKED_SOLO_5x5']
41
+ # wins = solo_queue['wins']
42
+ # losses = solo_queue['losses']
43
+ def league_positions(summoner_id:)
44
+ response_for POSITION_BY_SUMMONER_ID, {summonerId: summoner_id}
47
45
  end
48
46
 
49
47
  # Challenger league data for queue type.
50
48
  #
51
- # @param type [String] required, must be RANKED_FLEX_SR, RANKED_FLEX_TT, RANKED_SOLO_5x5, RANKED_TEAM_3x3, or RANKED_TEAM_5x5
49
+ # @param type [String] required, must be RANKED_FLEX_SR, RANKED_FLEX_TT, or RANKED_SOLO_5x5
52
50
  # @return [Hash] challenger league data
53
- # @see https://developer.riotgames.com/api/methods#!/985/3353
54
- def challenger(type: )
51
+ # @see https://developer.riotgames.com/api-methods/#league-v3/GET_getChallengerLeague
52
+ def challenger_leagues(queue: )
55
53
  raise ArgumentError,
56
- "Invalid argument: #{type}, arg must be in #{CHALLENGER_QUEUE_TYPES}" unless CHALLENGER_QUEUE_TYPES.include?(type)
54
+ "Invalid argument: #{queue}, arg must be in #{CHALLENGER_QUEUE_TYPES}" unless CHALLENGER_QUEUE_TYPES.include?(queue)
57
55
 
58
- response_for CHALLENGER, {type: type}
56
+ response_for CHALLENGER, {queue: queue}
59
57
  end
60
58
 
61
59
  # Master league data for queue type.
62
60
  #
63
- # @param type [String] required, must be RANKED_FLEX_SR, RANKED_FLEX_TT, RANKED_SOLO_5x5, RANKED_TEAM_3x3, or RANKED_TEAM_5x5
61
+ # @param type [String] required, must be RANKED_FLEX_SR, RANKED_FLEX_TT, or RANKED_SOLO_5x5
64
62
  # @return [Hash] master league data
65
- # https://developer.riotgames.com/api/methods#!/985/3354
66
- def master(type: )
63
+ # @see https://developer.riotgames.com/api-methods/#league-v3/GET_getMasterLeague
64
+ def master_leagues(queue: )
67
65
  raise ArgumentError,
68
- "Invalid argument: #{type}, arg must be in #{MASTER_QUEUE_TYPES}" unless MASTER_QUEUE_TYPES.include?(type)
66
+ "Invalid argument: #{queue}, arg must be in #{MASTER_QUEUE_TYPES}" unless MASTER_QUEUE_TYPES.include?(queue)
69
67
 
70
- response_for MASTER, {type: type}
68
+ response_for MASTER, {queue: queue}
71
69
  end
72
70
  end
73
71
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require_relative 'base'
2
3
  require_relative 'endpoint_template'
3
4
  module Taric
@@ -7,22 +8,22 @@ module Taric
7
8
 
8
9
  BASE_STATIC_URL = "https://{host}/lol/static-data/v3"
9
10
 
10
- STATIC_CHAMPIONS = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/champions{?api_key,dataById,champListData,locale,version}")
11
- STATIC_CHAMPION = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/champions/{id}{?api_key,champData,locale,version}")
12
- STATIC_ITEMS = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/items{?api_key,itemListData,locale,version}")
13
- STATIC_ITEM = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/items/{id}{?api_key,itemData,locale,version}")
14
- STATIC_LANGUAGE_STRINGS = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/language-strings{?api_key,locale,version}")
11
+ STATIC_CHAMPIONS = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/champions{?dataById,champListData,locale,version}")
12
+ STATIC_CHAMPION = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/champions/{id}{?champData,locale,version}")
13
+ STATIC_ITEMS = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/items{?itemListData,locale,version}")
14
+ STATIC_ITEM = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/items/{id}{?itemData,locale,version}")
15
+ STATIC_LANGUAGE_STRINGS = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/language-strings{locale,version}")
15
16
  STATIC_LANGUAGES = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/languages{?api_key}")
16
- STATIC_MAP = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/maps{?api_key,locale,version}")
17
- STATIC_MASTERIES = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/masteries{?api_key,masteryListData,locale,version}")
18
- STATIC_MASTERY = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/masteries/{id}{?api_key,masteryData,locale,version}")
19
- STATIC_PROFILE_ICONS = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/profile-icons{?api_key,locale,version}")
17
+ STATIC_MAP = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/maps{locale,version}")
18
+ STATIC_MASTERIES = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/masteries{masteryListData,locale,version}")
19
+ STATIC_MASTERY = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/masteries/{id}{masteryData,locale,version}")
20
+ STATIC_PROFILE_ICONS = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/profile-icons{locale,version}")
20
21
  STATIC_REALM = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/realms{?api_key}")
21
- STATIC_RUNES = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/runes{?api_key,runeListData,locale,version}")
22
- STATIC_RUNE = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/runes/{id}{?api_key,runeData,locale,version}")
23
- STATIC_SUMMONER_SPELLS = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/summoner-spells{?api_key,spellData,locale,version}")
24
- STATIC_SUMMONER_SPELL = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/summoner-spells/{id}{?api_key,spellData,locale,version}")
25
- STATIC_VERSIONS = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/versions{?api_key}")
22
+ STATIC_RUNES = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/runes{runeListData,locale,version}")
23
+ STATIC_RUNE = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/runes/{id}{runeData,locale,version}")
24
+ STATIC_SUMMONER_SPELLS = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/summoner-spells{spellData,locale,version}")
25
+ STATIC_SUMMONER_SPELL = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/summoner-spells/{id}{spellData,locale,version}")
26
+ STATIC_VERSIONS = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/versions")
26
27
 
27
28
  CHAMP_DATA_OPTIONS = [
28
29
  'all'.freeze,
@@ -1,8 +1,9 @@
1
+ # frozen_string_literal: true
1
2
  require_relative 'endpoint_template'
2
3
  module Taric
3
4
  module Operation
4
5
  module LolStatus
5
- SHARD = EndpointTemplate.new(template_url: 'https://{host}/lol/status/v3/shard-data{?api_key}')
6
+ SHARD = EndpointTemplate.new(template_url: 'https://{host}/lol/status/v3/shard-data')
6
7
 
7
8
  # Region metadata, implicitly uses endpoint host to determine which region.
8
9
  #
@@ -1,9 +1,10 @@
1
+ # frozen_string_literal: true
1
2
  require_relative 'endpoint_template'
2
3
  module Taric
3
4
  module Operation
4
5
  module Masteries
5
6
 
6
- MASTERIES = EndpointTemplate.new(template_url: "https://{host}/lol/platform/v3/masteries/by-summoner/{summonerId}{?api_key}")
7
+ MASTERIES = EndpointTemplate.new(template_url: 'https://{host}/lol/platform/v3/masteries/by-summoner/{summonerId}')
7
8
 
8
9
  # Masteries by summoner ID.
9
10
  #
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require_relative 'base'
2
3
  require_relative 'endpoint_template'
3
4
  module Taric
@@ -1,9 +1,10 @@
1
+ # frozen_string_literal: true
1
2
  require_relative 'endpoint_template'
2
3
  module Taric
3
4
  module Operation
4
5
  module Runes
5
6
 
6
- RUNES_V3 = EndpointTemplate.new(template_url: "https://{host}/lol/platform/v3/runes/by-summoner/{summonerId}{?api_key}")
7
+ RUNES_V3 = EndpointTemplate.new(template_url: 'https://{host}/lol/platform/v3/runes/by-summoner/{summonerId}')
7
8
 
8
9
  # Runes by summoner ID.
9
10
  #
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require_relative 'endpoint_template'
2
3
  module Taric
3
4
  module Operation
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require_relative 'base'
2
3
  require_relative 'endpoint_template'
3
4
  module Taric
@@ -5,10 +6,10 @@ module Taric
5
6
  module Summoner
6
7
  include Taric::Operation::Base
7
8
 
8
- BASE_SUMMONER_URL = "https://{host}/lol/summoner/v3/summoners"
9
- SUMMONER_BY_ID = EndpointTemplate.new(template_url: "#{BASE_SUMMONER_URL}/{summonerId}{?api_key}")
10
- SUMMONER_BY_NAME = EndpointTemplate.new(template_url: "#{BASE_SUMMONER_URL}/by-name/{summonerName}{?api_key}")
11
- SUMMONER_BY_ACCOUNT_ID = EndpointTemplate.new(template_url: "#{BASE_SUMMONER_URL}/by-account/{accountId}{?api_key}")
9
+ BASE_SUMMONER_URL = 'https://{host}/lol/summoner/v3/summoners'
10
+ SUMMONER_BY_ID = EndpointTemplate.new(template_url: "#{BASE_SUMMONER_URL}/{summonerId}")
11
+ SUMMONER_BY_NAME = EndpointTemplate.new(template_url: "#{BASE_SUMMONER_URL}/by-name/{summonerName}")
12
+ SUMMONER_BY_ACCOUNT_ID = EndpointTemplate.new(template_url: "#{BASE_SUMMONER_URL}/by-account/{accountId}")
12
13
 
13
14
  def summoner_by_id(summoner_id:)
14
15
  response_for SUMMONER_BY_ID, {summonerId: summoner_id}
@@ -1,3 +1,3 @@
1
1
  module Taric
2
- VERSION = '1.0.0-beta.0'
2
+ VERSION = '1.0.0'
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.beta.0
4
+ version: 1.0.0
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-30 00:00:00.000000000 Z
11
+ date: 2017-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -253,9 +253,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
253
253
  version: 2.1.0
254
254
  required_rubygems_version: !ruby/object:Gem::Requirement
255
255
  requirements:
256
- - - ">"
256
+ - - ">="
257
257
  - !ruby/object:Gem::Version
258
- version: 1.3.1
258
+ version: '0'
259
259
  requirements: []
260
260
  rubyforge_project:
261
261
  rubygems_version: 2.5.1