ClosestSum 1.3.0-universal-linux → 1.4.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: 33a39caa85808f514d62032b497e420682075875
4
- data.tar.gz: 24ee60ae5373edd88f037b2e4cd18f60ce92bef6
3
+ metadata.gz: a4287e9b18859bd0e50a0b2d6df75924e658fad3
4
+ data.tar.gz: e0b53718065056e0532c160bd4e88e76fed8892f
5
5
  SHA512:
6
- metadata.gz: 6f7fcdd8d26e5036bfc37647bd26955d313cad8482f1d9f7428fca0074908f417c3d6ad71cfed521e131e9a5213004f5ceed2ba208202d4b4ebda1d4d3022d29
7
- data.tar.gz: 05b0900e83e205dd4dd7a245044b089427a36986c367388e65a77db30d04a3e7f17c2cdcf05d0b2dc11822812281fbcb6c41b8301bd701a76b1ce02c2a8afdbf
6
+ metadata.gz: bd9895dbc68f3b0aa788332b51c2e2d81f199735a0e062a72f4a2575272a1539ab2098473fe7432454948b925e6237b0ca9d50da012333bf143af349f6d67fec
7
+ data.tar.gz: 469c3f7ee3d8e0906a5adca62343e2861675b189c2216df3490072c84191fe78cdf9093a85274e8e554646b2bb2af0ea68f24f4c56a618f43de9a75615a2911b
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') or (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.3.0
4
+ version: 1.4.0
5
5
  platform: universal-linux
6
6
  authors:
7
7
  - dE