taric 1.0.0.pre.alpha.2 → 1.0.0.pre.alpha.3

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: cbddd837a48f9422c011cb70394ccedc4830cb8f
4
- data.tar.gz: 08ba73d7dc772703972336cac487b22e214daf13
3
+ metadata.gz: d362f327297096741d4e19eacf86d1bcb25077fc
4
+ data.tar.gz: abac3f5c5bed56772b37d310e572201f4b264463
5
5
  SHA512:
6
- metadata.gz: 8f8b9f42ab88163772a439b7ae23a3619595f8e73e8afa3f0698c5ed837638baa533b66d4e8f6a85392077d4b0283177307b8848566e4b49be1b74afab4a2783
7
- data.tar.gz: ee133795fbee34886ce9922419839d52b8201f3437e211eafc7911885c8f40828b360b8bf68e85107fa4517a6aea4e1564796ef718069835044b9e67f5ac13fc
6
+ metadata.gz: 956173af07a9c576ee500cbd42bfa3679a1995834fffda72584cc160cb021673f92e0eed3225e574c4498683136465df4000ccecc3f1db46c34fc49242e703cf
7
+ data.tar.gz: 9c498c7a0fc218daaeb1213ebb3d42e3bc3e20e47798872a305ee0c01dddb1f6b527fc3488eede2836a021ee15892349d2d497368c46e39728687558adb63a00
data/README.md CHANGED
@@ -41,7 +41,7 @@ Or install it yourself as:
41
41
  - [x] CHAMPION-V3
42
42
  - [x] CHAMPION-MASTERY-V3
43
43
  - [x] LEAGUE-V2.5
44
- - [ ] LOL-STATUS-V3
44
+ - [x] LOL-STATUS-V3
45
45
  - [ ] MASTERIES-V3
46
46
  - [ ] RUNES-V3
47
47
  - [ ] SPECTATOR-V3
@@ -2,21 +2,13 @@ require_relative 'endpoint_template'
2
2
  module Taric
3
3
  module Operation
4
4
  module LolStatus
5
- SHARDS = EndpointTemplate.new(template_url: 'http://status.leagueoflegends.com/shards')
6
- SHARD = EndpointTemplate.new(template_url: 'http://status.leagueoflegends.com/shards/{region}')
5
+ SHARD = EndpointTemplate.new(template_url: 'https://{host}/lol/status/v3/shard-data{?api_key}')
7
6
 
8
- # Region metadata.
7
+ # Region metadata, implicitly uses endpoint host to determine which region.
9
8
  #
10
- # @return [Array] of region metadata in hashes
11
- def shards
12
- response_for SHARDS
13
- end
14
-
15
- # Region metadata by region.
16
- # @param region [String] region to load
17
9
  # @return [Hash] region info
18
- def shard(region:)
19
- response_for SHARD, {region: region}
10
+ def shard_data
11
+ response_for SHARD
20
12
  end
21
13
  end
22
14
  end
data/lib/taric/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Taric
2
- VERSION = '1.0.0-alpha.2'
2
+ VERSION = '1.0.0-alpha.3'
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: 1.0.0.pre.alpha.2
4
+ version: 1.0.0.pre.alpha.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph Yi