riot_lol_api 0.1.11 → 0.1.12

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: 0276127ca5ff25d7a682c455b8d5cc124fdea680
4
- data.tar.gz: 6cea3f5f47f7c6479c77658c8866a47557c07932
3
+ metadata.gz: 74ffb5246cc8fb25a72521ce4f72da6b2560e5ee
4
+ data.tar.gz: 60d961edac563299717c322136aa35ad69b35936
5
5
  SHA512:
6
- metadata.gz: 2a2f075764efc5dd3fb4f3aad5a14ba85df00dfe0c1f3c87a5eb2d230de55ccc8b6180e4864a6c33b45d67fb2723c3d158bbee043025dfd6411f14433b4b6334
7
- data.tar.gz: 364c3fd86233677230d64dac838e2dc5cbc9578c56347964a5045d2e62e4b8269155023fe0b8cb044f03bedb8e93ec9111cd5cb057fdeee600beb75cc70e3a68
6
+ metadata.gz: 09ee1de74b7def010cec9711ee0e88124ae9a429f540320d641a0f96b5851b94689afe5e4873d653930263bbf62b2c00307921c9b2e20b8f5d054b14ad74cac1
7
+ data.tar.gz: 071c3995ddefedcddd8cda33720991e613da5917dcf87807a43c14b92f3dd8c05a0bbca0aa4754411d56a20074891e4e4b2aad19fe24dd7a69da2b793c406a24
data/README.md CHANGED
@@ -183,6 +183,7 @@ summoner.get_league_stats
183
183
 
184
184
  ## Change logs
185
185
 
186
+ - v 0.1.12 : Add class datnum for champion entry
186
187
  - v 0.1.11 : Fix class mini_sery for league entry
187
188
  - v 0.1.1 : Add class mini_sery for league entry
188
189
  - v 0.1.0 : First stable version
@@ -38,6 +38,15 @@ module RiotLolApi
38
38
 
39
39
  def self.get url, domaine,data = nil
40
40
  unless RiotLolApi::TOKEN.nil?
41
+
42
+ # Check limit rate
43
+ # RiotLolApi::RATE_LIMIT += 1
44
+ # if Time.now - RiotLolApi::RATE_LIMIT_RESET_DATE > RiotLolApi::RATE_LIMIT_SEC_MAX
45
+ # RiotLolApi::RATE_LIMIT_RESET_DATE = Time.now
46
+ # else
47
+ # if RiotLolApi::RATE_LIMIT == RiotLolApi::RATE_LIMIT_REQ_MAX
48
+ # end
49
+
41
50
  # Set data params
42
51
  if data.nil?
43
52
  data = {:api_key => RiotLolApi::TOKEN}
@@ -5,6 +5,7 @@ require 'riot_lol_api/model/spell'
5
5
  require 'riot_lol_api/model/info'
6
6
  require 'riot_lol_api/model/passive'
7
7
  require 'riot_lol_api/model/skin'
8
+ require 'riot_lol_api/model/datum'
8
9
 
9
10
  module RiotLolApi
10
11
  module Model
@@ -0,0 +1,14 @@
1
+ module RiotLolApi
2
+ module Model
3
+ class Datum
4
+
5
+ def initialize(options = {})
6
+ options.each do |key, value|
7
+ self.class.send(:attr_accessor, key.to_sym)
8
+ instance_variable_set("@#{key}", value)
9
+ end
10
+ end
11
+
12
+ end
13
+ end
14
+ end
@@ -1,3 +1,3 @@
1
1
  module RiotLolApi
2
- VERSION = "0.1.11"
2
+ VERSION = "0.1.12"
3
3
  end
data/lib/riot_lol_api.rb CHANGED
@@ -5,5 +5,9 @@ require "core_ext/string"
5
5
  require "core_ext/hash"
6
6
 
7
7
  module RiotLolApi
8
- # http://ddragon.leagueoflegends.com/tool/euw/fr_FR
8
+ # # http://ddragon.leagueoflegends.com/tool/euw/fr_FR
9
+ # RiotLolApi::RATE_LIMIT = 0
10
+ # RiotLolApi::RATE_LIMIT_REQ_MAX = 10
11
+ # RiotLolApi::RATE_LIMIT_SEC_MAX = 10
12
+ # RiotLolApi::RATE_LIMIT_RESET_DATE = Time.now
9
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riot_lol_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - francois_blanchard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-29 00:00:00.000000000 Z
11
+ date: 2014-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -116,6 +116,7 @@ files:
116
116
  - lib/riot_lol_api/model/altimage.rb
117
117
  - lib/riot_lol_api/model/block.rb
118
118
  - lib/riot_lol_api/model/champion.rb
119
+ - lib/riot_lol_api/model/datum.rb
119
120
  - lib/riot_lol_api/model/entry.rb
120
121
  - lib/riot_lol_api/model/fellow_player.rb
121
122
  - lib/riot_lol_api/model/game.rb