util-params 0.2.4 → 0.2.5

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: f368eeb54dffabb9a1edbd1cf7a0a88a12f9fbf5
4
- data.tar.gz: 96ff89d272851c5b7af165d1aead1259c2f30da8
3
+ metadata.gz: 1b2b594af32fecd9245a58dfe2fa138a5174e7c5
4
+ data.tar.gz: bc7781c75a0c77b1372a03e2293842f0565e417e
5
5
  SHA512:
6
- metadata.gz: 5c70d18e5737557be118aef18d7832ac368f026d8c2b5db8686b49e17c5f99877146dbaed24f45a5f6d9c72eb8175f41bcc3bf6596dec5e7e5a5ec3da6a4fc0a
7
- data.tar.gz: 3b738ad72bfe215068e33e7f16c89150dc4ef53a60866def9a2d3cf2cd7c70ab6a00fffe51b4a7b3f4a0a9c8a234ba9ec12dd4aa2409ad70936dfbb3a0a3a643
6
+ metadata.gz: 2ef9500586ca166ede936c01b979557914be882106ebbd97c68aa0129107fe40494b55f714ca95dd021fe1a2d5bac23339a947fea8420ea278be0473a7ccefb6
7
+ data.tar.gz: ca80253a8988c4fad97ae81a8a0767eb34fb6f29eb74f5371c0756493b9b98f86a148a3dc008e8e6f8632eb38a948dd421a15a6f89c907719d5f3c47040ad759
@@ -72,7 +72,7 @@ module Util
72
72
 
73
73
  def _load_val vals, key, default, is_require
74
74
 
75
- unless vals.has_key? key
75
+ unless vals.try(:has_key?, key)
76
76
  _push_error "#{key.to_s} == nil" if is_require
77
77
  return default
78
78
  end
@@ -1,5 +1,5 @@
1
1
  module Util
2
2
  module Params
3
- VERSION = "0.2.4"
3
+ VERSION = "0.2.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: util-params
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - unchi