brianmario-yajl-ruby 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/CHANGELOG.rdoc +3 -0
  2. data/VERSION.yml +1 -1
  3. data/ext/yajl.c +4 -4
  4. metadata +2 -1
data/CHANGELOG.rdoc CHANGED
@@ -1,5 +1,8 @@
1
1
  = Changelog
2
2
 
3
+ 0.3.3 (April 24th, 2009)
4
+ * 1.9 compatibility
5
+
3
6
  0.3.2 (April 24th, 2009)
4
7
  * version bump: forgot to include yajl.c in the gem
5
8
 
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 2
2
+ :patch: 3
3
3
  :major: 0
4
4
  :minor: 3
data/ext/yajl.c CHANGED
@@ -5,7 +5,7 @@
5
5
  static VALUE cParseError;
6
6
 
7
7
  void set_static_value(void * ctx, VALUE val) {
8
- VALUE len = RARRAY((VALUE)ctx)->len;
8
+ VALUE len = RARRAY_LEN((VALUE)ctx);
9
9
 
10
10
  if (len > 0) {
11
11
  VALUE lastEntry = rb_ary_entry((VALUE)ctx, len-1);
@@ -68,7 +68,7 @@ static int found_start_hash(void * ctx) {
68
68
  }
69
69
 
70
70
  static int found_end_hash(void * ctx) {
71
- if (RARRAY((VALUE)ctx)->len > 1) {
71
+ if (RARRAY_LEN((VALUE)ctx) > 1) {
72
72
  rb_ary_pop((VALUE)ctx);
73
73
  }
74
74
  return 1;
@@ -80,7 +80,7 @@ static int found_start_array(void * ctx) {
80
80
  }
81
81
 
82
82
  static int found_end_array(void * ctx) {
83
- if (RARRAY((VALUE)ctx)->len > 1) {
83
+ if (RARRAY_LEN((VALUE)ctx) > 1) {
84
84
  rb_ary_pop((VALUE)ctx);
85
85
  }
86
86
  return 1;
@@ -120,7 +120,7 @@ static VALUE t_parse(VALUE self, VALUE io) {
120
120
  while (rb_funcall(io, intern_eof, 0) == Qfalse) {
121
121
  rb_funcall(io, intern_io_read, 2, rbufsize, parsed);
122
122
 
123
- stat = yajl_parse(hand, (const unsigned char *)RSTRING(parsed)->ptr, RSTRING(parsed)->len);
123
+ stat = yajl_parse(hand, (const unsigned char *)RSTRING_PTR(parsed), RSTRING_LEN(parsed));
124
124
 
125
125
  if (stat != yajl_status_ok && stat != yajl_status_insufficient_data) {
126
126
  unsigned char * str = yajl_get_error(hand, 1, (const unsigned char *)RSTRING_PTR(parsed), RSTRING_LEN(parsed));
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brianmario-yajl-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Lopez
@@ -20,6 +20,7 @@ executables: []
20
20
  extensions:
21
21
  - ext/extconf.rb
22
22
  extra_rdoc_files:
23
+ - CHANGELOG.rdoc
23
24
  - README.rdoc
24
25
  files:
25
26
  - CHANGELOG.rdoc