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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f57d825feb79e42f3ebd252a9925ff247c6fd13d
4
- data.tar.gz: 58acfbbf4839d94e1bfeaccb4161f0ddd9df2016
3
+ metadata.gz: 6ec250a7c714e83045c4ef8feea7ecb407eae7c5
4
+ data.tar.gz: ca2660bd0f844d65b9e17a56e941ec5e20d4aa81
5
5
  SHA512:
6
- metadata.gz: a693d189f419894e304e744b9ddafcddf9dedee2dd5adf35daa4047621d113520b17f018aa4fcb7890f80625ce64270a89995b3ef5c66c40964fe20b82b2804a
7
- data.tar.gz: b7a9734744ba482d66ae9e7c4e1b78e1fc722f1c18a307cede2563267436a5520b8241b1f0c60b52f7b44ec42b126d078b1af7a5d73ca7ef867182655a579a5a
6
+ metadata.gz: b3889ced3d613f244d92d7789ea25fa60982f7e6f092562ce0cf66af5dda0689f1a4c97ebfbd5dfbd9ee17ceaf0374c680ad6af06fd35e7d55576ff4c23520f7
7
+ data.tar.gz: 5ec075297c930abc2c155f2206dc9596c17781125de24a2c7038cbe014484013039408233232f8bb7e0c870f352f9b42468e2be70b14f8d3f975ebbc6efb4255
@@ -40,7 +40,7 @@ module Lol
40
40
  :eune => 'eun1',
41
41
  :euw => 'euw1',
42
42
  :jp => 'jp1',
43
- :kr => 'kr1',
43
+ :kr => 'kr',
44
44
  :lan => 'la1',
45
45
  :las => 'la2',
46
46
  :na => 'na1',
@@ -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
- "allowedParticipants" => allowed_participants,
50
- "mapType" => map_type,
51
- "metadata" => metadata,
52
- "pickType" => pick_type,
53
- "spectatorType" => spectator_type,
54
- "teamSize" => team_size
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
- "allowedParticipants" => allowed_participants,
72
- "mapType" => map_type,
73
- "pickType" => pick_type,
74
- "spectatorType" => spectator_type
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
@@ -1,3 +1,3 @@
1
1
  module Lol
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
@@ -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.cache_store).to eq(redis_store)
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.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: 2017-08-28 00:00:00.000000000 Z
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.12
373
+ rubygems_version: 2.6.11
374
374
  signing_key:
375
375
  specification_version: 4
376
376
  summary: Ruby wrapper to Riot Games API