riot_lol_api 0.1.1 → 0.1.11

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: 374b6a0e37ac0568602f22ad6e8933aa7dc59039
4
- data.tar.gz: 5bfebbcdeb10e47a2b32783d0b439d1eed9787f4
3
+ metadata.gz: 0276127ca5ff25d7a682c455b8d5cc124fdea680
4
+ data.tar.gz: 6cea3f5f47f7c6479c77658c8866a47557c07932
5
5
  SHA512:
6
- metadata.gz: 5a5841862eab269a5426bf593c250f65b3e6fd90f04a433ebf75933d8e50e97bf2703383a66f0eaf59528bcf9bb352fa908e9f2d47a9127a3f2622feea0ea22d
7
- data.tar.gz: bc1f16a98303f359ee9d72d19a5661ca6180821180181ccd5e01495f97096bc5752e3447781cdd679de4368260a3081ff199fa5f0f30d6bb8fcde5b490728fe9
6
+ metadata.gz: 2a2f075764efc5dd3fb4f3aad5a14ba85df00dfe0c1f3c87a5eb2d230de55ccc8b6180e4864a6c33b45d67fb2723c3d158bbee043025dfd6411f14433b4b6334
7
+ data.tar.gz: 364c3fd86233677230d64dac838e2dc5cbc9578c56347964a5045d2e62e4b8269155023fe0b8cb044f03bedb8e93ec9111cd5cb057fdeee600beb75cc70e3a68
data/README.md CHANGED
@@ -183,6 +183,7 @@ summoner.get_league_stats
183
183
 
184
184
  ## Change logs
185
185
 
186
+ - v 0.1.11 : Fix class mini_sery for league entry
186
187
  - v 0.1.1 : Add class mini_sery for league entry
187
188
  - v 0.1.0 : First stable version
188
189
 
@@ -1,4 +1,5 @@
1
1
  require 'riot_lol_api/model/entry'
2
+ require 'riot_lol_api/model/mini_sery'
2
3
 
3
4
  module RiotLolApi
4
5
  module Model
@@ -0,0 +1,14 @@
1
+ module RiotLolApi
2
+ module Model
3
+ class MiniSeries
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
@@ -3,7 +3,6 @@ require 'riot_lol_api/model/player_stat_rank'
3
3
  require 'riot_lol_api/model/page'
4
4
  require 'riot_lol_api/model/game'
5
5
  require 'riot_lol_api/model/league'
6
- require 'riot_lol_api/model/mini_sery'
7
6
 
8
7
  module RiotLolApi
9
8
  module Model
@@ -1,3 +1,3 @@
1
1
  module RiotLolApi
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.11"
3
3
  end
@@ -3,9 +3,9 @@ Access-Control-Allow-Headers: Content-Type
3
3
  Access-Control-Allow-Methods: GET, POST, DELETE, PUT
4
4
  Access-Control-Allow-Origin: *
5
5
  Content-Type: application/json; charset=UTF-8
6
- Date: Sun, 20 Jul 2014 11:06:27 GMT
6
+ Date: Tue, 29 Jul 2014 07:10:48 GMT
7
7
  Server: Jetty(9.1.2.v20140210)
8
- Content-Length: 281
8
+ transfer-encoding: chunked
9
9
  Connection: keep-alive
10
10
 
11
- {"20639710":[{"name":"Nautilus's Dragoons","tier":"SILVER","queue":"RANKED_SOLO_5x5","entries":[{"playerOrTeamId":"20639710","playerOrTeamName":"PacoLoco","division":"IV","leaguePoints":96,"wins":46,"isHotStreak":false,"isVeteran":false,"isFreshBlood":false,"isInactive":false}]}]}
11
+ {"20639710":[{"name":"Nautilus's Dragoons","tier":"SILVER","queue":"RANKED_SOLO_5x5","entries":[{"playerOrTeamId":"20639710","playerOrTeamName":"PacoLoco","division":"IV","leaguePoints":100,"wins":47,"isHotStreak":true,"isVeteran":false,"isFreshBlood":false,"isInactive":false,"miniSeries":{"target":2,"wins":0,"losses":0,"progress":"NNN"}}]}]}
@@ -613,6 +613,7 @@ describe RiotLolApi::Client do
613
613
 
614
614
  it "should have good attributes" do
615
615
  expect(@get_league).to be_a Array
616
+ # expect(@get_league.first.entries.first.mini_series).to be_a RiotLolApi::Model::MiniSeries
616
617
  end
617
618
  end
618
619
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riot_lol_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - francois_blanchard
@@ -127,6 +127,7 @@ files:
127
127
  - lib/riot_lol_api/model/leveltip.rb
128
128
  - lib/riot_lol_api/model/map.rb
129
129
  - lib/riot_lol_api/model/mastery.rb
130
+ - lib/riot_lol_api/model/mini_sery.rb
130
131
  - lib/riot_lol_api/model/page.rb
131
132
  - lib/riot_lol_api/model/passive.rb
132
133
  - lib/riot_lol_api/model/player_stat_rank.rb