rito_api 0.1.2 → 0.1.2.1

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: 1590ce503bb4f71d0d93009765f87caf6c123a8c
4
- data.tar.gz: 4cfc5225dc44d23b0cb70628621f6492e9383fd7
3
+ metadata.gz: c04cb45f336b6f78e0e53e3f6fa0d0d6da7ca2da
4
+ data.tar.gz: 4fbfe617441fa483da95126de0277b7fae82d8d7
5
5
  SHA512:
6
- metadata.gz: ea62138111286e40d14b826cba82046bd79bdeb39952f47bd5b46f9e07e04e6235d9e2728757f10e0a385c9fb8e582a7c727457c7e8adf958e7cdf5e799c4e14
7
- data.tar.gz: 2f57ced10465d6f786f5fccbd9526236056bc894eac668db61d9200404105d13e44611a87023339961da45215e7e38054c42d2e557de8a5ff032e9971a4f8deb
6
+ metadata.gz: 11c5edc99183d9e71d8e865c7676af3d041f53cb5502ffd600f62ff931b1c692f8b20cd0c0f9265d978e41645b147cd48a3e0fb39507791210c71026183d0a25
7
+ data.tar.gz: a00a111f304cf240bc730818c67b7e9883aed773efcb82232f0ac314461d3371a505a774adcab2dfcaf348cd7d618c8824a99400840657ee16b51c175aa2c337
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rito_api (0.1.2)
4
+ rito_api (0.1.2.1)
5
5
  httparty (~> 0.16.1)
6
6
  moneta (~> 1.0)
7
7
  redis (~> 4.0, >= 4.0.1)
@@ -4,7 +4,7 @@ module RitoApi
4
4
  # Request Module that handles every requests.
5
5
  module Requests
6
6
  attr_accessor :region
7
- class Base # Every other request class inherits from this class.
7
+ class Basic # Every other request class inherits from this class.
8
8
 
9
9
  def initialize(api_key, region, cache_store) # Initializing
10
10
  @api_key = api_key
@@ -2,7 +2,7 @@ module RitoApi
2
2
 
3
3
  module Requests
4
4
 
5
- class Challenger < Base
5
+ class Challenger < Basic
6
6
 
7
7
  def solo_queue(count = 0, ttl = @ttl) # Not passing an argument / passing string (unless string is number)/ 0 => returns all 200 results.
8
8
  payCheck = make_request(request_url("/lol/league/v3/challengerleagues/by-queue/RANKED_SOLO_5x5"), ttl)[:entries]
@@ -1,6 +1,6 @@
1
1
  module RitoApi
2
2
  module Requests
3
- class Champion < Base
3
+ class Champion < Basic
4
4
 
5
5
  def get_name(id)
6
6
  champNames = {
@@ -2,7 +2,7 @@ module RitoApi
2
2
 
3
3
  module Requests
4
4
 
5
- class Item < Base
5
+ class Item < Basic
6
6
 
7
7
  def get_icon(id)
8
8
 
@@ -2,7 +2,7 @@ module RitoApi
2
2
 
3
3
  module Requests
4
4
 
5
- class Match < Base
5
+ class Match < Basic
6
6
 
7
7
  def get(matchId, ttl = @ttl)
8
8
 
@@ -2,7 +2,7 @@ module RitoApi
2
2
 
3
3
  module Requests
4
4
 
5
- class Summoner < Base
5
+ class Summoner < Basic
6
6
 
7
7
  def find(ign, ttl = @ttl) # Finds summoner using the summonerName.
8
8
  return make_request(request_url("lol/summoner/v3/summoners/by-name/#{ign}"), ttl)
@@ -1,3 +1,3 @@
1
1
  module RitoApi
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rito_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manish Shahi
@@ -119,7 +119,7 @@ files:
119
119
  - bin/setup
120
120
  - lib/rito_api.rb
121
121
  - lib/rito_api/client.rb
122
- - lib/rito_api/requests/base.rb
122
+ - lib/rito_api/requests/basic.rb
123
123
  - lib/rito_api/requests/challenger.rb
124
124
  - lib/rito_api/requests/champion.rb
125
125
  - lib/rito_api/requests/item.rb