taric 0.2.4 → 0.3.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 +4 -4
- data/.travis.yml +3 -1
- data/README.md +2 -2
- data/lib/taric/operation/api.rb +0 -2
- data/lib/taric/version.rb +1 -1
- metadata +3 -4
- data/lib/taric/operation/match_history.rb +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: beb46c3b1da808ad15546bf88fa8f9598140f14c
|
4
|
+
data.tar.gz: 7803f4ec8cdba2678630ed624493791c5fd38df9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80fdf126427867386bd1f3f975b3c5c1e729e948c9a69daa727e6ee774567fd5ad450f11dc7d2184c8484d876e8779f05b82dd8e5a7fef4c6837e72da7e134be
|
7
|
+
data.tar.gz: d37da4ae84c504b07ec13f926c36418614362f5cf008cc361ec4ef40779be26a53935ecb7cf04c33282f533370c7ae27f67a34a94dc582fa4bf984067a558387
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -57,7 +57,7 @@ There are a couple of ways to set the API key:
|
|
57
57
|
|
58
58
|
Taric.configure! do |config|
|
59
59
|
config.api_key = 'whatever_key_rito_assigned_you'
|
60
|
-
|
60
|
+
config.adapter = :typhoeus # default is Faraday.default_adapter
|
61
61
|
end
|
62
62
|
```
|
63
63
|
|
@@ -141,4 +141,4 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
141
141
|
4. Push to the branch (`git push origin my-new-feature`)
|
142
142
|
5. Create a new Pull Request
|
143
143
|
|
144
|
-
[Riot Games Developer]:https://developer.riotgames.com/
|
144
|
+
[Riot Games Developer]:https://developer.riotgames.com/
|
data/lib/taric/operation/api.rb
CHANGED
@@ -7,7 +7,6 @@ require_relative 'league'
|
|
7
7
|
require_relative 'lol_static_data'
|
8
8
|
require_relative 'lol_status'
|
9
9
|
require_relative 'match'
|
10
|
-
require_relative 'match_history'
|
11
10
|
require_relative 'match_list'
|
12
11
|
require_relative 'stats'
|
13
12
|
require_relative 'summoner'
|
@@ -24,7 +23,6 @@ module Taric
|
|
24
23
|
include Taric::Operation::LolStaticData
|
25
24
|
include Taric::Operation::LolStatus
|
26
25
|
include Taric::Operation::Match
|
27
|
-
include Taric::Operation::MatchHistory
|
28
26
|
include Taric::Operation::MatchList
|
29
27
|
include Taric::Operation::Stats
|
30
28
|
include Taric::Operation::Summoner
|
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: 0.
|
4
|
+
version: 0.3.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: 2015-
|
11
|
+
date: 2015-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -189,7 +189,6 @@ files:
|
|
189
189
|
- lib/taric/operation/lol_static_data.rb
|
190
190
|
- lib/taric/operation/lol_status.rb
|
191
191
|
- lib/taric/operation/match.rb
|
192
|
-
- lib/taric/operation/match_history.rb
|
193
192
|
- lib/taric/operation/match_list.rb
|
194
193
|
- lib/taric/operation/stats.rb
|
195
194
|
- lib/taric/operation/summoner.rb
|
@@ -216,7 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
216
215
|
version: '0'
|
217
216
|
requirements: []
|
218
217
|
rubyforge_project:
|
219
|
-
rubygems_version: 2.4.
|
218
|
+
rubygems_version: 2.4.8
|
220
219
|
signing_key:
|
221
220
|
specification_version: 4
|
222
221
|
summary: An outrageous Riot Games LoL API Client
|
@@ -1,17 +0,0 @@
|
|
1
|
-
require_relative 'base'
|
2
|
-
module Taric
|
3
|
-
module Operation
|
4
|
-
module MatchHistory
|
5
|
-
include Taric::Operation::Base
|
6
|
-
|
7
|
-
MATCH_HISTORY_VERSION = 'v2.2'
|
8
|
-
MATCH_HISTORY = Addressable::Template.new "#{BASE_URL_FN.(MATCH_HISTORY_VERSION)}/matchhistory/{summonerId}{?api_key,championIds,rankedQueues,beginIndex,endIndex}"
|
9
|
-
|
10
|
-
# @see https://developer.riotgames.com/api/methods#!/966/3312
|
11
|
-
def match_history(summoner_id:, champion_ids: nil, ranked_queues: nil, begin_index: nil, end_index: nil)
|
12
|
-
response_for MATCH_HISTORY,
|
13
|
-
{summonerId: summoner_id, championIds: champion_ids, rankedQueues: ranked_queues, beginIndex: begin_index, endIndex: end_index}
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|