ruby-lol 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lol/request.rb +1 -1
- data/lib/lol/tournament_request.rb +10 -10
- data/lib/lol/version.rb +1 -1
- data/spec/lol/request_spec.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ec250a7c714e83045c4ef8feea7ecb407eae7c5
|
4
|
+
data.tar.gz: ca2660bd0f844d65b9e17a56e941ec5e20d4aa81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3889ced3d613f244d92d7789ea25fa60982f7e6f092562ce0cf66af5dda0689f1a4c97ebfbd5dfbd9ee17ceaf0374c680ad6af06fd35e7d55576ff4c23520f7
|
7
|
+
data.tar.gz: 5ec075297c930abc2c155f2206dc9596c17781125de24a2c7038cbe014484013039408233232f8bb7e0c870f352f9b42468e2be70b14f8d3f975ebbc6efb4255
|
data/lib/lol/request.rb
CHANGED
@@ -46,12 +46,12 @@ module Lol
|
|
46
46
|
map_type: "SUMMONERS_RIFT", metadata: nil, team_size: 5,
|
47
47
|
pick_type: "TOURNAMENT_DRAFT", spectator_type: "ALL"
|
48
48
|
body = {
|
49
|
-
"
|
50
|
-
"mapType"
|
51
|
-
"metadata"
|
52
|
-
"pickType"
|
53
|
-
"spectatorType"
|
54
|
-
"teamSize"
|
49
|
+
"allowedSummonerIds" => allowed_participants,
|
50
|
+
"mapType" => map_type,
|
51
|
+
"metadata" => metadata,
|
52
|
+
"pickType" => pick_type,
|
53
|
+
"spectatorType" => spectator_type,
|
54
|
+
"teamSize" => team_size
|
55
55
|
}.compact
|
56
56
|
uri_params = {
|
57
57
|
"tournamentId" => tournament_id,
|
@@ -68,10 +68,10 @@ module Lol
|
|
68
68
|
# @param [String] spectator_type The spectator type of the game. Valid values are NONE, LOBBYONLY, ALL.
|
69
69
|
def update_code tournament_code, allowed_participants: nil, map_type: nil, pick_type: nil, spectator_type: nil
|
70
70
|
body = {
|
71
|
-
"
|
72
|
-
"mapType"
|
73
|
-
"pickType"
|
74
|
-
"spectatorType"
|
71
|
+
"allowedSummonerIds" => allowed_participants,
|
72
|
+
"mapType" => map_type,
|
73
|
+
"pickType" => pick_type,
|
74
|
+
"spectatorType" => spectator_type
|
75
75
|
}.compact
|
76
76
|
perform_request api_url("codes/#{tournament_code}"), :put, body
|
77
77
|
end
|
data/lib/lol/version.rb
CHANGED
data/spec/lol/request_spec.rb
CHANGED
@@ -19,8 +19,8 @@ describe Request do
|
|
19
19
|
|
20
20
|
it "sets the cache store" do
|
21
21
|
redis_store = Redis.new
|
22
|
-
c = ChampionRequest.new("api_key", "euw", redis_store)
|
23
|
-
expect(c.
|
22
|
+
c = ChampionRequest.new("api_key", "euw", {redis: redis_store})
|
23
|
+
expect(c.store).to eq(redis_store)
|
24
24
|
end
|
25
25
|
|
26
26
|
it "returns an error if the cache store is not supported" do
|
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: 1.1.
|
4
|
+
version: 1.1.2
|
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: 2018-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -370,7 +370,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
370
370
|
version: '0'
|
371
371
|
requirements: []
|
372
372
|
rubyforge_project:
|
373
|
-
rubygems_version: 2.6.
|
373
|
+
rubygems_version: 2.6.11
|
374
374
|
signing_key:
|
375
375
|
specification_version: 4
|
376
376
|
summary: Ruby wrapper to Riot Games API
|