js_obj 1.0.6 → 1.0.7

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: ed95e986ee51e639fb030509e3485caabf0a9866
4
- data.tar.gz: 9c040517f3833500c5cfbadc7be219387c569695
3
+ metadata.gz: 790d55f55c9183b382bccba8d561853924807686
4
+ data.tar.gz: cee86fe742a22a11e97981a4b04a5772455eed99
5
5
  SHA512:
6
- metadata.gz: 041ef102f7b9d78358722deff3b748da78d6dd9d08010f4f6c9cc68228e152ab139288fb5f082c4ddf172b81abbce54bdc3e87c34d7d77b2adcd7ff6d03c0e62
7
- data.tar.gz: fb1d6523129c5247572478d8e94f828deea6e10ce68cfbcb5905e46ba6cacc8cbb55cbc34849466424486c5ace1466358b0240dcf2f502214caa2237078b34e4
6
+ metadata.gz: 67ccf286611d44b639435343ae0a90d67ef2ae099cbb2eec12a8765b69466c7ce44c4cb9c37f4a435e32323cb6ba51fc56bc5f2fab3cf2be1ce3512cdf357e5b
7
+ data.tar.gz: f1416ad7693f65fd167db6f99bb699696662b5181cc22222eb9f0dc509dda968964aca9d76edd9aac468e7356fe7a89841740c4100b96f638411b52c82280f5c
@@ -1,3 +1,3 @@
1
1
  module JsObj
2
- VERSION = "1.0.6"
2
+ VERSION = "1.0.7"
3
3
  end
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
- self[name]
8
+ key?(name) ? self[name] : self[name.to_s]
9
9
  else
10
10
  super
11
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: js_obj
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Ota
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-08-02 00:00:00.000000000 Z
11
+ date: 2016-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler