hearthstone_api_utils 0.0.2 → 0.0.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d61295730a2b0afbb33ac8ccde6de43a495b9454
4
- data.tar.gz: 5bb7a4d76667b9b551f876292d5d8a5fe0de1870
3
+ metadata.gz: ef8d41a11131935f87e3f1721c0d8f24df6aa3b0
4
+ data.tar.gz: 25d70a6469f7702b59ffb57bda58cd18a854c26b
5
5
  SHA512:
6
- metadata.gz: 619e3bf9ad0965c3ef6ae4e4813bab5d50ebc748adafcf352584d1fe045c4ab2618365d8f98e301b80bf102114b0e1f2ae4e5c7d1206b4452ab3e20d1c6b758d
7
- data.tar.gz: 10c8c7ecd0a5bbb17aa7c49f872d971b63b982f508c8a61deaba1302133b11ec3450803604f8eafbf08b392d06049bbfec06e24355c80927a64a372e63c17340
6
+ metadata.gz: 156292d045742c2dae8510bb0d3aaa625289bb82ea483667531d85797b56e8382c0b9e9f7991138281c5cd0bb9d41f8ca85c41468060f3909bdb12ea9a5ecf87
7
+ data.tar.gz: 63737b0a601e5792a07959b20c1fd6ee6e7be8d2915034012d1502850b99d68e84b43677cd9296917449975847813e812489bbd974080896570a3657e6a80e07
@@ -61,9 +61,9 @@ class HearthstoneAPI::CardParser
61
61
  end
62
62
 
63
63
  def add_stats card
64
- health, attack = card['health'], card['attack']
64
+ health, durability, attack = card['health'], card['durability'], card['attack']
65
65
 
66
- if health and attack
66
+ if (health and attack) || (durability and attack)
67
67
  card['stats'] = "#{health}/#{attack}"
68
68
  end
69
69
  end
@@ -1,3 +1,3 @@
1
1
  module HearthstoneApiUtils
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hearthstone_api_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Vanadio