util-params 0.2.15 → 0.2.16

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: 4800d067c2b2a1e9bbaecc25ca7b79cd5ea8983e01b79867c9940be9958ad3b4
4
- data.tar.gz: 4f10de1303ce8be478f299bf8fc3c4b1080331f2a8720fed8603681019f58e0b
3
+ metadata.gz: b6a4cebd8bc73b642e51a67fe5db0f9d417a542578684720d22c05887fd18bd8
4
+ data.tar.gz: 9870e092bf79625353fde55d47342ee805f58ea93f68c99f402c159ef8dd576a
5
5
  SHA512:
6
- metadata.gz: 7a1b5da511f3e7274525b4e5a9d82de60b9517e163b3290fd80f5208477095d8995a3edd4c76269e8874f3d0210c48f7cdb922918cf3a8fb02ad6bf23d081003
7
- data.tar.gz: cee6a73eee9dd8746913c9369517b7faf78e95eae10da422a71ae8c87965bc7f6486d076f7272f66d692d12865e101bb72085e18a7fa1dbc531de3a0581550c8
6
+ metadata.gz: 18612b7bf64be5cb733ca274b0dfdd7be5db097e68bd9984d904f602b15fb0c31789d6b2bf69e49c82b572f8926a9d557f32d887cbf2acea7af8929f182c1d57
7
+ data.tar.gz: 597d3f0a6b50c492c88c12e95e327ea6097ee64997e88ea9b598e6faee7632f3933ba3311050a471e7d8555779b40af5c652fcf631175035036eec83706254e7
@@ -127,7 +127,7 @@ module Util
127
127
  def _validate_int key, val, min, max, enum
128
128
  return nil if val.blank?
129
129
 
130
- if /[^\d]/ =~ val.to_s
130
+ if /[^\d-]/ =~ val.to_s
131
131
  _push_error "#{key.to_s} type [#{val.to_s}] != integer"
132
132
  end
133
133
 
@@ -1,5 +1,5 @@
1
1
  module Util
2
2
  module Params
3
- VERSION = "0.2.15"
3
+ VERSION = "0.2.16"
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.15
4
+ version: 0.2.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - unchi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-23 00:00:00.000000000 Z
11
+ date: 2018-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler