ruby-lol 0.9.1 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -1
- data/TODO.md +6 -0
- data/lib/lol.rb +0 -2
- data/lib/lol/champion_request.rb +6 -1
- data/lib/lol/champion_statistics_summary.rb +6 -4
- data/lib/lol/game_request.rb +7 -1
- data/lib/lol/league.rb +0 -4
- data/lib/lol/league_entry.rb +1 -5
- data/lib/lol/league_request.rb +7 -1
- data/lib/lol/player_statistic.rb +8 -5
- data/lib/lol/request.rb +10 -4
- data/lib/lol/stats_request.rb +8 -2
- data/lib/lol/summoner_request.rb +12 -6
- data/lib/lol/team_request.rb +5 -1
- data/lib/lol/version.rb +1 -1
- data/spec/api_version_spec.rb +22 -0
- data/spec/fixtures/v1.2/get-ranked_stats.json +1 -0
- data/spec/fixtures/v1.2/get-stats.json +1 -0
- data/spec/fixtures/v2.2/get-league.json +876 -0
- data/spec/lol/champion_request_spec.rb +2 -2
- data/spec/lol/champion_statistics_summary_spec.rb +14 -2
- data/spec/lol/game_request_spec.rb +2 -2
- data/spec/lol/league_entry_spec.rb +1 -2
- data/spec/lol/league_request_spec.rb +1 -1
- data/spec/lol/league_spec.rb +3 -3
- data/spec/lol/player_statistic_spec.rb +15 -3
- data/spec/lol/request_spec.rb +12 -7
- data/spec/lol/stats_request_spec.rb +8 -8
- data/spec/lol/summoner_request_spec.rb +10 -10
- data/spec/lol/team_request_spec.rb +2 -2
- data/spec/spec_helper.rb +1 -1
- data/spec/support/model_helpers.rb +1 -1
- metadata +11 -8
- data/lib/lol/aggregated_statistic.rb +0 -21
- data/lib/lol/champion_statistic.rb +0 -25
- data/spec/lol/aggregated_statistic_spec.rb +0 -19
- data/spec/lol/champion_statistic_spec.rb +0 -19
@@ -1,19 +0,0 @@
|
|
1
|
-
require "lol"
|
2
|
-
require "spec_helper"
|
3
|
-
|
4
|
-
include Lol
|
5
|
-
|
6
|
-
describe AggregatedStatistic do
|
7
|
-
it_behaves_like 'Lol model' do
|
8
|
-
let(:valid_attributes) { { id: 1 } }
|
9
|
-
end
|
10
|
-
|
11
|
-
%w(id name count).each do |attribute|
|
12
|
-
describe "#{attribute} attribute" do
|
13
|
-
it_behaves_like 'plain attribute' do
|
14
|
-
let(:attribute) { attribute }
|
15
|
-
let(:attribute_value) { 'asd' }
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
require "lol"
|
3
|
-
|
4
|
-
include Lol
|
5
|
-
|
6
|
-
describe ChampionStatistic do
|
7
|
-
it_behaves_like 'Lol model' do
|
8
|
-
let(:valid_attributes) { { id: 1 } }
|
9
|
-
end
|
10
|
-
|
11
|
-
%w(id name c value).each do |attribute|
|
12
|
-
describe "#{attribute} attribute" do
|
13
|
-
it_behaves_like 'plain attribute' do
|
14
|
-
let(:attribute) { attribute }
|
15
|
-
let(:attribute_value) { 'asd' }
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|