eqn 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e11ea96f9a2aaa28a8cc84f85f2d9cddc3dbdf9
4
- data.tar.gz: 343629ec590a51c1d1cc681e765847fd678f1a93
3
+ metadata.gz: 54393bb5d135a35878d980e4eb80e2c674b8af73
4
+ data.tar.gz: 9ec1f256a788a33e476a99b525f19b4a4219b336
5
5
  SHA512:
6
- metadata.gz: fdc50130a2876c2071250e64d517c0941b00ed450dc5e133182354e752729c037db43a46c8739baeb05c0c32cc86a51d3f5058b3642fb3ad637b78cf032a4b69
7
- data.tar.gz: 7b26401ea648a23376c8ab5cd27faf39bea1a3cf2cfba87763c5576bc66488631a5b972e08baa70d72993a03c17d457dfbc75868b41aa57c1954f30084446239
6
+ metadata.gz: c5b81fbc567232602f3487e2d501b720ee18979679b16bc6156a7177700b90a78f3042080d866998ec6bef7ebd839790b02961e4a78bfcd720853851e9fc5b4b
7
+ data.tar.gz: c522f70ddbc6bee765a82ac7ac232d60feb24cfa3d5557b2c425a201af35d81548097441036bb891872df020592ca36618626689ff51305328935ff8332a386f
@@ -3,7 +3,7 @@ module Eqn
3
3
  class << self
4
4
  def calc(data)
5
5
  result = Parser.parse(data).value
6
- fail ZeroDivisionError if result == Float::INFINITY
6
+ fail ZeroDivisionError if result.is_a?(Float) && result.abs == Float::INFINITY
7
7
  result
8
8
  end
9
9
 
@@ -1,3 +1,3 @@
1
1
  module Eqn
2
- VERSION = '1.0.4'
2
+ VERSION = '1.0.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eqn
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zach Schneider