ruby-lol 0.9.14 → 0.9.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,39 @@
1
+ {
2
+ "range": "self",
3
+ "resource": "No Cost",
4
+ "maxrank": 1,
5
+ "image": {
6
+ "w": 48,
7
+ "full": "SummonerBoost.png",
8
+ "sprite": "spell0.png",
9
+ "group": "spell",
10
+ "h": 48,
11
+ "y": 0,
12
+ "x": 96
13
+ },
14
+ "cost": [0],
15
+ "cooldown": [0],
16
+ "summonerLevel": 2,
17
+ "id": 1,
18
+ "vars": [{
19
+ "link": "@text",
20
+ "coeff": [3],
21
+ "key": "f1"
22
+ }],
23
+ "sanitizedDescription": "Removes all disables and summoner spell debuffs affecting your champion and lowers the duration of incoming disables by 65% for 3 seconds.",
24
+ "rangeBurn": "self",
25
+ "costType": "NoCost",
26
+ "cooldownBurn": "0",
27
+ "description": "Removes all disables and summoner spell debuffs affecting your champion and lowers the duration of incoming disables by 65% for 3 seconds.",
28
+ "name": "Cleanse",
29
+ "modes": [
30
+ "CLASSIC",
31
+ "ODIN",
32
+ "TUTORIAL",
33
+ "ARAM"
34
+ ],
35
+ "sanitizedTooltip": "Removes all disables and summoner spell debuffs affecting your champion and reduces the duration of disables by 65% for the next {{ f1 }} seconds.",
36
+ "key": "SummonerBoost",
37
+ "costBurn": "0",
38
+ "tooltip": "Removes all disables and summoner spell debuffs affecting your champion and reduces the duration of disables by 65% for the next {{ f1 }} seconds."
39
+ }
@@ -0,0 +1,97 @@
1
+ {
2
+ "data": {
3
+ "SummonerBoost": {
4
+ "id": 1,
5
+ "description": "Removes all disables and summoner spell debuffs affecting your champion and lowers the duration of incoming disables by 65% for 3 seconds.",
6
+ "name": "Cleanse",
7
+ "key": "SummonerBoost",
8
+ "summonerLevel": 2
9
+ },
10
+ "SummonerHeal": {
11
+ "id": 7,
12
+ "description": "Restores 95-475 Health (depending on champion level) and Grants 30% Movement Speed for 2 seconds to you and target allied champion. Additionally removes any healing reduction effects that afflict either champion.",
13
+ "name": "Heal",
14
+ "key": "SummonerHeal",
15
+ "summonerLevel": 1
16
+ },
17
+ "SummonerRevive": {
18
+ "id": 10,
19
+ "description": "Instantly revives your champion at your team's Summoner Platform and increases their Movement Speed for a short duration.",
20
+ "name": "Revive",
21
+ "key": "SummonerRevive",
22
+ "summonerLevel": 1
23
+ },
24
+ "SummonerSmite": {
25
+ "id": 11,
26
+ "description": "Deals 390-1000 true damage (depending on champion level) to target monster or enemy minion.",
27
+ "name": "Smite",
28
+ "key": "SummonerSmite",
29
+ "summonerLevel": 3
30
+ },
31
+ "SummonerExhaust": {
32
+ "id": 3,
33
+ "description": "Exhausts target enemy champion, reducing their Movement Speed and Attack Speed by 30% for 2.5 seconds and reduces their damage dealt by 50% for the duration.",
34
+ "name": "Exhaust",
35
+ "key": "SummonerExhaust",
36
+ "summonerLevel": 8
37
+ },
38
+ "SummonerTeleport": {
39
+ "id": 12,
40
+ "description": "After channeling for 3.5 seconds, teleports your champion to target allied minion, turret, or ward.",
41
+ "name": "Teleport",
42
+ "key": "SummonerTeleport",
43
+ "summonerLevel": 6
44
+ },
45
+ "SummonerMana": {
46
+ "id": 13,
47
+ "description": "Restores 40% of your champion's maximum Mana. Also restores allies for 40% of their maximum Mana",
48
+ "name": "Clarity",
49
+ "key": "SummonerMana",
50
+ "summonerLevel": 1
51
+ },
52
+ "SummonerClairvoyance": {
53
+ "id": 2,
54
+ "description": "Reveals a small area of the map for your team for 5 seconds.",
55
+ "name": "Clairvoyance",
56
+ "key": "SummonerClairvoyance",
57
+ "summonerLevel": 10
58
+ },
59
+ "SummonerBarrier": {
60
+ "id": 21,
61
+ "description": "Shields your champion for 115-455 (depending on champion level) for 2 seconds.",
62
+ "name": "Barrier",
63
+ "key": "SummonerBarrier",
64
+ "summonerLevel": 6
65
+ },
66
+ "SummonerFlash": {
67
+ "id": 4,
68
+ "description": "Teleports your champion a short distance toward your cursor's location.",
69
+ "name": "Flash",
70
+ "key": "SummonerFlash",
71
+ "summonerLevel": 12
72
+ },
73
+ "SummonerHaste": {
74
+ "id": 6,
75
+ "description": "Your champion can move through units and has 27% increased Movement Speed for 10 seconds",
76
+ "name": "Ghost",
77
+ "key": "SummonerHaste",
78
+ "summonerLevel": 1
79
+ },
80
+ "SummonerDot": {
81
+ "id": 14,
82
+ "description": "Ignites target enemy champion, dealing 70-410 true damage (depending on champion level) over 5 seconds, grants you vision of the target, and reduces healing effects on them for the duration.",
83
+ "name": "Ignite",
84
+ "key": "SummonerDot",
85
+ "summonerLevel": 8
86
+ },
87
+ "SummonerOdinGarrison": {
88
+ "id": 17,
89
+ "description": "Allied Turret: Grants massive regeneration for 8 seconds. Enemy Turret: Reduces damage dealt by 80% for 8 seconds.",
90
+ "name": "Garrison",
91
+ "key": "SummonerOdinGarrison",
92
+ "summonerLevel": 1
93
+ }
94
+ },
95
+ "type": "summoner",
96
+ "version": "4.6.3"
97
+ }
@@ -0,0 +1 @@
1
+ ["4.6.3", "4.5.4", "4.4.3", "4.4.2", "4.3.18", "4.3.12", "4.3.10", "4.3.4", "4.3.2", "4.2.6", "4.2.5", "4.2.1", "4.1.43", "4.1.41", "4.1.13", "4.1.9", "4.1.2", "3.15.5", "3.15.4", "3.15.2", "3.14.41", "3.14.23", "3.14.22", "3.14.20", "3.14.19", "3.14.16", "3.14.13", "3.14.12", "3.13.24", "3.13.8", "3.13.6", "3.13.1", "3.12.37", "3.12.36", "3.12.34", "3.12.33", "3.12.26", "3.12.24", "3.12.2", "3.11.4", "3.11.2", "3.10.6", "3.10.3", "3.10.2", "3.9.7", "3.9.5", "3.9.4", "3.8.5", "3.8.3", "3.8.1", "3.7.9", "3.7.2", "3.7.1", "3.6.15", "3.6.14", "0.154.3", "0.154.2", "0.153.2", "0.152.115", "0.152.108", "0.152.107", "0.152.55", "0.151.101", "0.151.2"]
@@ -5,8 +5,8 @@ include Lol
5
5
 
6
6
  describe StaticRequest do
7
7
  describe "api_version" do
8
- it "is v1" do
9
- expect(StaticRequest.api_version).to eq("v1")
8
+ it "is v1.2" do
9
+ expect(StaticRequest.api_version).to eq("v1.2")
10
10
  end
11
11
  end
12
12
 
@@ -14,7 +14,7 @@ describe StaticRequest do
14
14
 
15
15
  describe "api_url" do
16
16
  it "contains a static-data path component" do
17
- expect(request.api_url("foo")).to eq("http://prod.api.pvp.net/api/lol/static-data/euw/v1/foo?api_key=api_key")
17
+ expect(request.api_url("foo")).to eq("http://prod.api.pvp.net/api/lol/static-data/euw/v1.2/foo?api_key=api_key")
18
18
  end
19
19
  end
20
20
 
@@ -32,7 +32,10 @@ describe StaticRequest do
32
32
  end
33
33
 
34
34
  context "without_id" do
35
- let(:fixtures) { load_fixture("#{endpoint.dasherize}", StaticRequest.api_version, "get") }
35
+ let(:fixtures) do
36
+ fixture = endpoint == 'champion' && 'static-champion' || endpoint.dasherize
37
+ load_fixture(fixture, StaticRequest.api_version, "get")
38
+ end
36
39
 
37
40
  subject do
38
41
  expect(request).to receive(:perform_request)
@@ -90,4 +93,21 @@ describe StaticRequest do
90
93
  expect(subject).to be_an(OpenStruct)
91
94
  end
92
95
  end
96
+
97
+ describe "versions" do
98
+ let(:fixtures) { load_fixture("versions", StaticRequest.api_version, "get") }
99
+
100
+ subject do
101
+ expect(request).to receive(:perform_request)
102
+ .with(request.api_url("versions"))
103
+ .and_return(fixtures)
104
+
105
+ request.send("versions").get
106
+ end
107
+
108
+ it "returns an Array" do
109
+ expect(subject).to be_an(Array)
110
+ end
111
+ end
112
+
93
113
  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.9.14
4
+ version: 0.9.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Giovanni Intini
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-04 00:00:00.000000000 Z
11
+ date: 2014-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -309,9 +309,21 @@ files:
309
309
  - spec/api_version_spec.rb
310
310
  - spec/fixtures/v1.1/get-champion.json
311
311
  - spec/fixtures/v1.2/get-champion-266.json
312
+ - spec/fixtures/v1.2/get-champion-by-id.json
312
313
  - spec/fixtures/v1.2/get-champion.json
314
+ - spec/fixtures/v1.2/get-item-by-id.json
315
+ - spec/fixtures/v1.2/get-item.json
316
+ - spec/fixtures/v1.2/get-mastery-by-id.json
317
+ - spec/fixtures/v1.2/get-mastery.json
313
318
  - spec/fixtures/v1.2/get-ranked_stats.json
319
+ - spec/fixtures/v1.2/get-realm.json
320
+ - spec/fixtures/v1.2/get-rune-by-id.json
321
+ - spec/fixtures/v1.2/get-rune.json
322
+ - spec/fixtures/v1.2/get-static-champion.json
314
323
  - spec/fixtures/v1.2/get-stats.json
324
+ - spec/fixtures/v1.2/get-summoner-spell-by-id.json
325
+ - spec/fixtures/v1.2/get-summoner-spell.json
326
+ - spec/fixtures/v1.2/get-versions.json
315
327
  - spec/fixtures/v1.3/get-game.json
316
328
  - spec/fixtures/v1.3/get-ranked_stats.json
317
329
  - spec/fixtures/v1.3/get-stats.json
@@ -325,17 +337,6 @@ files:
325
337
  - spec/fixtures/v1.4/get-summoner-name.json
326
338
  - spec/fixtures/v1.4/get-summoner-runes.json
327
339
  - spec/fixtures/v1.4/get-summoner.json
328
- - spec/fixtures/v1/get-champion-by-id.json
329
- - spec/fixtures/v1/get-champion.json
330
- - spec/fixtures/v1/get-item-by-id.json
331
- - spec/fixtures/v1/get-item.json
332
- - spec/fixtures/v1/get-mastery-by-id.json
333
- - spec/fixtures/v1/get-mastery.json
334
- - spec/fixtures/v1/get-realm.json
335
- - spec/fixtures/v1/get-rune-by-id.json
336
- - spec/fixtures/v1/get-rune.json
337
- - spec/fixtures/v1/get-summoner-spell-by-id.json
338
- - spec/fixtures/v1/get-summoner-spell.json
339
340
  - spec/fixtures/v2.2/get-team.json
340
341
  - spec/fixtures/v2.2/getbyid-team.json
341
342
  - spec/fixtures/v2.3/get-league.json
@@ -399,9 +400,21 @@ test_files:
399
400
  - spec/api_version_spec.rb
400
401
  - spec/fixtures/v1.1/get-champion.json
401
402
  - spec/fixtures/v1.2/get-champion-266.json
403
+ - spec/fixtures/v1.2/get-champion-by-id.json
402
404
  - spec/fixtures/v1.2/get-champion.json
405
+ - spec/fixtures/v1.2/get-item-by-id.json
406
+ - spec/fixtures/v1.2/get-item.json
407
+ - spec/fixtures/v1.2/get-mastery-by-id.json
408
+ - spec/fixtures/v1.2/get-mastery.json
403
409
  - spec/fixtures/v1.2/get-ranked_stats.json
410
+ - spec/fixtures/v1.2/get-realm.json
411
+ - spec/fixtures/v1.2/get-rune-by-id.json
412
+ - spec/fixtures/v1.2/get-rune.json
413
+ - spec/fixtures/v1.2/get-static-champion.json
404
414
  - spec/fixtures/v1.2/get-stats.json
415
+ - spec/fixtures/v1.2/get-summoner-spell-by-id.json
416
+ - spec/fixtures/v1.2/get-summoner-spell.json
417
+ - spec/fixtures/v1.2/get-versions.json
405
418
  - spec/fixtures/v1.3/get-game.json
406
419
  - spec/fixtures/v1.3/get-ranked_stats.json
407
420
  - spec/fixtures/v1.3/get-stats.json
@@ -415,17 +428,6 @@ test_files:
415
428
  - spec/fixtures/v1.4/get-summoner-name.json
416
429
  - spec/fixtures/v1.4/get-summoner-runes.json
417
430
  - spec/fixtures/v1.4/get-summoner.json
418
- - spec/fixtures/v1/get-champion-by-id.json
419
- - spec/fixtures/v1/get-champion.json
420
- - spec/fixtures/v1/get-item-by-id.json
421
- - spec/fixtures/v1/get-item.json
422
- - spec/fixtures/v1/get-mastery-by-id.json
423
- - spec/fixtures/v1/get-mastery.json
424
- - spec/fixtures/v1/get-realm.json
425
- - spec/fixtures/v1/get-rune-by-id.json
426
- - spec/fixtures/v1/get-rune.json
427
- - spec/fixtures/v1/get-summoner-spell-by-id.json
428
- - spec/fixtures/v1/get-summoner-spell.json
429
431
  - spec/fixtures/v2.2/get-team.json
430
432
  - spec/fixtures/v2.2/getbyid-team.json
431
433
  - spec/fixtures/v2.3/get-league.json