taric 0.2.2 → 0.2.4

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: 7d6fda0d0bbb65da941d649a044b5843ee1aaab3
4
- data.tar.gz: b300b3a7f39f27126ff9a2c6fa9062bb0fd5119a
3
+ metadata.gz: a88eda498245683a65e7d0d4f32eff6ef9036129
4
+ data.tar.gz: 4854b59ce8bcc6da7e16dd2343ef964b81095a12
5
5
  SHA512:
6
- metadata.gz: 492f73aa1c7c74b659265cd1b3f3ccc7dffb8397b3cdc9ee49acbaa27143071e868d14b488563dc4fe025f00ce6236af0cd8d15150e6d1087816d4d0a6adfaea
7
- data.tar.gz: d9f32f6d95578101a31f6638e53adf7b25840e139aa3eb0c2a3d14716975c3c31347e5c82dfd3bf7d87793c14e7fc1f0a3e30e2fddb2c5428a9d3ba5d49a3d14
6
+ metadata.gz: 6caeeca75021ac85f5df528b01e44f04112208ba87d35461bb57bdcde9598e68405ff3eac2f0382abd94933c39e2f8e1702d1c3a3fb5e6e60b7cc9b36ad38af1
7
+ data.tar.gz: 98ef5f9e68c33986b36de804ae377660ce23e4c06ad493ccd10772423a0a54b4b9c110ef3e946449cf76aa1a85b35767d60d528ea09a88bd2574fb5f4d796ba8
data/.rspec CHANGED
@@ -1,2 +1,3 @@
1
+ --require spec_helper
1
2
  --format documentation
2
3
  --color
@@ -8,6 +8,7 @@ require_relative 'lol_static_data'
8
8
  require_relative 'lol_status'
9
9
  require_relative 'match'
10
10
  require_relative 'match_history'
11
+ require_relative 'match_list'
11
12
  require_relative 'stats'
12
13
  require_relative 'summoner'
13
14
  require_relative 'team'
@@ -24,6 +25,7 @@ module Taric
24
25
  include Taric::Operation::LolStatus
25
26
  include Taric::Operation::Match
26
27
  include Taric::Operation::MatchHistory
28
+ include Taric::Operation::MatchList
27
29
  include Taric::Operation::Stats
28
30
  include Taric::Operation::Summoner
29
31
  include Taric::Operation::Team
@@ -9,7 +9,7 @@ module Taric
9
9
 
10
10
  # Match data for id.
11
11
  #
12
- # @see https://developer.riotgames.com/api/methods#!/967/3313
12
+ # @see https://developer.riotgames.com/api/methods#!/1027/3483
13
13
  # @param id [Fixnum] id of match
14
14
  # @param include_timeline [Boolean] optional, true includes timestamps on events
15
15
  # @return match data for id.
@@ -18,4 +18,4 @@ module Taric
18
18
  end
19
19
  end
20
20
  end
21
- end
21
+ end
@@ -0,0 +1,23 @@
1
+ require_relative 'base'
2
+ module Taric
3
+ module Operation
4
+ module MatchList
5
+ include Taric::Operation::Base
6
+
7
+ MATCH_LIST_VERSION = 'v2.2'.freeze
8
+ MATCH_LIST = Addressable::Template.new "#{BASE_URL_FN.(MATCH_LIST_VERSION)}/matchlist/by-summoner/{summonerId}{?api_key,championIds,rankedQueues,seasons,beginTime,endTime,beginIndex,endIndex}"
9
+
10
+ # @see https://developer.riotgames.com/api/methods#!/1026/3480
11
+ # @param summoner_id [Fixnum] summoner Id
12
+ # @param champion_ids [String] Optional - Comma-separated list of champion IDs to use for fetching games.
13
+ # @param ranked_queues [String] Optional - Comma-separated list of ranked queue types to use for fetching games. Non-ranked queue types will be ignored.
14
+ # @param seasons [String] Optional - Comma-separated list of seasons to use for fetching games.
15
+ # @param begin_time [Fixnum] Optional - The begin time in epoch milliseconds to use for fetching games.
16
+ # @param end_time [Fixnum] Optional - The end time in epoch milliseconds to use for fetching games.
17
+ def match_list(summoner_id:, champion_ids: nil, ranked_queues: nil, seasons: nil, begin_time: nil, end_time: nil, begin_index: nil, end_index: nil)
18
+ response_for MATCH_LIST,
19
+ {summonerId: summoner_id, championIds: champion_ids, rankedQueues: ranked_queues, seasons: seasons, beginTime: begin_time, endTime: end_time, beginIndex: begin_index, endIndex: end_index}
20
+ end
21
+ end
22
+ end
23
+ end
@@ -16,7 +16,7 @@ module Taric
16
16
 
17
17
  # Returns [Hash] of summoner data hashes keyed by summoner name
18
18
  #
19
- # @see {https://developer.riotgames.com/api/methods#!/960/3292}
19
+ # @see https://developer.riotgames.com/api/methods#!/960/3292
20
20
  # @param summoner_names [String] required, summoner names separated by commas
21
21
  # @return [Hash] of summoner data hashes keyed by summoner name
22
22
  #
@@ -29,7 +29,7 @@ module Taric
29
29
 
30
30
  # Returns [Hash] of summoner data hashes keyed by summoner ID
31
31
  #
32
- # @see {https://developer.riotgames.com/api/methods#!/960/3293}
32
+ # @see https://developer.riotgames.com/api/methods#!/960/3293
33
33
  # @param summoner_ids [String] required, summoner IDs separated by commas
34
34
  # @return [Hash] of summoner data hashes keyed by summoner ID
35
35
  #
@@ -54,4 +54,4 @@ module Taric
54
54
 
55
55
  end
56
56
  end
57
- end
57
+ end
data/lib/taric/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Taric
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.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: 0.2.2
4
+ version: 0.2.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: 2015-04-29 00:00:00.000000000 Z
11
+ date: 2015-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -190,6 +190,7 @@ files:
190
190
  - lib/taric/operation/lol_status.rb
191
191
  - lib/taric/operation/match.rb
192
192
  - lib/taric/operation/match_history.rb
193
+ - lib/taric/operation/match_list.rb
193
194
  - lib/taric/operation/stats.rb
194
195
  - lib/taric/operation/summoner.rb
195
196
  - lib/taric/operation/team.rb