util-params 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b76df33dec504afda2e70986287005d449b6434
4
- data.tar.gz: b5dc45683e7644e4dd4f3c9f8cc8ef2e956b6a73
3
+ metadata.gz: 96f59d7df0490d15c8eb825fad58af0dc12b4e25
4
+ data.tar.gz: 58b546d2246566f6389341a703b1ed0e441ce9a8
5
5
  SHA512:
6
- metadata.gz: 9bd2337b0a2e3cd6aabe976031c526131026507142a631c66a28555afeb97a801e0a6939819a4e01f7fb8ae55ba15f1eb2e1cdac0666562c4b631b79bc1a9248
7
- data.tar.gz: 493578f109393d4489d3f4b5f755f4d42e46bac8dc5afa4b239db6fd98627bd1d63eb3f969d0118c0fd9f718d26db33fd693dfa665afbce85ebacf7d8c249f14
6
+ metadata.gz: d9981c4b6a0f85a7b63961450159ea85d83b845b0b1d1d23f65e58605f2d44dd7e7d299a38d07cbc0a027465ec9b9ab466eddd2a9015224758dc25d40b6074fd
7
+ data.tar.gz: 65c8c7f22c258b89a3293186ee7a5795fd5321d2034bf475440e3d8f95a60651286840693f2fdf2ddb91f869e6202a65d515dcd2b8d7775dc5dca8bd47931963
@@ -30,31 +30,31 @@ module Util
30
30
  _validate key, options[:type], val, options
31
31
  end
32
32
 
33
- def get_int_params key, options
33
+ def get_int_params key, options={}
34
34
  get_params options.merge(key: key, type: Type::INTEGER)
35
35
  end
36
36
 
37
- def get_str_params key, options
37
+ def get_str_params key, options={}
38
38
  get_params options.merge(key: key, type: Type::STRING)
39
39
  end
40
40
 
41
- def get_float_params key, options
41
+ def get_float_params key, options={}
42
42
  get_params options.merge(key: key, type: Type::FLOAT)
43
43
  end
44
44
 
45
- def get_file_params key, options
45
+ def get_file_params key, options={}
46
46
  get_params options.merge(key: key, type: Type::FILE)
47
47
  end
48
48
 
49
- def get_bool_params key, options
49
+ def get_bool_params key, options={}
50
50
  get_params options.merge(key: key, type: Type::BOOLEAN)
51
51
  end
52
52
 
53
- def get_array_params key, options
53
+ def get_array_params key, options={}
54
54
  get_params options.merge(key: key, type: Type::ARRAY)
55
55
  end
56
56
 
57
- def get_object_params key, options
57
+ def get_object_params key, options={}
58
58
  get_params options.merge(key: key, type: Type::OBJECT)
59
59
  end
60
60
 
@@ -1,5 +1,5 @@
1
1
  module Util
2
2
  module Params
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
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.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - unchi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-18 00:00:00.000000000 Z
11
+ date: 2016-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler