util-params 0.2.5 → 0.2.6

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: 1b2b594af32fecd9245a58dfe2fa138a5174e7c5
4
- data.tar.gz: bc7781c75a0c77b1372a03e2293842f0565e417e
3
+ metadata.gz: b1fb7277b0b9af256b60725f7b6fcadb6907ec0b
4
+ data.tar.gz: be2aecfaff50f2e508c7edf4254df0d552e49a82
5
5
  SHA512:
6
- metadata.gz: 2ef9500586ca166ede936c01b979557914be882106ebbd97c68aa0129107fe40494b55f714ca95dd021fe1a2d5bac23339a947fea8420ea278be0473a7ccefb6
7
- data.tar.gz: ca80253a8988c4fad97ae81a8a0767eb34fb6f29eb74f5371c0756493b9b98f86a148a3dc008e8e6f8632eb38a948dd421a15a6f89c907719d5f3c47040ad759
6
+ metadata.gz: 32de8a0ae8f2f5f1195f6e64bc09dfc7dccc97455c59151f6dfa75b74699d75eaa6fcb9298d9de7f22e3a5028253583d1176e5fd8f32b7ecf964464db6182093
7
+ data.tar.gz: f2ae797c6a5ddee203ca83560663cce5ae04d251b34b5a046bdf25c18aa5a2b88739f0b135b42080df90269fbff141610b1e81b0edfe60b55aafae084098a793
@@ -192,7 +192,8 @@ module Util
192
192
  return nil if val.blank?
193
193
  return false if val == 'false'
194
194
  return true if val == 'true'
195
- val.to_i > 0
195
+ return false if val == '0'
196
+ true
196
197
  end
197
198
 
198
199
  def _validate_file key, val
@@ -1,5 +1,5 @@
1
1
  module Util
2
2
  module Params
3
- VERSION = "0.2.5"
3
+ VERSION = "0.2.6"
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.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - unchi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-07 00:00:00.000000000 Z
11
+ date: 2016-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler