taric 0.3.3 → 0.3.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: c302de47946d4d5337732907248b9cdf7f45fa6b
4
- data.tar.gz: 34cdc8513b9d50a55197e69be960b64d43350635
3
+ metadata.gz: ed730eb8b2667d33a95af44abaf5c831037391bc
4
+ data.tar.gz: e2f13b12aa6482ab736b24c66a9c46fa6056831f
5
5
  SHA512:
6
- metadata.gz: adb304d96a47d9a67ce8ebbe3cbbcfa0b0728ca4b760cce434ed02a84797075d31bb1c5e3e96d66af2442b1eaf75f0bdd16a374f00bfc6e65ed39b809c89e6d9
7
- data.tar.gz: 5b14d61f5ec6d887d16658c0a487b698e8571fa403478452089aed7b2a326c13e731f8c0288f00aa2d3e1bb8a4f85d4d5d37b286205fa62c3b09ad1b5fed015d
6
+ metadata.gz: 13b97c1f084eeffeb955e36b0f16be1eb10ccdb9c5d6a8306564396e4a011bbd8f268af8ec947855f1792404db4c244d65ed6bae0b0dcbb8a27316ff4b240749
7
+ data.tar.gz: 55b7792f019d3e1d0c0c8e4dfc883d350bd0d457545a2cad0ecccb377c9e1a14180cdb3b84fb5aab4ed92b2835472cf6b2b1531d67ed9ae0dd389b26f5852f07
@@ -6,9 +6,9 @@ module Taric
6
6
  # Converts [Time] to [Fixnum], or returns argument.
7
7
  #
8
8
  # @param time [Time] Time to convert to epoch.
9
- # @return [Fixnum] Time in epoch.
10
- def epoch_time(time)
11
- return time.to_i if time.instance_of? Time
9
+ # @return [Fixnum] Time in epoch milliseconds.``
10
+ def epoch_milliseconds(time)
11
+ return (time.to_f * 1000).to_i if time.instance_of? Time
12
12
  time
13
13
  end
14
14
  end
@@ -18,7 +18,7 @@ module Taric
18
18
  # @param end_time [Fixnum or Time] Optional - The end time to use for fetching games.
19
19
  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)
20
20
  response_for MATCH_LIST,
21
- {summonerId: summoner_id, championIds: champion_ids, rankedQueues: ranked_queues, seasons: seasons, beginTime: epoch_time(begin_time), endTime: epoch_time(end_time), beginIndex: begin_index, endIndex: end_index}
21
+ {summonerId: summoner_id, championIds: champion_ids, rankedQueues: ranked_queues, seasons: seasons, beginTime: epoch_milliseconds(begin_time), endTime: epoch_milliseconds(end_time), beginIndex: begin_index, endIndex: end_index}
22
22
  end
23
23
 
24
24
  end
@@ -1,3 +1,3 @@
1
1
  module Taric
2
- VERSION = '0.3.3'
2
+ VERSION = '0.3.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taric
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph Yi