ClosestSum 1.2.0-universal-linux → 1.3.0-universal-linux

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ClosestSum.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b6646b21eabf6699f6ad0e1bc06a14c6421ce76
4
- data.tar.gz: ba9081c8c5f13d18598b935420436e9f4300cae1
3
+ metadata.gz: 33a39caa85808f514d62032b497e420682075875
4
+ data.tar.gz: 24ee60ae5373edd88f037b2e4cd18f60ce92bef6
5
5
  SHA512:
6
- metadata.gz: a25bfe2448af2eeb30be93eaca6351021e1e9b7c5dc987acda107a614aa99b0c5ecc1e4f0e82976f2fbb54e2d08f5cba73619db0c0f3d858d88178d3fa9c6e10
7
- data.tar.gz: 49cc507025f70fa94993e525c26c8a3cb47b72b5bb8e40a4a74d7c6f406e97a0ae277b5c8467c1ef985c3336b72cb45849e3f87ca17a3de9ba53628d86ae8a6b
6
+ metadata.gz: 6f7fcdd8d26e5036bfc37647bd26955d313cad8482f1d9f7428fca0074908f417c3d6ad71cfed521e131e9a5213004f5ceed2ba208202d4b4ebda1d4d3022d29
7
+ data.tar.gz: 05b0900e83e205dd4dd7a245044b089427a36986c367388e65a77db30d04a3e7f17c2cdcf05d0b2dc11822812281fbcb6c41b8301bd701a76b1ce02c2a8afdbf
data/lib/ClosestSum.rb CHANGED
@@ -31,7 +31,7 @@ module ClosestSum
31
31
  def ClosestSum.validate (inputHash)
32
32
  inputHash.each {
33
33
  |x, y|
34
- raise TypeError.new 'non-numeric value detected' if ((y.class.to_s == 'Fixnum') or (y.class.to_s == 'Float') or (y.class.to_s == 'Numeric') or (y.class.to_s == 'Integer'))
34
+ raise TypeError.new 'non-numeric value detected' if ((y.class.to_s == 'Fixnum') or (y.class.to_s == 'Float') or (y.class.to_s == 'Numeric') or (y.class.to_s == 'Integer') or (y.class.to_s == :Fixnum) or (y.class.to_s == :Float) or (y.class.to_s == :Numeric) or (y.class.to_s == :Integer))
35
35
  }
36
36
  end
37
37
  def ClosestSum.calculate (targetSize, inputHash)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ClosestSum
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: universal-linux
6
6
  authors:
7
7
  - dE