brianmario-yajl-ruby 0.2.0 → 0.2.1
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.
- data/README.rdoc +15 -1
- data/VERSION.yml +1 -1
- data/ext/yajl.c +1 -1
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -58,4 +58,18 @@ Again, I'll post some actual data on this; but in my testing here's what my ruby
|
|
58
58
|
|
59
59
|
JSON.parse ~60MB
|
60
60
|
|
61
|
-
Yajl::Native.parse ~30MB
|
61
|
+
Yajl::Native.parse ~30MB
|
62
|
+
|
63
|
+
== Status
|
64
|
+
|
65
|
+
This library is still being refined and should by no means be used in production.
|
66
|
+
That being said, I'd like to invite you to clone/fork and test the crap out of it! ;)
|
67
|
+
|
68
|
+
== TODO
|
69
|
+
|
70
|
+
While parsing is working for the most part, there are still some edge cases I need to tackle.
|
71
|
+
Here's a list of things I need to get done to improve the awesomeness of this library.
|
72
|
+
|
73
|
+
* Write up a test suite
|
74
|
+
* Fix known parsing issues with certain JSON strings (Yajl itself works fine, it's the logic in this library that needs a little tweaking)
|
75
|
+
* Write more docs
|
data/VERSION.yml
CHANGED
data/ext/yajl.c
CHANGED
@@ -24,7 +24,7 @@ void set_static_value(void * ctx, VALUE val) {
|
|
24
24
|
if (TYPE(hash) == T_HASH) {
|
25
25
|
rb_hash_aset(hash, lastEntry, val);
|
26
26
|
rb_ary_pop((VALUE)ctx);
|
27
|
-
if (TYPE(val) == T_HASH) {
|
27
|
+
if (TYPE(val) == T_HASH || TYPE(val) == T_ARRAY) {
|
28
28
|
rb_ary_push((VALUE)ctx, val);
|
29
29
|
}
|
30
30
|
}
|