ffi-yajl 0.1.2 → 0.1.3

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: b3ce1385d8ff7b48416b9ae7b57157be1b0211c4
4
- data.tar.gz: 461f634749b19eafbbc770e869e79e85a4d7a73b
3
+ metadata.gz: 0ea13f5cd3d083b7f3eb9e37fd096aac99084e85
4
+ data.tar.gz: 5503b294adb725c70a1f8645bde0269ea4892f9d
5
5
  SHA512:
6
- metadata.gz: 3268713c039518262d00724a1d50a828359463a279494ca50b797472bc754c0181ad867051743ca778e65d2b9ef609d4deed10f24308183263633910bcb7afe9
7
- data.tar.gz: 7b7655a1cb1d46b4ab13202ad33f9b08dcae4b14eb9d6b52319e685daf753d9ebe9efb18144b34535b031016389993f9d7e4e02301ebaa33c2550719cb12cd47
6
+ metadata.gz: b9d92fad2aa9af3192db242f555defc51d5fef487a7a0beda40c484ce1ce539e9119353554692dc36f309a294a91402b78b950faa2bba034a9d7addf4729df4e
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: ruby
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