ruby-lol 0.9.12 → 0.9.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/demo/demo.rb +132 -6
  4. data/lib/lol/champion.rb +1 -22
  5. data/lib/lol/champion_request.rb +18 -4
  6. data/lib/lol/client.rb +2 -0
  7. data/lib/lol/game.rb +5 -1
  8. data/lib/lol/{talent.rb → mastery.rb} +2 -6
  9. data/lib/lol/mastery_page.rb +5 -5
  10. data/lib/lol/request.rb +10 -2
  11. data/lib/lol/rune_slot.rb +9 -7
  12. data/lib/lol/stats_request.rb +1 -1
  13. data/lib/lol/summoner_request.rb +1 -1
  14. data/lib/lol/version.rb +1 -1
  15. data/spec/api_version_spec.rb +3 -3
  16. data/spec/fixtures/v1.2/get-champion-266.json +8 -0
  17. data/spec/fixtures/v1.2/get-champion.json +1 -0
  18. data/spec/fixtures/v1.3/get-ranked_stats.json +1 -0
  19. data/spec/fixtures/v1.3/get-stats.json +1 -0
  20. data/spec/fixtures/v1.3/get-summoner-masteries.json +1318 -1318
  21. data/spec/fixtures/v1.3/get-summoner-runes.json +4086 -4086
  22. data/spec/fixtures/v1.4/get-summoner-by-name.json +1 -0
  23. data/spec/fixtures/v1.4/get-summoner-masteries.json +898 -0
  24. data/spec/fixtures/v1.4/get-summoner-name.json +1 -0
  25. data/spec/fixtures/v1.4/get-summoner-runes.json +2547 -0
  26. data/spec/fixtures/v1.4/get-summoner.json +1 -0
  27. data/spec/lol/champion_request_spec.rb +28 -11
  28. data/spec/lol/champion_spec.rb +1 -1
  29. data/spec/lol/client_spec.rb +25 -24
  30. data/spec/lol/game_spec.rb +1 -1
  31. data/spec/lol/mastery_page_spec.rb +4 -4
  32. data/spec/lol/{talent_spec.rb → mastery_spec.rb} +2 -2
  33. data/spec/lol/model_spec.rb +1 -1
  34. data/spec/lol/request_spec.rb +6 -1
  35. data/spec/lol/rune_page_spec.rb +1 -1
  36. data/spec/lol/rune_slot_spec.rb +0 -10
  37. metadata +23 -8
  38. data/lib/lol/rune.rb +0 -23
  39. data/spec/lol/rune_spec.rb +0 -17
@@ -0,0 +1 @@
1
+ {"intinig":{"id":30743211,"name":"intinig","profileIconId":616,"summonerLevel":30,"revisionDate":1396368924000}}
@@ -0,0 +1,898 @@
1
+ {
2
+ "30743211": {
3
+ "pages": [
4
+ {
5
+ "masteries": [
6
+ {
7
+ "rank": 2,
8
+ "id": 4211
9
+ },
10
+ {
11
+ "rank": 1,
12
+ "id": 4121
13
+ },
14
+ {
15
+ "rank": 2,
16
+ "id": 4214
17
+ },
18
+ {
19
+ "rank": 3,
20
+ "id": 4134
21
+ },
22
+ {
23
+ "rank": 3,
24
+ "id": 4222
25
+ },
26
+ {
27
+ "rank": 1,
28
+ "id": 4221
29
+ },
30
+ {
31
+ "rank": 1,
32
+ "id": 4144
33
+ },
34
+ {
35
+ "rank": 3,
36
+ "id": 4122
37
+ },
38
+ {
39
+ "rank": 3,
40
+ "id": 4152
41
+ },
42
+ {
43
+ "rank": 3,
44
+ "id": 4123
45
+ },
46
+ {
47
+ "rank": 1,
48
+ "id": 4111
49
+ },
50
+ {
51
+ "rank": 1,
52
+ "id": 4132
53
+ },
54
+ {
55
+ "rank": 1,
56
+ "id": 4133
57
+ },
58
+ {
59
+ "rank": 1,
60
+ "id": 4232
61
+ },
62
+ {
63
+ "rank": 1,
64
+ "id": 4162
65
+ },
66
+ {
67
+ "rank": 3,
68
+ "id": 4113
69
+ }
70
+ ],
71
+ "current": false,
72
+ "name": "Evelynn",
73
+ "id": 34170152
74
+ },
75
+ {
76
+ "masteries": [
77
+ {
78
+ "rank": 2,
79
+ "id": 4212
80
+ },
81
+ {
82
+ "rank": 2,
83
+ "id": 4211
84
+ },
85
+ {
86
+ "rank": 1,
87
+ "id": 4251
88
+ },
89
+ {
90
+ "rank": 1,
91
+ "id": 4114
92
+ },
93
+ {
94
+ "rank": 4,
95
+ "id": 4112
96
+ },
97
+ {
98
+ "rank": 3,
99
+ "id": 4222
100
+ },
101
+ {
102
+ "rank": 1,
103
+ "id": 4221
104
+ },
105
+ {
106
+ "rank": 3,
107
+ "id": 4122
108
+ },
109
+ {
110
+ "rank": 1,
111
+ "id": 4262
112
+ },
113
+ {
114
+ "rank": 3,
115
+ "id": 4252
116
+ },
117
+ {
118
+ "rank": 1,
119
+ "id": 4231
120
+ },
121
+ {
122
+ "rank": 1,
123
+ "id": 4132
124
+ },
125
+ {
126
+ "rank": 3,
127
+ "id": 4241
128
+ },
129
+ {
130
+ "rank": 1,
131
+ "id": 4234
132
+ },
133
+ {
134
+ "rank": 1,
135
+ "id": 4232
136
+ },
137
+ {
138
+ "rank": 2,
139
+ "id": 4233
140
+ }
141
+ ],
142
+ "current": false,
143
+ "name": "9\/21 AD + AS",
144
+ "id": 34170153
145
+ },
146
+ {
147
+ "masteries": [
148
+ {
149
+ "rank": 2,
150
+ "id": 4212
151
+ },
152
+ {
153
+ "rank": 2,
154
+ "id": 4211
155
+ },
156
+ {
157
+ "rank": 3,
158
+ "id": 4134
159
+ },
160
+ {
161
+ "rank": 1,
162
+ "id": 4151
163
+ },
164
+ {
165
+ "rank": 3,
166
+ "id": 4222
167
+ },
168
+ {
169
+ "rank": 4,
170
+ "id": 4112
171
+ },
172
+ {
173
+ "rank": 1,
174
+ "id": 4144
175
+ },
176
+ {
177
+ "rank": 1,
178
+ "id": 4221
179
+ },
180
+ {
181
+ "rank": 3,
182
+ "id": 4122
183
+ },
184
+ {
185
+ "rank": 3,
186
+ "id": 4152
187
+ },
188
+ {
189
+ "rank": 1,
190
+ "id": 4111
191
+ },
192
+ {
193
+ "rank": 1,
194
+ "id": 4132
195
+ },
196
+ {
197
+ "rank": 3,
198
+ "id": 4142
199
+ },
200
+ {
201
+ "rank": 1,
202
+ "id": 4232
203
+ },
204
+ {
205
+ "rank": 1,
206
+ "id": 4162
207
+ }
208
+ ],
209
+ "current": false,
210
+ "name": "21\/9 AD AS",
211
+ "id": 34170154
212
+ },
213
+ {
214
+ "masteries": [
215
+ {
216
+ "rank": 2,
217
+ "id": 4212
218
+ },
219
+ {
220
+ "rank": 3,
221
+ "id": 4233
222
+ },
223
+ {
224
+ "rank": 1,
225
+ "id": 4242
226
+ },
227
+ {
228
+ "rank": 2,
229
+ "id": 4211
230
+ },
231
+ {
232
+ "rank": 3,
233
+ "id": 4234
234
+ },
235
+ {
236
+ "rank": 1,
237
+ "id": 4251
238
+ },
239
+ {
240
+ "rank": 3,
241
+ "id": 4222
242
+ },
243
+ {
244
+ "rank": 4,
245
+ "id": 4113
246
+ },
247
+ {
248
+ "rank": 1,
249
+ "id": 4221
250
+ },
251
+ {
252
+ "rank": 4,
253
+ "id": 4252
254
+ },
255
+ {
256
+ "rank": 1,
257
+ "id": 4262
258
+ },
259
+ {
260
+ "rank": 1,
261
+ "id": 4231
262
+ },
263
+ {
264
+ "rank": 3,
265
+ "id": 4241
266
+ },
267
+ {
268
+ "rank": 1,
269
+ "id": 4232
270
+ }
271
+ ],
272
+ "current": false,
273
+ "name": "4\/26",
274
+ "id": 34170155
275
+ },
276
+ {
277
+ "masteries": [
278
+ {
279
+ "rank": 2,
280
+ "id": 4212
281
+ },
282
+ {
283
+ "rank": 3,
284
+ "id": 4233
285
+ },
286
+ {
287
+ "rank": 2,
288
+ "id": 4211
289
+ },
290
+ {
291
+ "rank": 1,
292
+ "id": 4121
293
+ },
294
+ {
295
+ "rank": 1,
296
+ "id": 4244
297
+ },
298
+ {
299
+ "rank": 3,
300
+ "id": 4234
301
+ },
302
+ {
303
+ "rank": 4,
304
+ "id": 4112
305
+ },
306
+ {
307
+ "rank": 3,
308
+ "id": 4222
309
+ },
310
+ {
311
+ "rank": 1,
312
+ "id": 4221
313
+ },
314
+ {
315
+ "rank": 4,
316
+ "id": 4252
317
+ },
318
+ {
319
+ "rank": 3,
320
+ "id": 4122
321
+ },
322
+ {
323
+ "rank": 1,
324
+ "id": 4262
325
+ },
326
+ {
327
+ "rank": 1,
328
+ "id": 4132
329
+ },
330
+ {
331
+ "rank": 1,
332
+ "id": 4232
333
+ }
334
+ ],
335
+ "current": false,
336
+ "name": "Thresh",
337
+ "id": 34170156
338
+ },
339
+ {
340
+ "masteries": [
341
+ {
342
+ "rank": 2,
343
+ "id": 4211
344
+ },
345
+ {
346
+ "rank": 2,
347
+ "id": 4214
348
+ },
349
+ {
350
+ "rank": 3,
351
+ "id": 4134
352
+ },
353
+ {
354
+ "rank": 1,
355
+ "id": 4124
356
+ },
357
+ {
358
+ "rank": 1,
359
+ "id": 4114
360
+ },
361
+ {
362
+ "rank": 4,
363
+ "id": 4112
364
+ },
365
+ {
366
+ "rank": 3,
367
+ "id": 4222
368
+ },
369
+ {
370
+ "rank": 1,
371
+ "id": 4144
372
+ },
373
+ {
374
+ "rank": 3,
375
+ "id": 4152
376
+ },
377
+ {
378
+ "rank": 3,
379
+ "id": 4122
380
+ },
381
+ {
382
+ "rank": 1,
383
+ "id": 4141
384
+ },
385
+ {
386
+ "rank": 1,
387
+ "id": 4224
388
+ },
389
+ {
390
+ "rank": 1,
391
+ "id": 4111
392
+ },
393
+ {
394
+ "rank": 1,
395
+ "id": 4132
396
+ },
397
+ {
398
+ "rank": 1,
399
+ "id": 4232
400
+ },
401
+ {
402
+ "rank": 1,
403
+ "id": 4162
404
+ },
405
+ {
406
+ "rank": 1,
407
+ "id": 4131
408
+ }
409
+ ],
410
+ "current": false,
411
+ "name": "21\/9 AD Jungler",
412
+ "id": 34170157
413
+ },
414
+ {
415
+ "masteries": [
416
+ {
417
+ "rank": 1,
418
+ "id": 4242
419
+ },
420
+ {
421
+ "rank": 2,
422
+ "id": 4211
423
+ },
424
+ {
425
+ "rank": 2,
426
+ "id": 4214
427
+ },
428
+ {
429
+ "rank": 1,
430
+ "id": 4114
431
+ },
432
+ {
433
+ "rank": 1,
434
+ "id": 4251
435
+ },
436
+ {
437
+ "rank": 4,
438
+ "id": 4112
439
+ },
440
+ {
441
+ "rank": 3,
442
+ "id": 4222
443
+ },
444
+ {
445
+ "rank": 1,
446
+ "id": 4221
447
+ },
448
+ {
449
+ "rank": 3,
450
+ "id": 4122
451
+ },
452
+ {
453
+ "rank": 1,
454
+ "id": 4262
455
+ },
456
+ {
457
+ "rank": 3,
458
+ "id": 4252
459
+ },
460
+ {
461
+ "rank": 1,
462
+ "id": 4132
463
+ },
464
+ {
465
+ "rank": 3,
466
+ "id": 4241
467
+ },
468
+ {
469
+ "rank": 1,
470
+ "id": 4234
471
+ },
472
+ {
473
+ "rank": 1,
474
+ "id": 4232
475
+ },
476
+ {
477
+ "rank": 2,
478
+ "id": 4233
479
+ }
480
+ ],
481
+ "current": false,
482
+ "name": "Udyr Tanky Jungler",
483
+ "id": 34170158
484
+ },
485
+ {
486
+ "masteries": [
487
+ {
488
+ "rank": 2,
489
+ "id": 4212
490
+ },
491
+ {
492
+ "rank": 1,
493
+ "id": 4242
494
+ },
495
+ {
496
+ "rank": 2,
497
+ "id": 4211
498
+ },
499
+ {
500
+ "rank": 1,
501
+ "id": 4251
502
+ },
503
+ {
504
+ "rank": 1,
505
+ "id": 4114
506
+ },
507
+ {
508
+ "rank": 3,
509
+ "id": 4222
510
+ },
511
+ {
512
+ "rank": 4,
513
+ "id": 4113
514
+ },
515
+ {
516
+ "rank": 1,
517
+ "id": 4221
518
+ },
519
+ {
520
+ "rank": 3,
521
+ "id": 4123
522
+ },
523
+ {
524
+ "rank": 1,
525
+ "id": 4262
526
+ },
527
+ {
528
+ "rank": 3,
529
+ "id": 4252
530
+ },
531
+ {
532
+ "rank": 1,
533
+ "id": 4133
534
+ },
535
+ {
536
+ "rank": 1,
537
+ "id": 4234
538
+ },
539
+ {
540
+ "rank": 3,
541
+ "id": 4241
542
+ },
543
+ {
544
+ "rank": 1,
545
+ "id": 4232
546
+ },
547
+ {
548
+ "rank": 2,
549
+ "id": 4233
550
+ }
551
+ ],
552
+ "current": false,
553
+ "name": "9\/21 AP",
554
+ "id": 34170159
555
+ },
556
+ {
557
+ "masteries": [
558
+ {
559
+ "rank": 2,
560
+ "id": 4212
561
+ },
562
+ {
563
+ "rank": 1,
564
+ "id": 4242
565
+ },
566
+ {
567
+ "rank": 2,
568
+ "id": 4211
569
+ },
570
+ {
571
+ "rank": 2,
572
+ "id": 4214
573
+ },
574
+ {
575
+ "rank": 1,
576
+ "id": 4251
577
+ },
578
+ {
579
+ "rank": 1,
580
+ "id": 4114
581
+ },
582
+ {
583
+ "rank": 3,
584
+ "id": 4222
585
+ },
586
+ {
587
+ "rank": 4,
588
+ "id": 4113
589
+ },
590
+ {
591
+ "rank": 1,
592
+ "id": 4221
593
+ },
594
+ {
595
+ "rank": 3,
596
+ "id": 4123
597
+ },
598
+ {
599
+ "rank": 1,
600
+ "id": 4262
601
+ },
602
+ {
603
+ "rank": 3,
604
+ "id": 4252
605
+ },
606
+ {
607
+ "rank": 1,
608
+ "id": 4133
609
+ },
610
+ {
611
+ "rank": 3,
612
+ "id": 4241
613
+ },
614
+ {
615
+ "rank": 1,
616
+ "id": 4233
617
+ },
618
+ {
619
+ "rank": 1,
620
+ "id": 4232
621
+ }
622
+ ],
623
+ "current": false,
624
+ "name": "9\/21 AP Jungle",
625
+ "id": 34170160
626
+ },
627
+ {
628
+ "masteries": [
629
+ {
630
+ "rank": 2,
631
+ "id": 4211
632
+ },
633
+ {
634
+ "rank": 2,
635
+ "id": 4214
636
+ },
637
+ {
638
+ "rank": 1,
639
+ "id": 4124
640
+ },
641
+ {
642
+ "rank": 1,
643
+ "id": 4114
644
+ },
645
+ {
646
+ "rank": 4,
647
+ "id": 4112
648
+ },
649
+ {
650
+ "rank": 3,
651
+ "id": 4222
652
+ },
653
+ {
654
+ "rank": 4,
655
+ "id": 4113
656
+ },
657
+ {
658
+ "rank": 1,
659
+ "id": 4221
660
+ },
661
+ {
662
+ "rank": 3,
663
+ "id": 4152
664
+ },
665
+ {
666
+ "rank": 3,
667
+ "id": 4123
668
+ },
669
+ {
670
+ "rank": 1,
671
+ "id": 4133
672
+ },
673
+ {
674
+ "rank": 1,
675
+ "id": 4232
676
+ },
677
+ {
678
+ "rank": 3,
679
+ "id": 4143
680
+ },
681
+ {
682
+ "rank": 1,
683
+ "id": 4162
684
+ }
685
+ ],
686
+ "current": true,
687
+ "name": "21\/9 AP Jungler",
688
+ "id": 34170161
689
+ },
690
+ {
691
+ "masteries": [
692
+ {
693
+ "rank": 3,
694
+ "id": 4233
695
+ },
696
+ {
697
+ "rank": 2,
698
+ "id": 4212
699
+ },
700
+ {
701
+ "rank": 2,
702
+ "id": 4211
703
+ },
704
+ {
705
+ "rank": 1,
706
+ "id": 4121
707
+ },
708
+ {
709
+ "rank": 3,
710
+ "id": 4134
711
+ },
712
+ {
713
+ "rank": 1,
714
+ "id": 4244
715
+ },
716
+ {
717
+ "rank": 3,
718
+ "id": 4234
719
+ },
720
+ {
721
+ "rank": 3,
722
+ "id": 4222
723
+ },
724
+ {
725
+ "rank": 1,
726
+ "id": 4221
727
+ },
728
+ {
729
+ "rank": 3,
730
+ "id": 4122
731
+ },
732
+ {
733
+ "rank": 1,
734
+ "id": 4141
735
+ },
736
+ {
737
+ "rank": 1,
738
+ "id": 4111
739
+ },
740
+ {
741
+ "rank": 1,
742
+ "id": 4132
743
+ },
744
+ {
745
+ "rank": 1,
746
+ "id": 4232
747
+ },
748
+ {
749
+ "rank": 3,
750
+ "id": 4113
751
+ },
752
+ {
753
+ "rank": 1,
754
+ "id": 4131
755
+ }
756
+ ],
757
+ "current": false,
758
+ "name": "Renekton",
759
+ "id": 34170162
760
+ },
761
+ {
762
+ "masteries": [
763
+ {
764
+ "rank": 2,
765
+ "id": 4212
766
+ },
767
+ {
768
+ "rank": 3,
769
+ "id": 4233
770
+ },
771
+ {
772
+ "rank": 1,
773
+ "id": 4242
774
+ },
775
+ {
776
+ "rank": 2,
777
+ "id": 4211
778
+ },
779
+ {
780
+ "rank": 1,
781
+ "id": 4243
782
+ },
783
+ {
784
+ "rank": 2,
785
+ "id": 4213
786
+ },
787
+ {
788
+ "rank": 1,
789
+ "id": 4244
790
+ },
791
+ {
792
+ "rank": 3,
793
+ "id": 4234
794
+ },
795
+ {
796
+ "rank": 1,
797
+ "id": 4251
798
+ },
799
+ {
800
+ "rank": 3,
801
+ "id": 4222
802
+ },
803
+ {
804
+ "rank": 1,
805
+ "id": 4221
806
+ },
807
+ {
808
+ "rank": 4,
809
+ "id": 4252
810
+ },
811
+ {
812
+ "rank": 1,
813
+ "id": 4262
814
+ },
815
+ {
816
+ "rank": 1,
817
+ "id": 4231
818
+ },
819
+ {
820
+ "rank": 3,
821
+ "id": 4241
822
+ },
823
+ {
824
+ "rank": 1,
825
+ "id": 4232
826
+ }
827
+ ],
828
+ "current": false,
829
+ "name": "Mastery Page 12",
830
+ "id": 34170163
831
+ },
832
+ {
833
+ "masteries": [
834
+ {
835
+ "rank": 2,
836
+ "id": 4211
837
+ },
838
+ {
839
+ "rank": 2,
840
+ "id": 4214
841
+ },
842
+ {
843
+ "rank": 1,
844
+ "id": 4124
845
+ },
846
+ {
847
+ "rank": 1,
848
+ "id": 4323
849
+ },
850
+ {
851
+ "rank": 1,
852
+ "id": 4114
853
+ },
854
+ {
855
+ "rank": 3,
856
+ "id": 4222
857
+ },
858
+ {
859
+ "rank": 4,
860
+ "id": 4112
861
+ },
862
+ {
863
+ "rank": 4,
864
+ "id": 4113
865
+ },
866
+ {
867
+ "rank": 1,
868
+ "id": 4221
869
+ },
870
+ {
871
+ "rank": 1,
872
+ "id": 4324
873
+ },
874
+ {
875
+ "rank": 3,
876
+ "id": 4333
877
+ },
878
+ {
879
+ "rank": 3,
880
+ "id": 4312
881
+ },
882
+ {
883
+ "rank": 3,
884
+ "id": 4313
885
+ },
886
+ {
887
+ "rank": 1,
888
+ "id": 4232
889
+ }
890
+ ],
891
+ "current": false,
892
+ "name": "Udyr Giovanni",
893
+ "id": 34170164
894
+ }
895
+ ],
896
+ "summonerId": 30743211
897
+ }
898
+ }