util-params 0.2.7 → 0.2.8

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: 553162b022af13ef9466c3faa9b7682cd840a4bd
4
- data.tar.gz: 85e1e16fbe3fd874540207d9bc1ca696b9e90d2c
3
+ metadata.gz: dc57cbfe1a70c7c56c9b977e973feff423986b86
4
+ data.tar.gz: 1021e7291433355f4f9dbb8100c6ff90c775bfdd
5
5
  SHA512:
6
- metadata.gz: 7e4e3d2824c6c8d7d68f03835eb0c50591aa1aa6c4ddf6a63f8b11ed839305110ccfae6c7f418db97e73397f5f52215be3d4d09e94955d40404f9adbfb329c47
7
- data.tar.gz: b094e189ddc062d4f9a52ddf5716de872a8b3352cec5d714dcb923a1b155a5b5c581dbac5d52f832d8a37d0d581c36e11459ddaf8c80097e744784e751fbfcd4
6
+ metadata.gz: 18434868aafecaac497947e732ceff264efbc801801f1dbb8d5aae4581f092d2408127d6e2b5f0b49167f74fd653cd431a8cd48a653b6a0efd5ffb1b7c5b2331
7
+ data.tar.gz: d508efc6d57d452d94dc3323c6476561ca37cf15f4d334c7dd43b809078b2e7aee1dbec9cb785b5f3a4117a6b1db2af0b6f32350e70af2d1a5b8058e6855b7b6
@@ -236,6 +236,10 @@ module Util
236
236
 
237
237
  r = {}
238
238
 
239
+ if elements.nil?
240
+ return val.permit!
241
+ end
242
+
239
243
  elements.map do |options|
240
244
  options ||= {}
241
245
  elem_key = options[:key]
@@ -1,5 +1,5 @@
1
1
  module Util
2
2
  module Params
3
- VERSION = "0.2.7"
3
+ VERSION = "0.2.8"
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.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - unchi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-17 00:00:00.000000000 Z
11
+ date: 2017-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler