jsonj-integration 1.0 → 1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/jsonj.rb +2 -2
  3. metadata +3 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  SHA1:
3
3
  metadata.gz: !binary |-
4
- ZWNhY2RiNDU0NDM2MzcwMmUyZGM4NDM0NzI2MjRkZWY1MTlmMWVhZg==
4
+ NDAzZjMwMTczMTIyZDNiZjUyMjg4YWNkYzhkNGE5MjA2NDA2NDM2MA==
5
5
  data.tar.gz: !binary |-
6
- ZTA4YThhYzI4YTdkN2ZjMTk3NTNkOWEwNGQ3ZDg2NTAwYTMxZWU4NA==
6
+ YTg0NTEyOGQ1YmE2MTY5NjU2YzNhMDMzNjNiYzgzZGY1MDMwYTg1ZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YTRhMjIyNDljYmQzZDRmZmY0MDk2MGIyMmVhMDZjMWVmMmQ5ZWE1MWQ1Zjk1
10
- ZDJhOGQ4Yzk3MWQ4YjU5Mjk4Nzk1NTI0MGJmNTY5ODZlZjYyNjhlMzAxNGRj
11
- NDNhODJlNjEzNGQxMWNjYTliYWVhNTVjMjEwMzk4ZDY1NTgzZGM=
9
+ NTEwNTc5OWQ1ZmFkMGFhYjFhMzMxYWYwNTg5N2QwZDA5N2I1NGIxZmRkYTM1
10
+ ZjhkOWY5YmZjZWJmYzBjYjJhOWQ3ZDIxZjhmZjc0MDcxNzg3NDk1OGZmNzUz
11
+ YTIxMzk2Mzc4ZjU0Y2FkMzQ1Y2Y1MWJjN2E5MGMyODk2ZDFlZjU=
12
12
  data.tar.gz: !binary |-
13
- ZmI0OGIyMDIwYjA3ZTFlZmY4ZjVmMzRjNmE4YzcxZGVhMDQwYTY0YzkzZWQ5
14
- YzFkYWE1NjBjMTgzM2E5MTQ4MGYwZWQwZWQ1M2U1YjI5NjkzMGNmN2JhNTE2
15
- ZDllZjM5N2M2NTAwODY2ZTkzM2NlYjRhNzQwMDFhODE5ZjVkNGE=
13
+ ZWIyN2MyNzY1NjczNmEwODlkYmRmMzg4YmEwODAxOGNiOWVjYjlhYzkzYjBi
14
+ ODVkOTE4M2E3ODcwZDYxZmU1ODRkMTA4MTRhYTY0NGU3NzYxNTY2MGJlM2Fj
15
+ MTRlZjA4NDJkMjQ3ZTU1ZmIwNDQxMjk3NTU3ZGE5NDMwMTRhYmM=
@@ -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.0'
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: []