js_obj 1.0.7 → 1.0.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: 790d55f55c9183b382bccba8d561853924807686
4
- data.tar.gz: cee86fe742a22a11e97981a4b04a5772455eed99
3
+ metadata.gz: 77864a5e1a3d7e2acea922b14da1b2c66a2570f3
4
+ data.tar.gz: 557717beb7a264c2d995ec35f41ec2dca5a03aa6
5
5
  SHA512:
6
- metadata.gz: 67ccf286611d44b639435343ae0a90d67ef2ae099cbb2eec12a8765b69466c7ce44c4cb9c37f4a435e32323cb6ba51fc56bc5f2fab3cf2be1ce3512cdf357e5b
7
- data.tar.gz: f1416ad7693f65fd167db6f99bb699696662b5181cc22222eb9f0dc509dda968964aca9d76edd9aac468e7356fe7a89841740c4100b96f638411b52c82280f5c
6
+ metadata.gz: 71199fefbe294529d5a7861e00caba8f0198aabaf9b004dbf1f79248f6bc7b76fc8f788c2a5fe730d7a1b21fa6835b9be75bfa454dd643480ab53bfbe9541dfd
7
+ data.tar.gz: 4ce6417fc038246c0fdede393e831782f7b98a16d6d971bd85dda3cd6d791842accf137b497cc12e4aa41ae1cf521013567392a07cbb9b08ac41e85f23b362cc
data/lib/js_obj.rb CHANGED
@@ -5,7 +5,7 @@ class Hash
5
5
  if name.match(/=$/)
6
6
  self[name[0..-2].intern] = value
7
7
  elsif !name.nil?
8
- key?(name) ? self[name] : self[name.to_s]
8
+ key?(name) ? self[name] : key?(name.to_s) ? self[name.to_s] : nil
9
9
  else
10
10
  super
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module JsObj
2
- VERSION = "1.0.7"
2
+ VERSION = "1.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: js_obj
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Ota