ffi-yajl 0.1.2-universal-java → 0.1.3-universal-java

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: fe659eeb4fe808b50322e19cdc22d7416d0e922e
4
- data.tar.gz: 461f634749b19eafbbc770e869e79e85a4d7a73b
3
+ metadata.gz: f37a0fa2d3cfa8b3f49a374fcdf14bb25a359acc
4
+ data.tar.gz: 5503b294adb725c70a1f8645bde0269ea4892f9d
5
5
  SHA512:
6
- metadata.gz: b5c99000809053379b114ed9e2438233b326e147771989d865866e66db8e132ec5876b5f0ab6df83f29e5d1d499687034773d35270cf4d08bf41dbf41a48bf5c
7
- data.tar.gz: 7b7655a1cb1d46b4ab13202ad33f9b08dcae4b14eb9d6b52319e685daf753d9ebe9efb18144b34535b031016389993f9d7e4e02301ebaa33c2550719cb12cd47
6
+ metadata.gz: d7652d8b270363502821344821e5a0e523c13064de383951525cc420101974dc38942a8d613e325b01773515b9bfc8a376639b0a20699bc16b7e1bb9a770ea53
7
+ data.tar.gz: b88476c6397cc61936ff10fa4c690ad0eabaf81e6f4ef9ef136611d75a476c0f18b66784f07df9e95e9f1a6d8fff3d42be1f209098ec379391ef62c0df0127a4
@@ -167,6 +167,10 @@ static VALUE mParser_do_yajl_parse(VALUE self, VALUE str, VALUE opts) {
167
167
  ctx.stack = rb_ary_new();
168
168
  ctx.key_stack = rb_ary_new();
169
169
 
170
+ /* hack to avoid garbage collection */
171
+ rb_ivar_set(self, rb_intern("stack"), ctx.stack);
172
+ rb_ivar_set(self, rb_intern("key_stack"), ctx.key_stack);
173
+
170
174
  hand = yajl_alloc(&callbacks, NULL, &ctx);
171
175
  if ((stat = yajl_parse(hand, (unsigned char *)RSTRING_PTR(str), RSTRING_LEN(str))) != yajl_status_ok) {
172
176
  err = yajl_get_error(hand, 1, (unsigned char *)RSTRING_PTR(str), RSTRING_LEN(str));
@@ -1,3 +1,3 @@
1
1
  module FFI_Yajl
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi-yajl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: universal-java
6
6
  authors:
7
7
  - Lamont Granquist
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-07 00:00:00.000000000 Z
11
+ date: 2014-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0.9'
61
+ version: 0.8.3
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0.9'
68
+ version: 0.8.3
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: ffi
71
71
  requirement: !ruby/object:Gem::Requirement