jsonj-integration 1.0 → 1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/jsonj.rb +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDAzZjMwMTczMTIyZDNiZjUyMjg4YWNkYzhkNGE5MjA2NDA2NDM2MA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTg0NTEyOGQ1YmE2MTY5NjU2YzNhMDMzNjNiYzgzZGY1MDMwYTg1ZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTEwNTc5OWQ1ZmFkMGFhYjFhMzMxYWYwNTg5N2QwZDA5N2I1NGIxZmRkYTM1
|
10
|
+
ZjhkOWY5YmZjZWJmYzBjYjJhOWQ3ZDIxZjhmZjc0MDcxNzg3NDk1OGZmNzUz
|
11
|
+
YTIxMzk2Mzc4ZjU0Y2FkMzQ1Y2Y1MWJjN2E5MGMyODk2ZDFlZjU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZWIyN2MyNzY1NjczNmEwODlkYmRmMzg4YmEwODAxOGNiOWVjYjlhYzkzYjBi
|
14
|
+
ODVkOTE4M2E3ODcwZDYxZmU1ODRkMTA4MTRhYTY0NGU3NzYxNTY2MGJlM2Fj
|
15
|
+
MTRlZjA4NDJkMjQ3ZTU1ZmIwNDQxMjk3NTU3ZGE5NDMwMTRhYmM=
|
data/lib/jsonj.rb
CHANGED
@@ -63,7 +63,7 @@ end
|
|
63
63
|
|
64
64
|
JsonObject.send(:define_method, '[]') do |key|
|
65
65
|
val = self.get(key)
|
66
|
-
if val.isPrimitive
|
66
|
+
if val && val.isPrimitive
|
67
67
|
case val.type.to_s
|
68
68
|
when 'string'
|
69
69
|
val.asString
|
@@ -81,7 +81,7 @@ end
|
|
81
81
|
|
82
82
|
JsonArray.send(:define_method, '[]') do |key|
|
83
83
|
val = self.get(key)
|
84
|
-
if val.isPrimitive
|
84
|
+
if val && val.isPrimitive
|
85
85
|
case val.type.to_s
|
86
86
|
when 'string'
|
87
87
|
val.asString
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jsonj-integration
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.1'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jilles van Gurp
|
@@ -18,7 +18,8 @@ extra_rdoc_files: []
|
|
18
18
|
files:
|
19
19
|
- lib/jsonj.rb
|
20
20
|
homepage: https://github.com/jillesvangurp/jsonj-integration
|
21
|
-
licenses:
|
21
|
+
licenses:
|
22
|
+
- Expat
|
22
23
|
metadata: {}
|
23
24
|
post_install_message:
|
24
25
|
rdoc_options: []
|