dota 0.0.12 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/Guardfile +1 -1
  3. data/README.md +145 -112
  4. data/data/heroes.yml +327 -0
  5. data/data/items.yml +714 -0
  6. data/lib/dota.rb +8 -1
  7. data/lib/dota/api/basic_match.rb +52 -0
  8. data/lib/dota/api/basic_player.rb +61 -0
  9. data/lib/dota/api/client.rb +12 -2
  10. data/lib/dota/api/cosmetic/rarity.rb +1 -9
  11. data/lib/dota/api/entity.rb +13 -0
  12. data/lib/dota/api/friend.rb +1 -9
  13. data/lib/dota/api/hero.rb +2 -111
  14. data/lib/dota/api/item.rb +1 -240
  15. data/lib/dota/api/league.rb +6 -8
  16. data/lib/dota/api/live_match.rb +29 -35
  17. data/lib/dota/api/live_match/player.rb +29 -22
  18. data/lib/dota/api/live_match/side.rb +25 -11
  19. data/lib/dota/api/match.rb +30 -117
  20. data/lib/dota/api/match/draft.rb +1 -9
  21. data/lib/dota/api/match/player.rb +7 -59
  22. data/lib/dota/api/match/side.rb +41 -0
  23. data/lib/dota/api/scheduled_match.rb +32 -0
  24. data/lib/dota/api/team.rb +1 -9
  25. data/lib/dota/version.rb +1 -1
  26. data/spec/dota/api/cosmetic/rarity_spec.rb +2 -2
  27. data/spec/dota/api/hero_spec.rb +2 -6
  28. data/spec/dota/api/item_spec.rb +1 -5
  29. data/spec/dota/api/live_match/player_spec.rb +76 -8
  30. data/spec/dota/api/live_match/side_spec.rb +42 -8
  31. data/spec/dota/api/live_match_spec.rb +5 -16
  32. data/spec/dota/api/match/draft_spec.rb +4 -1
  33. data/spec/dota/api/match/player_spec.rb +7 -3
  34. data/spec/dota/api/match/side_spec.rb +54 -0
  35. data/spec/dota/api/match_spec.rb +0 -62
  36. data/spec/dota/api/scheduled_match_spec.rb +36 -0
  37. data/spec/dota_spec.rb +56 -7
  38. data/spec/fixtures/vcr_cassettes/GetScheduledLeagueGames.yml +112 -0
  39. metadata +15 -5
  40. data/lib/dota/api/live_match/scoreboard.rb +0 -31
  41. data/spec/dota/api/live_match/scoreboard_spec.rb +0 -25
@@ -0,0 +1,714 @@
1
+ 0:
2
+ - empty
3
+ - Empty
4
+ 1:
5
+ - blink
6
+ - Blink Dagger
7
+ 2:
8
+ - blades_of_attack
9
+ - Blades of Attack
10
+ 3:
11
+ - broadsword
12
+ - Broadsword
13
+ 4:
14
+ - chainmail
15
+ - Chainmail
16
+ 5:
17
+ - claymore
18
+ - Claymore
19
+ 6:
20
+ - helm_of_iron_will
21
+ - Helm of Iron Will
22
+ 7:
23
+ - javelin
24
+ - Javelin
25
+ 8:
26
+ - mithril_hammer
27
+ - Mithril Hammer
28
+ 9:
29
+ - platemail
30
+ - Platemail
31
+ 10:
32
+ - quarterstaff
33
+ - Quarterstaff
34
+ 11:
35
+ - quelling_blade
36
+ - Quelling Blade
37
+ 12:
38
+ - ring_of_protection
39
+ - Ring of Protection
40
+ 13:
41
+ - gauntlets
42
+ - Gauntlets of Strength
43
+ 14:
44
+ - slippers
45
+ - Slippers of Agility
46
+ 15:
47
+ - mantle
48
+ - Mantle of Intelligence
49
+ 16:
50
+ - branches
51
+ - Iron Branch
52
+ 17:
53
+ - belt_of_strength
54
+ - Belt of Strength
55
+ 18:
56
+ - boots_of_elves
57
+ - Band of Elvenskin
58
+ 19:
59
+ - robe
60
+ - Robe of the Magi
61
+ 20:
62
+ - circlet
63
+ - Circlet
64
+ 21:
65
+ - ogre_axe
66
+ - Ogre Club
67
+ 22:
68
+ - blade_of_alacrity
69
+ - Blade of Alacrity
70
+ 23:
71
+ - staff_of_wizardry
72
+ - Staff of Wizardry
73
+ 24:
74
+ - ultimate_orb
75
+ - Ultimate Orb
76
+ 25:
77
+ - gloves
78
+ - Gloves of Haste
79
+ 26:
80
+ - lifesteal
81
+ - Morbid Mask
82
+ 27:
83
+ - ring_of_regen
84
+ - Ring of Regen
85
+ 28:
86
+ - sobi_mask
87
+ - Sage's Mask
88
+ 29:
89
+ - boots
90
+ - Boots of Speed
91
+ 30:
92
+ - gem
93
+ - Gem of True Sight
94
+ 31:
95
+ - cloak
96
+ - Cloak
97
+ 32:
98
+ - talisman_of_evasion
99
+ - Talisman of Evasion
100
+ 33:
101
+ - cheese
102
+ - Cheese
103
+ 34:
104
+ - magic_stick
105
+ - Magic Stick
106
+ 35:
107
+ - recipe_magic_wand
108
+ - Recipe: Magic Wand
109
+ 36:
110
+ - magic_wand
111
+ - Magic Wand
112
+ 37:
113
+ - ghost
114
+ - Ghost Scepter
115
+ 38:
116
+ - clarity
117
+ - Clarity
118
+ 39:
119
+ - flask
120
+ - Healing Salve
121
+ 40:
122
+ - dust
123
+ - Dust of Appearance
124
+ 41:
125
+ - bottle
126
+ - Bottle
127
+ 42:
128
+ - ward_observer
129
+ - Observer Ward
130
+ 43:
131
+ - ward_sentry
132
+ - Sentry Ward
133
+ 44:
134
+ - tango
135
+ - Tango
136
+ 45:
137
+ - courier
138
+ - Animal Courier
139
+ 46:
140
+ - tpscroll
141
+ - Town Portal Scroll
142
+ 47:
143
+ - recipe_travel_boots
144
+ - Recipe: Boots of Travel
145
+ 48:
146
+ - travel_boots
147
+ - Boots of Travel
148
+ 49:
149
+ - recipe_phase_boots
150
+ - Recipe: Phase Boots
151
+ 50:
152
+ - phase_boots
153
+ - Phase Boots
154
+ 51:
155
+ - demon_edge
156
+ - Demon Edge
157
+ 52:
158
+ - eagle
159
+ - Eaglesong
160
+ 53:
161
+ - reaver
162
+ - Reaver
163
+ 54:
164
+ - relic
165
+ - Sacred Relic
166
+ 55:
167
+ - hyperstone
168
+ - Hyperstone
169
+ 56:
170
+ - ring_of_health
171
+ - Ring of Health
172
+ 57:
173
+ - void_stone
174
+ - Void Stone
175
+ 58:
176
+ - mystic_staff
177
+ - Mystic Staff
178
+ 59:
179
+ - energy_booster
180
+ - Energy Booster
181
+ 60:
182
+ - point_booster
183
+ - Point Booster
184
+ 61:
185
+ - vitality_booster
186
+ - Vitality Booster
187
+ 62:
188
+ - recipe_power_treads
189
+ - Recipe: Power Treads
190
+ 63:
191
+ - power_treads
192
+ - Power Treads
193
+ 64:
194
+ - recipe_hand_of_midas
195
+ - Recipe: Hand of Midas
196
+ 65:
197
+ - hand_of_midas
198
+ - Hand of Midas
199
+ 66:
200
+ - recipe_oblivion_staff
201
+ - Recipe: Oblivion Staff
202
+ 67:
203
+ - oblivion_staff
204
+ - Oblivion Staff
205
+ 68:
206
+ - recipe_pers
207
+ - Recipe: Perseverance
208
+ 69:
209
+ - pers
210
+ - Perseverance
211
+ 70:
212
+ - recipe_poor_mans_shield
213
+ - Recipe: Poor Man's Shield
214
+ 71:
215
+ - poor_mans_shield
216
+ - Poor Man's Shield
217
+ 72:
218
+ - recipe_bracer
219
+ - Recipe: Bracer
220
+ 73:
221
+ - bracer
222
+ - Bracer
223
+ 74:
224
+ - recipe_wraith_band
225
+ - Recipe: Wraith Band
226
+ 75:
227
+ - wraith_band
228
+ - Wraith Band
229
+ 76:
230
+ - recipe_null_talisman
231
+ - Recipe: Null Talisman
232
+ 77:
233
+ - null_talisman
234
+ - Null Talisman
235
+ 78:
236
+ - recipe_mekansm
237
+ - Recipe: Mekansm
238
+ 79:
239
+ - mekansm
240
+ - Mekansm
241
+ 80:
242
+ - recipe_vladmir
243
+ - Recipe: Vladmir's Offering
244
+ 81:
245
+ - vladmir
246
+ - Vladmir's Offering
247
+ 84:
248
+ - flying_courier
249
+ - Flying Courier
250
+ 85:
251
+ - recipe_buckler
252
+ - Recipe: Buckler
253
+ 86:
254
+ - buckler
255
+ - Buckler
256
+ 87:
257
+ - recipe_ring_of_basilius
258
+ - Recipe: Ring of Basilius
259
+ 88:
260
+ - ring_of_basilius
261
+ - Ring of Basilius
262
+ 89:
263
+ - recipe_pipe
264
+ - Recipe: Pipe of Insight
265
+ 90:
266
+ - pipe
267
+ - Pipe of Insight
268
+ 91:
269
+ - recipe_urn_of_shadows
270
+ - Recipe: Urn of Shadows
271
+ 92:
272
+ - urn_of_shadows
273
+ - Urn of Shadows
274
+ 93:
275
+ - recipe_headdress
276
+ - Recipe: Headdress
277
+ 94:
278
+ - headdress
279
+ - Headdress
280
+ 95:
281
+ - recipe_sheepstick
282
+ - Recipe: Scythe of Vyse
283
+ 96:
284
+ - sheepstick
285
+ - Scythe of Vyse
286
+ 97:
287
+ - recipe_orchid
288
+ - Recipe: Orchid Malevolence
289
+ 98:
290
+ - orchid
291
+ - Orchid Malevolence
292
+ 99:
293
+ - recipe_cyclone
294
+ - Recipe: Eul's Scepter of Divinity
295
+ 100:
296
+ - cyclone
297
+ - Eul's Scepter of Divinity
298
+ 101:
299
+ - recipe_force_staff
300
+ - Recipe: Force Staff
301
+ 102:
302
+ - force_staff
303
+ - Force Staff
304
+ 103:
305
+ - recipe_dagon
306
+ - Recipe: Dagon
307
+ 104:
308
+ - dagon
309
+ - Dagon
310
+ 105:
311
+ - recipe_necronomicon
312
+ - Recipe: Necronomicon
313
+ 106:
314
+ - necronomicon
315
+ - Necronomicon
316
+ 107:
317
+ - recipe_ultimate_scepter
318
+ - Recipe: Aghanim's Scepter
319
+ 108:
320
+ - ultimate_scepter
321
+ - Aghanim's Scepter
322
+ 109:
323
+ - recipe_refresher
324
+ - Recipe: Refresher Orb
325
+ 110:
326
+ - refresher
327
+ - Refresher Orb
328
+ 111:
329
+ - recipe_assault
330
+ - Recipe: Assault Cuirass
331
+ 112:
332
+ - assault
333
+ - Assault Cuirass
334
+ 113:
335
+ - recipe_heart
336
+ - Recipe: Heart of Tarrasque
337
+ 114:
338
+ - heart
339
+ - Heart of Tarrasque
340
+ 115:
341
+ - recipe_black_king_bar
342
+ - Recipe: Black King Bar
343
+ 116:
344
+ - black_king_bar
345
+ - Black King Bar
346
+ 117:
347
+ - aegis
348
+ - Aegis of the Immortal
349
+ 118:
350
+ - recipe_shivas_guard
351
+ - Recipe: Shiva's Guard
352
+ 119:
353
+ - shivas_guard
354
+ - Shiva's Guard
355
+ 120:
356
+ - recipe_bloodstone
357
+ - Recipe: Bloodstone
358
+ 121:
359
+ - bloodstone
360
+ - Bloodstone
361
+ 122:
362
+ - recipe_sphere
363
+ - Recipe: Linken's Sphere
364
+ 123:
365
+ - sphere
366
+ - Linken's Sphere
367
+ 124:
368
+ - recipe_vanguard
369
+ - Recipe: Vanguard
370
+ 125:
371
+ - vanguard
372
+ - Vanguard
373
+ 126:
374
+ - recipe_blade_mail
375
+ - Recipe: Blade Mail
376
+ 127:
377
+ - blade_mail
378
+ - Blade Mail
379
+ 128:
380
+ - recipe_soul_booster
381
+ - Recipe: Soul Booster
382
+ 129:
383
+ - soul_booster
384
+ - Soul Booster
385
+ 130:
386
+ - recipe_hood_of_defiance
387
+ - Recipe: Hood of Defiance
388
+ 131:
389
+ - hood_of_defiance
390
+ - Hood of Defiance
391
+ 132:
392
+ - recipe_rapier
393
+ - Recipe: Divine Rapier
394
+ 133:
395
+ - rapier
396
+ - Divine Rapier
397
+ 134:
398
+ - recipe_monkey_king_bar
399
+ - Recipe: Monkey King Bar
400
+ 135:
401
+ - monkey_king_bar
402
+ - Monkey King Bar
403
+ 136:
404
+ - recipe_radiance
405
+ - Recipe: Radiance
406
+ 137:
407
+ - radiance
408
+ - Radiance
409
+ 138:
410
+ - recipe_butterfly
411
+ - Recipe: Butterfly
412
+ 139:
413
+ - butterfly
414
+ - Butterfly
415
+ 140:
416
+ - recipe_greater_crit
417
+ - Recipe: Daedalus
418
+ 141:
419
+ - greater_crit
420
+ - Daedalus
421
+ 142:
422
+ - recipe_basher
423
+ - Recipe: Skull Basher
424
+ 143:
425
+ - basher
426
+ - Skull Basher
427
+ 144:
428
+ - recipe_bfury
429
+ - Recipe: Battle Fury
430
+ 145:
431
+ - bfury
432
+ - Battle Fury
433
+ 146:
434
+ - recipe_manta
435
+ - Recipe: Manta Style
436
+ 147:
437
+ - manta
438
+ - Manta Style
439
+ 148:
440
+ - recipe_lesser_crit
441
+ - Recipe: Crystalys
442
+ 149:
443
+ - lesser_crit
444
+ - Crystalys
445
+ 150:
446
+ - recipe_armlet
447
+ - Recipe: Armlet of Mordiggian
448
+ 151:
449
+ - armlet
450
+ - Armlet of Mordiggian
451
+ 152:
452
+ - invis_sword
453
+ - Shadow Blade
454
+ 153:
455
+ - recipe_sange_and_yasha
456
+ - Recipe: Sange and Yasha
457
+ 154:
458
+ - sange_and_yasha
459
+ - Sange and Yasha
460
+ 155:
461
+ - recipe_satanic
462
+ - Recipe: Satanic
463
+ 156:
464
+ - satanic
465
+ - Satanic
466
+ 157:
467
+ - recipe_mjollnir
468
+ - Recipe: Mjollnir
469
+ 158:
470
+ - mjollnir
471
+ - Mjollnir
472
+ 159:
473
+ - recipe_skadi
474
+ - Recipe: Eye of Skadi
475
+ 160:
476
+ - skadi
477
+ - Eye of Skadi
478
+ 161:
479
+ - recipe_sange
480
+ - Recipe: Sange
481
+ 162:
482
+ - sange
483
+ - Sange
484
+ 163:
485
+ - recipe_helm_of_the_dominator
486
+ - Recipe: Helm of the Dominator
487
+ 164:
488
+ - helm_of_the_dominator
489
+ - Helm of the Dominator
490
+ 165:
491
+ - recipe_maelstrom
492
+ - Recipe: Maelstrom
493
+ 166:
494
+ - maelstrom
495
+ - Maelstrom
496
+ 167:
497
+ - recipe_desolator
498
+ - Recipe: Desolator
499
+ 168:
500
+ - desolator
501
+ - Desolator
502
+ 169:
503
+ - recipe_yasha
504
+ - Recipe: Yasha
505
+ 170:
506
+ - yasha
507
+ - Yasha
508
+ 171:
509
+ - recipe_mask_of_madness
510
+ - Recipe: Mask of Madness
511
+ 172:
512
+ - mask_of_madness
513
+ - Mask of Madness
514
+ 173:
515
+ - recipe_diffusal_blade
516
+ - Recipe: Diffusal Blade
517
+ 174:
518
+ - diffusal_blade
519
+ - Diffusal Blade
520
+ 175:
521
+ - recipe_ethereal_blade
522
+ - Recipe: Ethereal Blade
523
+ 176:
524
+ - ethereal_blade
525
+ - Ethereal Blade
526
+ 177:
527
+ - recipe_soul_ring
528
+ - Recipe: Soul Ring
529
+ 178:
530
+ - soul_ring
531
+ - Soul Ring
532
+ 179:
533
+ - recipe_arcane_boots
534
+ - Recipe: Arcane Boots
535
+ 180:
536
+ - arcane_boots
537
+ - Arcane Boots
538
+ 181:
539
+ - orb_of_venom
540
+ - Orb of Venom
541
+ 182:
542
+ - stout_shield
543
+ - Stout Shield
544
+ 183:
545
+ - recipe_invis_sword
546
+ - Recipe: Shadow Blade
547
+ 184:
548
+ - recipe_ancient_janggo
549
+ - Recipe: Drum of Endurance
550
+ 185:
551
+ - ancient_janggo
552
+ - Drum of Endurance
553
+ 186:
554
+ - recipe_medallion_of_courage
555
+ - Recipe: Medallion of Courage
556
+ 187:
557
+ - medallion_of_courage
558
+ - Medallion of Courage
559
+ 188:
560
+ - smoke_of_deceit
561
+ - Smoke of Deceit
562
+ 189:
563
+ - recipe_veil_of_discord
564
+ - Recipe: Veil of Discord
565
+ 190:
566
+ - veil_of_discord
567
+ - Veil of Discord
568
+ 191:
569
+ - recipe_necronomicon_2
570
+ - Recipe: Necronomicon
571
+ 192:
572
+ - recipe_necronomicon_3
573
+ - Recipe: Necronomicon
574
+ 193:
575
+ - necronomicon_2
576
+ - Necronomicon
577
+ 194:
578
+ - necronomicon_3
579
+ - Necronomicon
580
+ 195:
581
+ - recipe_diffusal_blade_2
582
+ - Recipe: Diffusal Blade
583
+ 196:
584
+ - diffusal_blade_2
585
+ - Diffusal Blade
586
+ 197:
587
+ - recipe_dagon_2
588
+ - Recipe: Dagon
589
+ 198:
590
+ - recipe_dagon_3
591
+ - Recipe: Dagon
592
+ 199:
593
+ - recipe_dagon_4
594
+ - Recipe: Dagon
595
+ 200:
596
+ - recipe_dagon_5
597
+ - Recipe: Dagon
598
+ 201:
599
+ - dagon_2
600
+ - Dagon
601
+ 202:
602
+ - dagon_3
603
+ - Dagon
604
+ 203:
605
+ - dagon_4
606
+ - Dagon
607
+ 204:
608
+ - dagon_5
609
+ - Dagon
610
+ 205:
611
+ - recipe_rod_of_atos
612
+ - Recipe: Rod of Atos
613
+ 206:
614
+ - rod_of_atos
615
+ - Rod of Atos
616
+ 207:
617
+ - recipe_abyssal_blade
618
+ - Recipe: Abyssal Blade
619
+ 208:
620
+ - abyssal_blade
621
+ - Abyssal Blade
622
+ 209:
623
+ - recipe_heavens_halberd
624
+ - Recipe: Heaven's Halberd
625
+ 210:
626
+ - heavens_halberd
627
+ - Heaven's Halberd
628
+ 211:
629
+ - recipe_ring_of_aquila
630
+ - Recipe: Ring of Aquila
631
+ 212:
632
+ - ring_of_aquila
633
+ - Ring of Aquila
634
+ 213:
635
+ - recipe_tranquil_boots
636
+ - Recipe: Tranquil Boots
637
+ 214:
638
+ - tranquil_boots
639
+ - Tranquil Boots
640
+ 215:
641
+ - shadow_amulet
642
+ - Shadow Amulet
643
+ 216:
644
+ - halloween_candy_corn
645
+ - Greevil Taffy
646
+ 217:
647
+ - mystery_hook
648
+ - DOTA_Tooltip_Ability_item_mystery_hook
649
+ 218:
650
+ - mystery_arrow
651
+ - DOTA_Tooltip_Ability_item_mystery_arrow
652
+ 219:
653
+ - mystery_missile
654
+ - DOTA_Tooltip_Ability_item_mystery_missile
655
+ 220:
656
+ - mystery_toss
657
+ - DOTA_Tooltip_Ability_item_mystery_toss
658
+ 221:
659
+ - mystery_vacuum
660
+ - DOTA_Tooltip_Ability_item_mystery_vacuum
661
+ 226:
662
+ - halloween_rapier
663
+ - DOTA_Tooltip_Ability_item_halloween_rapier
664
+ 227:
665
+ - present
666
+ - A Gift!
667
+ 228:
668
+ - greevil_whistle
669
+ - Greevil Whistle
670
+ 229:
671
+ - winter_stocking
672
+ - Xmas Stocking
673
+ 230:
674
+ - winter_skates
675
+ - Speed Skates
676
+ 231:
677
+ - winter_cake
678
+ - Fruit-bit Cake
679
+ 232:
680
+ - winter_cookie
681
+ - Wizard Cookie
682
+ 233:
683
+ - winter_coco
684
+ - Cocoa with Marshmallows
685
+ 234:
686
+ - winter_ham
687
+ - Clove Studded Ham
688
+ 235:
689
+ - greevil_whistle_toggle
690
+ - Greevil Whistle
691
+ 236:
692
+ - winter_kringle
693
+ - Kringle
694
+ 237:
695
+ - winter_mushroom
696
+ - Snow Mushroom
697
+ 238:
698
+ - winter_greevil_treat
699
+ - Greevil Treat
700
+ 239:
701
+ - winter_greevil_garbage
702
+ - Greevil Chow
703
+ 240:
704
+ - winter_greevil_chewy
705
+ - Greevil Blink Bone
706
+ 241:
707
+ - tango_single
708
+ - Tango (Shared)
709
+ 242:
710
+ - crimson_guard
711
+ - Crimson Guard
712
+ 243:
713
+ - recipe_crimson_guard
714
+ - Recipe: Crimson Guard