ruby-lol 0.12.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.editorconfig +16 -0
- data/.gitignore +2 -0
- data/.rspec +1 -0
- data/.rubocop.yml +1157 -0
- data/.travis.yml +1 -1
- data/lib/lol/champion_mastery_request.rb +29 -57
- data/lib/lol/champion_request.rb +19 -23
- data/lib/lol/client.rb +16 -21
- data/lib/lol/dynamic_model.rb +14 -5
- data/lib/lol/featured_game_list.rb +15 -0
- data/lib/lol/league_request.rb +28 -49
- data/lib/lol/lol_status_request.rb +9 -26
- data/lib/lol/masteries_request.rb +14 -0
- data/lib/lol/match_request.rb +51 -9
- data/lib/lol/request.rb +55 -21
- data/lib/lol/runes_request.rb +14 -0
- data/lib/lol/spectator_request.rb +24 -0
- data/lib/lol/static_request.rb +34 -23
- data/lib/lol/summoner_request.rb +22 -51
- data/lib/lol/tournament_request.rb +95 -0
- data/lib/lol/version.rb +1 -1
- data/ruby-lol.gemspec +1 -1
- data/spec/api_version_spec.rb +10 -9
- data/spec/fixtures/{v1.2 → v3}/get-champion-266.json +0 -0
- data/spec/fixtures/{v1.2/get-champion.json → v3/get-champion-all.json} +0 -0
- data/spec/fixtures/{v1.0/get-champion-mastery-champions.json → v3/get-champion-masteries.json} +0 -0
- data/spec/fixtures/{v1.0/get-champion-mastery-champion.json → v3/get-champion-mastery.json} +0 -0
- data/spec/fixtures/v3/get-current-game.json +1 -0
- data/spec/fixtures/v3/get-featured-games.json +1 -0
- data/spec/fixtures/v3/get-ids-by-tc.json +1 -0
- data/spec/fixtures/v3/get-league-challenger.json +1 -0
- data/spec/fixtures/v3/get-league-master.json +1 -0
- data/spec/fixtures/v3/get-league-positions.json +1 -0
- data/spec/fixtures/v3/get-league-summoner.json +1 -0
- data/spec/fixtures/v3/get-lol-status-shard.json +1 -0
- data/spec/fixtures/v3/get-masteries.json +1 -0
- data/spec/fixtures/v3/get-match-with-tc.json +1 -0
- data/spec/fixtures/v3/get-match.json +1 -0
- data/spec/fixtures/v3/get-matches-recent.json +1 -0
- data/spec/fixtures/v3/get-matches.json +1 -0
- data/spec/fixtures/v3/get-runes.json +1 -0
- data/spec/fixtures/v3/get-static-champions-by-id.json +1 -0
- data/spec/fixtures/v3/get-static-champions.json +1 -0
- data/spec/fixtures/v3/get-static-items-by-id.json +1 -0
- data/spec/fixtures/v3/get-static-items.json +1 -0
- data/spec/fixtures/v3/get-static-maps.json +1 -0
- data/spec/fixtures/v3/get-static-masteries-by-id.json +1 -0
- data/spec/fixtures/v3/get-static-masteries.json +1 -0
- data/spec/fixtures/v3/get-static-realms.json +1 -0
- data/spec/fixtures/v3/get-static-runes-by-id.json +1 -0
- data/spec/fixtures/v3/get-static-runes.json +1 -0
- data/spec/fixtures/v3/get-static-summoner-spells-by-id.json +1 -0
- data/spec/fixtures/v3/get-static-summoner-spells.json +1 -0
- data/spec/fixtures/v3/get-static-versions.json +1 -0
- data/spec/fixtures/v3/get-summoner-by-name.json +1 -0
- data/spec/fixtures/v3/get-summoner.json +1 -0
- data/spec/fixtures/v3/get-timeline.json +1 -0
- data/spec/fixtures/v3/get-tournament-code.json +1 -0
- data/spec/lol/champion_mastery_request_spec.rb +33 -133
- data/spec/lol/champion_request_spec.rb +17 -30
- data/spec/lol/client_spec.rb +12 -56
- data/spec/lol/league_request_spec.rb +29 -72
- data/spec/lol/lol_status_request_spec.rb +6 -34
- data/spec/lol/masteries_request_spec.rb +15 -0
- data/spec/lol/match_request_spec.rb +45 -10
- data/spec/lol/request_spec.rb +5 -5
- data/spec/lol/runes_request_spec.rb +15 -0
- data/spec/lol/spectator_request_spec.rb +23 -0
- data/spec/lol/static_request_spec.rb +44 -48
- data/spec/lol/summoner_request_spec.rb +20 -71
- data/spec/lol/tournament_request_spec.rb +36 -0
- metadata +92 -175
- data/lib/lol/champion.rb +0 -37
- data/lib/lol/champion_mastery.rb +0 -50
- data/lib/lol/champion_statistics_summary.rb +0 -25
- data/lib/lol/current_game_request.rb +0 -16
- data/lib/lol/featured_games_request.rb +0 -15
- data/lib/lol/game.rb +0 -85
- data/lib/lol/game_request.rb +0 -19
- data/lib/lol/league.rb +0 -32
- data/lib/lol/league_entry.rb +0 -74
- data/lib/lol/mastery.rb +0 -16
- data/lib/lol/mastery_page.rb +0 -28
- data/lib/lol/match_list_request.rb +0 -15
- data/lib/lol/match_summary.rb +0 -59
- data/lib/lol/mini_series.rb +0 -29
- data/lib/lol/model.rb +0 -28
- data/lib/lol/player.rb +0 -21
- data/lib/lol/player_statistic.rb +0 -46
- data/lib/lol/ranked_statistics_summary.rb +0 -35
- data/lib/lol/roster.rb +0 -23
- data/lib/lol/rune_page.rb +0 -28
- data/lib/lol/rune_slot.rb +0 -29
- data/lib/lol/stats_request.rb +0 -35
- data/lib/lol/summoner.rb +0 -36
- data/lib/lol/team.rb +0 -110
- data/lib/lol/team_member.rb +0 -33
- data/lib/lol/team_request.rb +0 -32
- data/lib/lol/team_statistic.rb +0 -53
- data/lib/lol/tournament_code.rb +0 -58
- data/lib/lol/tournament_provider_request.rb +0 -111
- data/spec/fixtures/v1.0/get-champion-mastery-top-champions-10.json +0 -121
- data/spec/fixtures/v1.0/get-champion-mastery-top-champions.json +0 -38
- data/spec/fixtures/v1.0/get-current-game.json +0 -1065
- data/spec/fixtures/v1.0/get-featured-games.json +0 -730
- data/spec/fixtures/v1.0/get-lol-status-shard-by-region.json +0 -39
- data/spec/fixtures/v1.0/get-lol-status-shards.json +0 -78
- data/spec/fixtures/v1.2/get-champion-by-id.json +0 -6
- data/spec/fixtures/v1.2/get-item-by-id.json +0 -6
- data/spec/fixtures/v1.2/get-item.json +0 -1563
- data/spec/fixtures/v1.2/get-mastery-by-id.json +0 -9
- data/spec/fixtures/v1.2/get-mastery.json +0 -389
- data/spec/fixtures/v1.2/get-realm.json +0 -1
- data/spec/fixtures/v1.2/get-rune-by-id.json +0 -26
- data/spec/fixtures/v1.2/get-rune.json +0 -2966
- data/spec/fixtures/v1.2/get-static-champion.json +0 -714
- data/spec/fixtures/v1.2/get-summoner-spell-by-id.json +0 -39
- data/spec/fixtures/v1.2/get-summoner-spell.json +0 -97
- data/spec/fixtures/v1.2/get-versions.json +0 -1
- data/spec/fixtures/v1.3/get-game.json +0 -1040
- data/spec/fixtures/v1.3/get-ranked_stats.json +0 -1
- data/spec/fixtures/v1.3/get-stats.json +0 -1
- data/spec/fixtures/v1.4/get-summoner-by-name.json +0 -1
- data/spec/fixtures/v1.4/get-summoner-masteries.json +0 -898
- data/spec/fixtures/v1.4/get-summoner-name.json +0 -1
- data/spec/fixtures/v1.4/get-summoner-runes.json +0 -2547
- data/spec/fixtures/v1.4/get-summoner.json +0 -1
- data/spec/fixtures/v2.2/get-match.json +0 -1
- data/spec/fixtures/v2.2/get-match_list.json +0 -1
- data/spec/fixtures/v2.4/get-by-summoner.json +0 -1
- data/spec/fixtures/v2.4/get-team.json +0 -1
- data/spec/fixtures/v2.5/get-league-by-team.json +0 -1
- data/spec/fixtures/v2.5/get-league-challenger.json +0 -1
- data/spec/fixtures/v2.5/get-league-entry-by-team.json +0 -1
- data/spec/fixtures/v2.5/get-league-entry.json +0 -1
- data/spec/fixtures/v2.5/get-league-master.json +0 -1
- data/spec/fixtures/v2.5/get-league.json +0 -1
- data/spec/lol/champion_mastery_spec.rb +0 -20
- data/spec/lol/champion_spec.rb +0 -19
- data/spec/lol/champion_statistics_summary_spec.rb +0 -38
- data/spec/lol/current_game_request_spec.rb +0 -47
- data/spec/lol/featured_games_request_spec.rb +0 -39
- data/spec/lol/game_request_spec.rb +0 -32
- data/spec/lol/game_spec.rb +0 -51
- data/spec/lol/league_entry_spec.rb +0 -51
- data/spec/lol/league_spec.rb +0 -31
- data/spec/lol/mastery_page_spec.rb +0 -29
- data/spec/lol/mastery_spec.rb +0 -17
- data/spec/lol/match_list_request_spec.rb +0 -39
- data/spec/lol/match_summary_spec.rb +0 -25
- data/spec/lol/mini_series_spec.rb +0 -25
- data/spec/lol/model_spec.rb +0 -13
- data/spec/lol/player_spec.rb +0 -19
- data/spec/lol/player_statistic_spec.rb +0 -44
- data/spec/lol/ranked_statistics_summary_spec.rb +0 -32
- data/spec/lol/roster_spec.rb +0 -24
- data/spec/lol/rune_page_spec.rb +0 -28
- data/spec/lol/rune_slot_spec.rb +0 -16
- data/spec/lol/stats_request_spec.rb +0 -93
- data/spec/lol/summoner_spec.rb +0 -20
- data/spec/lol/team_member_spec.rb +0 -27
- data/spec/lol/team_request_spec.rb +0 -47
- data/spec/lol/team_spec.rb +0 -54
- data/spec/lol/team_statistic_spec.rb +0 -20
- data/spec/lol/tournament_code_spec.rb +0 -20
- data/spec/lol/tournament_provider_request_spec.rb +0 -73
@@ -4,89 +4,38 @@ require "lol"
|
|
4
4
|
include Lol
|
5
5
|
|
6
6
|
describe SummonerRequest do
|
7
|
-
|
8
|
-
expect(SummonerRequest.ancestors[1]).to eq(Request)
|
9
|
-
end
|
10
|
-
|
11
|
-
let(:request) { SummonerRequest.new('api_key', 'euw') }
|
12
|
-
|
13
|
-
describe "#by_name" do
|
7
|
+
subject { SummonerRequest.new "api_key", "euw" }
|
14
8
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
before(:each) { stub_request(request, 'summoner-by-name', 'summoner/by-name/foo,bar') }
|
19
|
-
|
20
|
-
it "returns an array" do
|
21
|
-
expect(subject).to be_a(Array)
|
22
|
-
end
|
23
|
-
|
24
|
-
it "returns an array of summoners" do
|
25
|
-
expect(subject.map(&:class).uniq).to eq([Summoner])
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
it 'escapes the given names' do
|
30
|
-
stub_request(request, 'summoner-by-name', "summoner/by-name/f%C3%B2%C3%A5,f%C3%B9%C3%AE")
|
31
|
-
request.by_name(['fòå', 'fùî'])
|
32
|
-
end
|
33
|
-
|
34
|
-
it 'downcase the given names' do
|
35
|
-
stub_request(request, 'summoner-by-name', 'summoner/by-name/foo,bar')
|
36
|
-
request.by_name('FoO', 'BAR')
|
37
|
-
end
|
38
|
-
|
39
|
-
it 'strips spaces from names' do
|
40
|
-
stub_request(request, 'summoner-by-name', 'summoner/by-name/foo,bar')
|
41
|
-
request.by_name('Fo o', 'b a r')
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
describe "#name" do
|
46
|
-
subject { request.name("foo", "bar") }
|
47
|
-
|
48
|
-
before(:each) { stub_request(request, 'summoner-name', 'summoner/foo,bar/name') }
|
49
|
-
|
50
|
-
it "returns an hash" do
|
51
|
-
expect(subject).to be_a(Hash)
|
52
|
-
end
|
9
|
+
it "inherits from Request" do
|
10
|
+
expect(SummonerRequest).to be < Request
|
53
11
|
end
|
54
12
|
|
55
|
-
describe "#
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
it "returns an array summoners" do
|
61
|
-
expect(subject.map(&:class).uniq).to eq([Summoner])
|
13
|
+
describe "#find" do
|
14
|
+
it "returns a DynamicModel" do
|
15
|
+
stub_request subject, "summoner", "summoners/23"
|
16
|
+
expect(subject.find 23).to be_a DynamicModel
|
62
17
|
end
|
63
18
|
end
|
64
19
|
|
65
|
-
describe "#
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
it "returns an array of Hash" do
|
71
|
-
expect(subject).to be_a(Hash)
|
20
|
+
describe "#find_by_name" do
|
21
|
+
it "returns a DynamicModel" do
|
22
|
+
stub_request subject, 'summoner-by-name', 'summoners/by-name/foo'
|
23
|
+
expect(subject.find_by_name 'foo').to be_a DynamicModel
|
72
24
|
end
|
73
25
|
|
74
|
-
it "
|
75
|
-
|
26
|
+
it "escapes the given name" do
|
27
|
+
stub_request subject, 'summoner-by-name', 'summoners/by-name/f%C3%B2%C3%A5'
|
28
|
+
subject.find_by_name 'fòå'
|
76
29
|
end
|
77
|
-
end
|
78
30
|
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
before(:each) { stub_request(request, 'summoner-masteries', 'summoner/foo,bar/masteries') }
|
83
|
-
|
84
|
-
it "returns an array of Hash" do
|
85
|
-
expect(subject).to be_a(Hash)
|
31
|
+
it "downcases the given name" do
|
32
|
+
stub_request subject, 'summoner-by-name', 'summoners/by-name/arg'
|
33
|
+
subject.find_by_name 'ARG'
|
86
34
|
end
|
87
35
|
|
88
|
-
it
|
89
|
-
|
36
|
+
it 'strips spaces from names' do
|
37
|
+
stub_request(subject, 'summoner-by-name', 'summoners/by-name/foo')
|
38
|
+
subject.find_by_name('fo o')
|
90
39
|
end
|
91
40
|
end
|
92
41
|
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
require "lol"
|
3
|
+
|
4
|
+
include Lol
|
5
|
+
|
6
|
+
describe TournamentRequest do
|
7
|
+
subject { described_class.new "api_key", "euw" }
|
8
|
+
|
9
|
+
it "inherits from Request" do
|
10
|
+
expect(TournamentRequest).to be < Request
|
11
|
+
end
|
12
|
+
|
13
|
+
describe "#create_provider" do
|
14
|
+
it "returns the provider id" do
|
15
|
+
expect(subject).to receive(:perform_request).with(instance_of(String), :post, { "url" => "https://foo.com", "region" => "EUW" }).and_return 10
|
16
|
+
expect(subject.create_provider url: "https://foo.com").to eq 10
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
describe "#create_tournament" do
|
21
|
+
it "returns the tournament id" do
|
22
|
+
expect(subject).to receive(:perform_request).with(instance_of(String), :post, { "providerId" => 10, "name" => "ASD" }).and_return 10
|
23
|
+
expect(subject.create_tournament provider_id: 10, name: "ASD").to eq 10
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
describe "#find_code" do
|
28
|
+
it "returns a DynamicModel" do
|
29
|
+
stub_request subject, "tournament-code", "codes/foo"
|
30
|
+
expect(subject.find_code 'foo').to be_a DynamicModel
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
pending '#create_codes'
|
35
|
+
pending '#update_code'
|
36
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-lol
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Giovanni Intini
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -202,16 +202,16 @@ dependencies:
|
|
202
202
|
name: httparty
|
203
203
|
requirement: !ruby/object:Gem::Requirement
|
204
204
|
requirements:
|
205
|
-
- -
|
205
|
+
- - '='
|
206
206
|
- !ruby/object:Gem::Version
|
207
|
-
version:
|
207
|
+
version: 0.14.0
|
208
208
|
type: :runtime
|
209
209
|
prerelease: false
|
210
210
|
version_requirements: !ruby/object:Gem::Requirement
|
211
211
|
requirements:
|
212
|
-
- -
|
212
|
+
- - '='
|
213
213
|
- !ruby/object:Gem::Version
|
214
|
-
version:
|
214
|
+
version: 0.14.0
|
215
215
|
- !ruby/object:Gem::Dependency
|
216
216
|
name: activesupport
|
217
217
|
requirement: !ruby/object:Gem::Requirement
|
@@ -248,8 +248,10 @@ extensions: []
|
|
248
248
|
extra_rdoc_files: []
|
249
249
|
files:
|
250
250
|
- ".autotest"
|
251
|
+
- ".editorconfig"
|
251
252
|
- ".gitignore"
|
252
253
|
- ".rspec"
|
254
|
+
- ".rubocop.yml"
|
253
255
|
- ".travis.yml"
|
254
256
|
- Gemfile
|
255
257
|
- Guardfile
|
@@ -260,131 +262,77 @@ files:
|
|
260
262
|
- demo/demo.rb
|
261
263
|
- lib/lol.rb
|
262
264
|
- lib/lol/autoloader.rb
|
263
|
-
- lib/lol/champion.rb
|
264
|
-
- lib/lol/champion_mastery.rb
|
265
265
|
- lib/lol/champion_mastery_request.rb
|
266
266
|
- lib/lol/champion_request.rb
|
267
|
-
- lib/lol/champion_statistics_summary.rb
|
268
267
|
- lib/lol/client.rb
|
269
|
-
- lib/lol/current_game_request.rb
|
270
268
|
- lib/lol/dynamic_model.rb
|
271
|
-
- lib/lol/
|
272
|
-
- lib/lol/game.rb
|
273
|
-
- lib/lol/game_request.rb
|
269
|
+
- lib/lol/featured_game_list.rb
|
274
270
|
- lib/lol/invalid_api_response.rb
|
275
|
-
- lib/lol/league.rb
|
276
|
-
- lib/lol/league_entry.rb
|
277
271
|
- lib/lol/league_request.rb
|
278
272
|
- lib/lol/lol_status_request.rb
|
279
|
-
- lib/lol/
|
280
|
-
- lib/lol/mastery_page.rb
|
281
|
-
- lib/lol/match_list_request.rb
|
273
|
+
- lib/lol/masteries_request.rb
|
282
274
|
- lib/lol/match_request.rb
|
283
|
-
- lib/lol/match_summary.rb
|
284
|
-
- lib/lol/mini_series.rb
|
285
|
-
- lib/lol/model.rb
|
286
|
-
- lib/lol/player.rb
|
287
|
-
- lib/lol/player_statistic.rb
|
288
|
-
- lib/lol/ranked_statistics_summary.rb
|
289
275
|
- lib/lol/request.rb
|
290
|
-
- lib/lol/
|
291
|
-
- lib/lol/
|
292
|
-
- lib/lol/rune_slot.rb
|
276
|
+
- lib/lol/runes_request.rb
|
277
|
+
- lib/lol/spectator_request.rb
|
293
278
|
- lib/lol/static_request.rb
|
294
|
-
- lib/lol/stats_request.rb
|
295
|
-
- lib/lol/summoner.rb
|
296
279
|
- lib/lol/summoner_request.rb
|
297
|
-
- lib/lol/
|
298
|
-
- lib/lol/team_member.rb
|
299
|
-
- lib/lol/team_request.rb
|
300
|
-
- lib/lol/team_statistic.rb
|
301
|
-
- lib/lol/tournament_code.rb
|
302
|
-
- lib/lol/tournament_provider_request.rb
|
280
|
+
- lib/lol/tournament_request.rb
|
303
281
|
- lib/lol/version.rb
|
304
282
|
- ruby-lol.gemspec
|
305
283
|
- spec/acceptance_spec.rb
|
306
284
|
- spec/api_version_spec.rb
|
307
|
-
- spec/fixtures/v1.0/get-champion-mastery-champion.json
|
308
|
-
- spec/fixtures/v1.0/get-champion-mastery-champions.json
|
309
|
-
- spec/fixtures/v1.0/get-champion-mastery-top-champions-10.json
|
310
|
-
- spec/fixtures/v1.0/get-champion-mastery-top-champions.json
|
311
|
-
- spec/fixtures/v1.0/get-current-game.json
|
312
|
-
- spec/fixtures/v1.0/get-featured-games.json
|
313
|
-
- spec/fixtures/v1.0/get-lol-status-shard-by-region.json
|
314
|
-
- spec/fixtures/v1.0/get-lol-status-shards.json
|
315
|
-
- spec/fixtures/v1.2/get-champion-266.json
|
316
|
-
- spec/fixtures/v1.2/get-champion-by-id.json
|
317
|
-
- spec/fixtures/v1.2/get-champion.json
|
318
|
-
- spec/fixtures/v1.2/get-item-by-id.json
|
319
|
-
- spec/fixtures/v1.2/get-item.json
|
320
|
-
- spec/fixtures/v1.2/get-mastery-by-id.json
|
321
|
-
- spec/fixtures/v1.2/get-mastery.json
|
322
|
-
- spec/fixtures/v1.2/get-realm.json
|
323
|
-
- spec/fixtures/v1.2/get-rune-by-id.json
|
324
|
-
- spec/fixtures/v1.2/get-rune.json
|
325
|
-
- spec/fixtures/v1.2/get-static-champion.json
|
326
|
-
- spec/fixtures/v1.2/get-summoner-spell-by-id.json
|
327
|
-
- spec/fixtures/v1.2/get-summoner-spell.json
|
328
|
-
- spec/fixtures/v1.2/get-versions.json
|
329
|
-
- spec/fixtures/v1.3/get-game.json
|
330
|
-
- spec/fixtures/v1.3/get-ranked_stats.json
|
331
|
-
- spec/fixtures/v1.3/get-stats.json
|
332
|
-
- spec/fixtures/v1.4/get-summoner-by-name.json
|
333
|
-
- spec/fixtures/v1.4/get-summoner-masteries.json
|
334
|
-
- spec/fixtures/v1.4/get-summoner-name.json
|
335
|
-
- spec/fixtures/v1.4/get-summoner-runes.json
|
336
|
-
- spec/fixtures/v1.4/get-summoner.json
|
337
285
|
- spec/fixtures/v1/get-get-code.json
|
338
|
-
- spec/fixtures/
|
339
|
-
- spec/fixtures/
|
340
|
-
- spec/fixtures/
|
341
|
-
- spec/fixtures/
|
342
|
-
- spec/fixtures/
|
343
|
-
- spec/fixtures/
|
344
|
-
- spec/fixtures/
|
345
|
-
- spec/fixtures/
|
346
|
-
- spec/fixtures/
|
347
|
-
- spec/fixtures/
|
286
|
+
- spec/fixtures/v3/get-champion-266.json
|
287
|
+
- spec/fixtures/v3/get-champion-all.json
|
288
|
+
- spec/fixtures/v3/get-champion-masteries.json
|
289
|
+
- spec/fixtures/v3/get-champion-mastery.json
|
290
|
+
- spec/fixtures/v3/get-current-game.json
|
291
|
+
- spec/fixtures/v3/get-featured-games.json
|
292
|
+
- spec/fixtures/v3/get-ids-by-tc.json
|
293
|
+
- spec/fixtures/v3/get-league-challenger.json
|
294
|
+
- spec/fixtures/v3/get-league-master.json
|
295
|
+
- spec/fixtures/v3/get-league-positions.json
|
296
|
+
- spec/fixtures/v3/get-league-summoner.json
|
297
|
+
- spec/fixtures/v3/get-lol-status-shard.json
|
298
|
+
- spec/fixtures/v3/get-masteries.json
|
299
|
+
- spec/fixtures/v3/get-match-with-tc.json
|
300
|
+
- spec/fixtures/v3/get-match.json
|
301
|
+
- spec/fixtures/v3/get-matches-recent.json
|
302
|
+
- spec/fixtures/v3/get-matches.json
|
303
|
+
- spec/fixtures/v3/get-runes.json
|
304
|
+
- spec/fixtures/v3/get-static-champions-by-id.json
|
305
|
+
- spec/fixtures/v3/get-static-champions.json
|
306
|
+
- spec/fixtures/v3/get-static-items-by-id.json
|
307
|
+
- spec/fixtures/v3/get-static-items.json
|
308
|
+
- spec/fixtures/v3/get-static-maps.json
|
309
|
+
- spec/fixtures/v3/get-static-masteries-by-id.json
|
310
|
+
- spec/fixtures/v3/get-static-masteries.json
|
311
|
+
- spec/fixtures/v3/get-static-realms.json
|
312
|
+
- spec/fixtures/v3/get-static-runes-by-id.json
|
313
|
+
- spec/fixtures/v3/get-static-runes.json
|
314
|
+
- spec/fixtures/v3/get-static-summoner-spells-by-id.json
|
315
|
+
- spec/fixtures/v3/get-static-summoner-spells.json
|
316
|
+
- spec/fixtures/v3/get-static-versions.json
|
317
|
+
- spec/fixtures/v3/get-summoner-by-name.json
|
318
|
+
- spec/fixtures/v3/get-summoner.json
|
319
|
+
- spec/fixtures/v3/get-timeline.json
|
320
|
+
- spec/fixtures/v3/get-tournament-code.json
|
348
321
|
- spec/lol/champion_mastery_request_spec.rb
|
349
|
-
- spec/lol/champion_mastery_spec.rb
|
350
322
|
- spec/lol/champion_request_spec.rb
|
351
|
-
- spec/lol/champion_spec.rb
|
352
|
-
- spec/lol/champion_statistics_summary_spec.rb
|
353
323
|
- spec/lol/client_spec.rb
|
354
|
-
- spec/lol/current_game_request_spec.rb
|
355
324
|
- spec/lol/dynamic_model_spec.rb
|
356
|
-
- spec/lol/featured_games_request_spec.rb
|
357
|
-
- spec/lol/game_request_spec.rb
|
358
|
-
- spec/lol/game_spec.rb
|
359
325
|
- spec/lol/invalid_api_response_spec.rb
|
360
|
-
- spec/lol/league_entry_spec.rb
|
361
326
|
- spec/lol/league_request_spec.rb
|
362
|
-
- spec/lol/league_spec.rb
|
363
327
|
- spec/lol/lol_status_request_spec.rb
|
364
|
-
- spec/lol/
|
365
|
-
- spec/lol/mastery_spec.rb
|
366
|
-
- spec/lol/match_list_request_spec.rb
|
328
|
+
- spec/lol/masteries_request_spec.rb
|
367
329
|
- spec/lol/match_request_spec.rb
|
368
|
-
- spec/lol/match_summary_spec.rb
|
369
|
-
- spec/lol/mini_series_spec.rb
|
370
|
-
- spec/lol/model_spec.rb
|
371
|
-
- spec/lol/player_spec.rb
|
372
|
-
- spec/lol/player_statistic_spec.rb
|
373
|
-
- spec/lol/ranked_statistics_summary_spec.rb
|
374
330
|
- spec/lol/request_spec.rb
|
375
|
-
- spec/lol/
|
376
|
-
- spec/lol/
|
377
|
-
- spec/lol/rune_slot_spec.rb
|
331
|
+
- spec/lol/runes_request_spec.rb
|
332
|
+
- spec/lol/spectator_request_spec.rb
|
378
333
|
- spec/lol/static_request_spec.rb
|
379
|
-
- spec/lol/stats_request_spec.rb
|
380
334
|
- spec/lol/summoner_request_spec.rb
|
381
|
-
- spec/lol/
|
382
|
-
- spec/lol/team_member_spec.rb
|
383
|
-
- spec/lol/team_request_spec.rb
|
384
|
-
- spec/lol/team_spec.rb
|
385
|
-
- spec/lol/team_statistic_spec.rb
|
386
|
-
- spec/lol/tournament_code_spec.rb
|
387
|
-
- spec/lol/tournament_provider_request_spec.rb
|
335
|
+
- spec/lol/tournament_request_spec.rb
|
388
336
|
- spec/spec_helper.rb
|
389
337
|
- spec/support/helpers.rb
|
390
338
|
- spec/support/model_helpers.rb
|
@@ -408,95 +356,64 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
408
356
|
version: '0'
|
409
357
|
requirements: []
|
410
358
|
rubyforge_project:
|
411
|
-
rubygems_version: 2.
|
359
|
+
rubygems_version: 2.6.12
|
412
360
|
signing_key:
|
413
361
|
specification_version: 4
|
414
362
|
summary: Ruby wrapper to Riot Games API
|
415
363
|
test_files:
|
416
364
|
- spec/acceptance_spec.rb
|
417
365
|
- spec/api_version_spec.rb
|
418
|
-
- spec/fixtures/v1.0/get-champion-mastery-champion.json
|
419
|
-
- spec/fixtures/v1.0/get-champion-mastery-champions.json
|
420
|
-
- spec/fixtures/v1.0/get-champion-mastery-top-champions-10.json
|
421
|
-
- spec/fixtures/v1.0/get-champion-mastery-top-champions.json
|
422
|
-
- spec/fixtures/v1.0/get-current-game.json
|
423
|
-
- spec/fixtures/v1.0/get-featured-games.json
|
424
|
-
- spec/fixtures/v1.0/get-lol-status-shard-by-region.json
|
425
|
-
- spec/fixtures/v1.0/get-lol-status-shards.json
|
426
|
-
- spec/fixtures/v1.2/get-champion-266.json
|
427
|
-
- spec/fixtures/v1.2/get-champion-by-id.json
|
428
|
-
- spec/fixtures/v1.2/get-champion.json
|
429
|
-
- spec/fixtures/v1.2/get-item-by-id.json
|
430
|
-
- spec/fixtures/v1.2/get-item.json
|
431
|
-
- spec/fixtures/v1.2/get-mastery-by-id.json
|
432
|
-
- spec/fixtures/v1.2/get-mastery.json
|
433
|
-
- spec/fixtures/v1.2/get-realm.json
|
434
|
-
- spec/fixtures/v1.2/get-rune-by-id.json
|
435
|
-
- spec/fixtures/v1.2/get-rune.json
|
436
|
-
- spec/fixtures/v1.2/get-static-champion.json
|
437
|
-
- spec/fixtures/v1.2/get-summoner-spell-by-id.json
|
438
|
-
- spec/fixtures/v1.2/get-summoner-spell.json
|
439
|
-
- spec/fixtures/v1.2/get-versions.json
|
440
|
-
- spec/fixtures/v1.3/get-game.json
|
441
|
-
- spec/fixtures/v1.3/get-ranked_stats.json
|
442
|
-
- spec/fixtures/v1.3/get-stats.json
|
443
|
-
- spec/fixtures/v1.4/get-summoner-by-name.json
|
444
|
-
- spec/fixtures/v1.4/get-summoner-masteries.json
|
445
|
-
- spec/fixtures/v1.4/get-summoner-name.json
|
446
|
-
- spec/fixtures/v1.4/get-summoner-runes.json
|
447
|
-
- spec/fixtures/v1.4/get-summoner.json
|
448
366
|
- spec/fixtures/v1/get-get-code.json
|
449
|
-
- spec/fixtures/
|
450
|
-
- spec/fixtures/
|
451
|
-
- spec/fixtures/
|
452
|
-
- spec/fixtures/
|
453
|
-
- spec/fixtures/
|
454
|
-
- spec/fixtures/
|
455
|
-
- spec/fixtures/
|
456
|
-
- spec/fixtures/
|
457
|
-
- spec/fixtures/
|
458
|
-
- spec/fixtures/
|
367
|
+
- spec/fixtures/v3/get-champion-266.json
|
368
|
+
- spec/fixtures/v3/get-champion-all.json
|
369
|
+
- spec/fixtures/v3/get-champion-masteries.json
|
370
|
+
- spec/fixtures/v3/get-champion-mastery.json
|
371
|
+
- spec/fixtures/v3/get-current-game.json
|
372
|
+
- spec/fixtures/v3/get-featured-games.json
|
373
|
+
- spec/fixtures/v3/get-ids-by-tc.json
|
374
|
+
- spec/fixtures/v3/get-league-challenger.json
|
375
|
+
- spec/fixtures/v3/get-league-master.json
|
376
|
+
- spec/fixtures/v3/get-league-positions.json
|
377
|
+
- spec/fixtures/v3/get-league-summoner.json
|
378
|
+
- spec/fixtures/v3/get-lol-status-shard.json
|
379
|
+
- spec/fixtures/v3/get-masteries.json
|
380
|
+
- spec/fixtures/v3/get-match-with-tc.json
|
381
|
+
- spec/fixtures/v3/get-match.json
|
382
|
+
- spec/fixtures/v3/get-matches-recent.json
|
383
|
+
- spec/fixtures/v3/get-matches.json
|
384
|
+
- spec/fixtures/v3/get-runes.json
|
385
|
+
- spec/fixtures/v3/get-static-champions-by-id.json
|
386
|
+
- spec/fixtures/v3/get-static-champions.json
|
387
|
+
- spec/fixtures/v3/get-static-items-by-id.json
|
388
|
+
- spec/fixtures/v3/get-static-items.json
|
389
|
+
- spec/fixtures/v3/get-static-maps.json
|
390
|
+
- spec/fixtures/v3/get-static-masteries-by-id.json
|
391
|
+
- spec/fixtures/v3/get-static-masteries.json
|
392
|
+
- spec/fixtures/v3/get-static-realms.json
|
393
|
+
- spec/fixtures/v3/get-static-runes-by-id.json
|
394
|
+
- spec/fixtures/v3/get-static-runes.json
|
395
|
+
- spec/fixtures/v3/get-static-summoner-spells-by-id.json
|
396
|
+
- spec/fixtures/v3/get-static-summoner-spells.json
|
397
|
+
- spec/fixtures/v3/get-static-versions.json
|
398
|
+
- spec/fixtures/v3/get-summoner-by-name.json
|
399
|
+
- spec/fixtures/v3/get-summoner.json
|
400
|
+
- spec/fixtures/v3/get-timeline.json
|
401
|
+
- spec/fixtures/v3/get-tournament-code.json
|
459
402
|
- spec/lol/champion_mastery_request_spec.rb
|
460
|
-
- spec/lol/champion_mastery_spec.rb
|
461
403
|
- spec/lol/champion_request_spec.rb
|
462
|
-
- spec/lol/champion_spec.rb
|
463
|
-
- spec/lol/champion_statistics_summary_spec.rb
|
464
404
|
- spec/lol/client_spec.rb
|
465
|
-
- spec/lol/current_game_request_spec.rb
|
466
405
|
- spec/lol/dynamic_model_spec.rb
|
467
|
-
- spec/lol/featured_games_request_spec.rb
|
468
|
-
- spec/lol/game_request_spec.rb
|
469
|
-
- spec/lol/game_spec.rb
|
470
406
|
- spec/lol/invalid_api_response_spec.rb
|
471
|
-
- spec/lol/league_entry_spec.rb
|
472
407
|
- spec/lol/league_request_spec.rb
|
473
|
-
- spec/lol/league_spec.rb
|
474
408
|
- spec/lol/lol_status_request_spec.rb
|
475
|
-
- spec/lol/
|
476
|
-
- spec/lol/mastery_spec.rb
|
477
|
-
- spec/lol/match_list_request_spec.rb
|
409
|
+
- spec/lol/masteries_request_spec.rb
|
478
410
|
- spec/lol/match_request_spec.rb
|
479
|
-
- spec/lol/match_summary_spec.rb
|
480
|
-
- spec/lol/mini_series_spec.rb
|
481
|
-
- spec/lol/model_spec.rb
|
482
|
-
- spec/lol/player_spec.rb
|
483
|
-
- spec/lol/player_statistic_spec.rb
|
484
|
-
- spec/lol/ranked_statistics_summary_spec.rb
|
485
411
|
- spec/lol/request_spec.rb
|
486
|
-
- spec/lol/
|
487
|
-
- spec/lol/
|
488
|
-
- spec/lol/rune_slot_spec.rb
|
412
|
+
- spec/lol/runes_request_spec.rb
|
413
|
+
- spec/lol/spectator_request_spec.rb
|
489
414
|
- spec/lol/static_request_spec.rb
|
490
|
-
- spec/lol/stats_request_spec.rb
|
491
415
|
- spec/lol/summoner_request_spec.rb
|
492
|
-
- spec/lol/
|
493
|
-
- spec/lol/team_member_spec.rb
|
494
|
-
- spec/lol/team_request_spec.rb
|
495
|
-
- spec/lol/team_spec.rb
|
496
|
-
- spec/lol/team_statistic_spec.rb
|
497
|
-
- spec/lol/tournament_code_spec.rb
|
498
|
-
- spec/lol/tournament_provider_request_spec.rb
|
416
|
+
- spec/lol/tournament_request_spec.rb
|
499
417
|
- spec/spec_helper.rb
|
500
418
|
- spec/support/helpers.rb
|
501
419
|
- spec/support/model_helpers.rb
|
502
|
-
has_rdoc:
|