sinatra-param-validator 0.15.0 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/sinatra/param_validator/helpers.rb +1 -1
- data/lib/sinatra/param_validator/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6ca19a9842af1724e306e23e2f35e7c68a7a3f51033a511ab0a373804782d02
|
4
|
+
data.tar.gz: c7d4e25ed4955248102c235bcf34b6cb8372b34315d0fc79d2e5cffb7588efa8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e39d7290c4df32d5eb7a93c7c7098e129b3c7e818de68c6e78af95c0a7ca3c15bcce15d447751b1c87962ec53fc7a9f4d002e3bea07764fc5e03bb2e5e0cbf34
|
7
|
+
data.tar.gz: dba6a7b0a516f7bb182628c57e8e88c2385ffa630552b81fb443cb0cb20e7e3c1f3866e6dfe802bdfc91b8d24be965c868ce8a5eb712ff37459fba1892562b8b
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -58,7 +58,7 @@ module Sinatra
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def _update_params_hash(key, parameter, default)
|
61
|
-
if params.key?(key)
|
61
|
+
if params.key?(key) && !params[key].nil?
|
62
62
|
params[key] = parameter.coerced unless parameter.coerced.nil?
|
63
63
|
elsif !default.nil?
|
64
64
|
params[key] = default.respond_to?(:call) ? default.call : default
|