util-params 0.2.14 → 0.2.15

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
  SHA256:
3
- metadata.gz: 4bbfd6fcaaf880b55406350dc06479b44c9baff72e3e650727e6aebc36bbf4ac
4
- data.tar.gz: f7f8435b2333617454ae7c8726fbc308dca5607e539c639e8eb9c30e1aea1a02
3
+ metadata.gz: 4800d067c2b2a1e9bbaecc25ca7b79cd5ea8983e01b79867c9940be9958ad3b4
4
+ data.tar.gz: 4f10de1303ce8be478f299bf8fc3c4b1080331f2a8720fed8603681019f58e0b
5
5
  SHA512:
6
- metadata.gz: 3e61ae2fd083797359649d85983936fa19d2cdd56022264f6d36c8a8d6782e077e73541b7f2e3421e5dcc7e88800b3a3760ffcbc87bc1ef3ba4c3e8d6c53b5fe
7
- data.tar.gz: 74f29c417a7da06ce6b7a4f73bdadefee685026793322383afe7e66d810942445114c7ed308f301a65c0da9c1e5d1bd5b0baa38be47cc18e74093591ea712235
6
+ metadata.gz: 7a1b5da511f3e7274525b4e5a9d82de60b9517e163b3290fd80f5208477095d8995a3edd4c76269e8874f3d0210c48f7cdb922918cf3a8fb02ad6bf23d081003
7
+ data.tar.gz: cee6a73eee9dd8746913c9369517b7faf78e95eae10da422a71ae8c87965bc7f6486d076f7272f66d692d12865e101bb72085e18a7fa1dbc531de3a0581550c8
@@ -181,7 +181,7 @@ module Util
181
181
  def _validate_float key, val, min, max
182
182
  return nil if val.blank?
183
183
 
184
- if /[^\d.]/ =~ val.to_s
184
+ if /[^\d.-]/ =~ val.to_s
185
185
  _push_error "#{key.to_s} type [#{val.to_s}] != float"
186
186
  end
187
187
 
@@ -1,5 +1,5 @@
1
1
  module Util
2
2
  module Params
3
- VERSION = "0.2.14"
3
+ VERSION = "0.2.15"
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.14
4
+ version: 0.2.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - unchi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-28 00:00:00.000000000 Z
11
+ date: 2018-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler