util-params 0.2.6 → 0.2.7

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: b1fb7277b0b9af256b60725f7b6fcadb6907ec0b
4
- data.tar.gz: be2aecfaff50f2e508c7edf4254df0d552e49a82
3
+ metadata.gz: 553162b022af13ef9466c3faa9b7682cd840a4bd
4
+ data.tar.gz: 85e1e16fbe3fd874540207d9bc1ca696b9e90d2c
5
5
  SHA512:
6
- metadata.gz: 32de8a0ae8f2f5f1195f6e64bc09dfc7dccc97455c59151f6dfa75b74699d75eaa6fcb9298d9de7f22e3a5028253583d1176e5fd8f32b7ecf964464db6182093
7
- data.tar.gz: f2ae797c6a5ddee203ca83560663cce5ae04d251b34b5a046bdf25c18aa5a2b88739f0b135b42080df90269fbff141610b1e81b0edfe60b55aafae084098a793
6
+ metadata.gz: 7e4e3d2824c6c8d7d68f03835eb0c50591aa1aa6c4ddf6a63f8b11ed839305110ccfae6c7f418db97e73397f5f52215be3d4d09e94955d40404f9adbfb329c47
7
+ data.tar.gz: b094e189ddc062d4f9a52ddf5716de872a8b3352cec5d714dcb923a1b155a5b5c581dbac5d52f832d8a37d0d581c36e11459ddaf8c80097e744784e751fbfcd4
@@ -169,7 +169,7 @@ module Util
169
169
  def _validate_float key, val, min, max
170
170
  return nil if val.blank?
171
171
 
172
- if /[^\d.]/ =~ val
172
+ if /[^\d.]/ =~ val.to_s
173
173
  _push_error "#{key.to_s} type [#{val.to_s}] != float"
174
174
  end
175
175
 
@@ -1,5 +1,5 @@
1
1
  module Util
2
2
  module Params
3
- VERSION = "0.2.6"
3
+ VERSION = "0.2.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: util-params
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - unchi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-28 00:00:00.000000000 Z
11
+ date: 2017-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler