mana-potion 0.2.1 → 0.3.0

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: 9c9af497a3a05274ce139631e4a087e51de2b326
4
- data.tar.gz: 1ec2c03a3ce9bb2634d061d8960cbe8b57885f82
3
+ metadata.gz: 927b2e38bdfad7feb263cfdcaf83309ec84eba6a
4
+ data.tar.gz: 6fe541621b542f6f422a23e84cb8d3e2ae64e69c
5
5
  SHA512:
6
- metadata.gz: c54e21e53dc8664a61520c34f990d601e9faa01d6109619b6b72a793164609d4f8789ac1d860a5d330ee5e2975cd58a020ee85d322c57db6ec3b6ca1cc035250
7
- data.tar.gz: f9db133e5d0ce04186e48d4804b1bacff363861b380e7c808ce58394f1ff162ad92880d26ab966592fe95997457504c668f1b52f289d7da846069a0f19165302
6
+ metadata.gz: 0a3c5c70b86493937fb00725c2bf2470036c53930117f9e933227b12b42e75d5798d5bd2550eb157d012eafe307a3d9f717b56e79fb61ab13ad08457d4e3f5eb
7
+ data.tar.gz: 0d0d53d421600cc260a4317adb6447ad014cc3b2d64e2c3aa57508af9fbf23a0da9de85b0bab941cd1dbd4b661400f37209a36a3d981c3c9cfd4f9d19b3c68b2
@@ -13,6 +13,10 @@ module ManaPotion
13
13
  count >= limit
14
14
  end
15
15
 
16
+ def remaining
17
+ limit - count
18
+ end
19
+
16
20
  def association
17
21
  owner
18
22
  .class
@@ -1,3 +1,3 @@
1
1
  module ManaPotion
2
- VERSION = "0.2.1"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mana-potion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - mrodrigues