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 @@
![Logo](http://sli.mg/24VTkn.png)
![Logo](https://i.imgur.com/DekYueq.png)

[![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/)
[![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/)

# dotacr


+ 4
- 1
data/hero.yml View File

@@ -333,4 +333,7 @@
- Winter Wyvern
113:
- arc_warden
- Arc Warden
- Arc Warden
999:
- Unknown
- Unknown

+ 1
- 1
spec/dota_spec.cr View File

@@ -39,7 +39,7 @@ describe Dota do

it "gets heroes" do
heroes = api.heroes
heroes.size.should eq 112
heroes.size.should eq 113
end

it "gets ability" do

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

@@ -22,7 +22,8 @@ module Dota
end

enum Tiers
Amateur = 1
Unknown = 0
Amateur
Professional
Premier
end

Loading…
Cancel
Save