Skip to content
Browse files

Fixed parsing bug

failing ActiveSupport test cases now pass (with the exception of the one, which is an issue in Yajl itself)
  • Loading branch information...
1 parent 75b3c6e commit 8e2652b24087bf20b6419f782d5096707ef458a9 @brianmario committed Apr 23, 2009
Showing with 2 additions and 2 deletions.
  1. +1 −1 ext/yajl.c
  2. +1 −1 yajl-ruby.gemspec
View
2 ext/yajl.c
@@ -24,7 +24,7 @@ void set_static_value(void * ctx, VALUE val) {
if (TYPE(hash) == T_HASH) {
rb_hash_aset(hash, lastEntry, val);
rb_ary_pop((VALUE)ctx);
- if (TYPE(val) == T_HASH) {
+ if (TYPE(val) == T_HASH || TYPE(val) == T_ARRAY) {
rb_ary_push((VALUE)ctx, val);
}
}
View
2 yajl-ruby.gemspec
@@ -2,7 +2,7 @@
Gem::Specification.new do |s|
s.name = %q{yajl-ruby}
- s.version = "0.2.0"
+ s.version = "0.2.1"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Brian Lopez"]

0 comments on commit 8e2652b

Please sign in to comment.
Something went wrong with that request. Please try again.