Browse Source

Add unknown hero, add Unknown value to Api::League::Tiers enum

master
Andrew Zah 2 years ago
parent
commit
13a44e767d
Signed by: Andrew Zah <zah@andrewzah.com> GPG Key ID: 0AE942445EB70FAA
4 changed files with 9 additions and 5 deletions
  1. 2
    2
      README.md
  2. 4
    1
      data/hero.yml
  3. 1
    1
      spec/dota_spec.cr
  4. 2
    1
      src/dota/api/league.cr

+ 2
- 2
README.md View File

@@ -1,6 +1,6 @@
1
-![Logo](http://sli.mg/24VTkn.png)
1
+![Logo](https://i.imgur.com/DekYueq.png)
2 2
 
3
-[![Build Status](https://travis-ci.org/azah/dotacr.svg?branch=master)](https://travis-ci.org/azah/dotacr)   [![docs](https://img.shields.io/badge/docs-latest-green.svg)](https://azah.github.io/dotacr/doc/master/)
3
+[![Build Status](https://travis-ci.org/azah/dotacr.svg?branch=master)](https://travis-ci.org/azah/dotacr)   [![docs](https://img.shields.io/badge/docs-latest-green.svg)](https://azah.github.io/dotacr/doc/)
4 4
 
5 5
 # dotacr
6 6
 

+ 4
- 1
data/hero.yml View File

@@ -333,4 +333,7 @@
333 333
   - Winter Wyvern
334 334
 113:
335 335
   - arc_warden
336
-  - Arc Warden
336
+  - Arc Warden
337
+999:
338
+  - Unknown
339
+  - Unknown

+ 1
- 1
spec/dota_spec.cr View File

@@ -39,7 +39,7 @@ describe Dota do
39 39
 
40 40
     it "gets heroes" do
41 41
       heroes = api.heroes
42
-      heroes.size.should eq 112
42
+      heroes.size.should eq 113
43 43
     end
44 44
 
45 45
     it "gets ability" do

+ 2
- 1
src/dota/api/league.cr View File

@@ -22,7 +22,8 @@ module Dota
22 22
       end
23 23
 
24 24
       enum Tiers
25
-        Amateur      = 1
25
+        Unknown      = 0
26
+        Amateur
26 27
         Professional
27 28
         Premier
28 29
       end

Loading…
Cancel
Save