yaji 0.0.7 → 0.0.8
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/HISTORY.markdown +13 -0
- data/ext/yaji/parser_ext.c +8 -8
- data/lib/yaji/version.rb +1 -1
- metadata +11 -11
data/HISTORY.markdown
CHANGED
@@ -1,3 +1,16 @@
|
|
1
|
+
=== 0.0.8 / 2011-08-30
|
2
|
+
|
3
|
+
* Use rb_str_new2 for backward comatibility with ruby 1.8.x
|
4
|
+
|
5
|
+
=== 0.0.7 / 2011-08-24
|
6
|
+
|
7
|
+
* Fix include paths
|
8
|
+
|
9
|
+
=== 0.0.6 / 2011-08-24
|
10
|
+
|
11
|
+
* bundle yajl sources because it's the easiest way to handle dependency
|
12
|
+
for now
|
13
|
+
|
1
14
|
=== 0.0.5 / 2011-08-22
|
2
15
|
|
3
16
|
* Don't fail on empty input
|
data/ext/yaji/parser_ext.c
CHANGED
@@ -22,9 +22,9 @@
|
|
22
22
|
|
23
23
|
#define RB_P(OBJ) \
|
24
24
|
rb_funcall(rb_stderr, rb_intern("print"), 1, rb_funcall(OBJ, rb_intern("object_id"), 0)); \
|
25
|
-
rb_funcall(rb_stderr, rb_intern("print"), 1,
|
25
|
+
rb_funcall(rb_stderr, rb_intern("print"), 1, rb_str_new2(" ")); \
|
26
26
|
rb_funcall(rb_stderr, rb_intern("print"), 1, rb_funcall(OBJ, rb_intern("class"), 0)); \
|
27
|
-
rb_funcall(rb_stderr, rb_intern("print"), 1,
|
27
|
+
rb_funcall(rb_stderr, rb_intern("print"), 1, rb_str_new2(" ")); \
|
28
28
|
rb_funcall(rb_stderr, rb_intern("puts"), 1, rb_funcall(OBJ, rb_intern("inspect"), 0));
|
29
29
|
|
30
30
|
#define RERAISE_PARSER_ERROR(parser) \
|
@@ -104,12 +104,12 @@ static int yaji_hash_key(void *ctx, const unsigned char *val, unsigned int len)
|
|
104
104
|
} else {
|
105
105
|
p->key_in_use = 1;
|
106
106
|
}
|
107
|
-
p->path_str = rb_ary_join(p->path,
|
107
|
+
p->path_str = rb_ary_join(p->path, rb_str_new2("/"));
|
108
108
|
rb_str_freeze(p->path_str);
|
109
109
|
rv = rb_ary_new3(3, p->path_str, sym_hash_key, key);
|
110
110
|
rb_ary_push(p->events, rv);
|
111
111
|
rb_ary_push(p->path, key);
|
112
|
-
p->path_str = rb_ary_join(p->path,
|
112
|
+
p->path_str = rb_ary_join(p->path, rb_str_new2("/"));
|
113
113
|
rb_str_freeze(p->path_str);
|
114
114
|
return STATUS_CONTINUE;
|
115
115
|
}
|
@@ -127,7 +127,7 @@ static int yaji_end_hash(void *ctx)
|
|
127
127
|
{
|
128
128
|
yaji_parser* p = (yaji_parser*) DATA_PTR(ctx);
|
129
129
|
rb_ary_pop(p->path);
|
130
|
-
p->path_str = rb_ary_join(p->path,
|
130
|
+
p->path_str = rb_ary_join(p->path, rb_str_new2("/"));
|
131
131
|
VALUE rv = rb_ary_new3(3, p->path_str, sym_end_hash, Qnil);
|
132
132
|
rb_ary_push(p->events, rv);
|
133
133
|
return STATUS_CONTINUE;
|
@@ -137,8 +137,8 @@ static int yaji_start_array(void *ctx)
|
|
137
137
|
{
|
138
138
|
yaji_parser* p = (yaji_parser*) DATA_PTR(ctx);
|
139
139
|
VALUE rv = rb_ary_new3(3, p->path_str, sym_start_array, Qnil);
|
140
|
-
rb_ary_push(p->path,
|
141
|
-
p->path_str = rb_ary_join(p->path,
|
140
|
+
rb_ary_push(p->path, rb_str_new2(""));
|
141
|
+
p->path_str = rb_ary_join(p->path, rb_str_new2("/"));
|
142
142
|
rb_str_freeze(p->path_str);
|
143
143
|
rb_ary_push(p->events, rv);
|
144
144
|
return STATUS_CONTINUE;
|
@@ -149,7 +149,7 @@ static int yaji_end_array(void *ctx)
|
|
149
149
|
yaji_parser* p = (yaji_parser*) DATA_PTR(ctx);
|
150
150
|
|
151
151
|
rb_ary_pop(p->path);
|
152
|
-
p->path_str = rb_ary_join(p->path,
|
152
|
+
p->path_str = rb_ary_join(p->path, rb_str_new2("/"));
|
153
153
|
|
154
154
|
VALUE rv = rb_ary_new3(3, p->path_str, sym_end_array, Qnil);
|
155
155
|
rb_ary_push(p->events, rv);
|
data/lib/yaji/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yaji
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-08-
|
12
|
+
date: 2011-08-30 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake-compiler
|
16
|
-
requirement: &
|
16
|
+
requirement: &11061180 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *11061180
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: minitest
|
27
|
-
requirement: &
|
27
|
+
requirement: &11060740 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *11060740
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: curb
|
38
|
-
requirement: &
|
38
|
+
requirement: &11060320 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *11060320
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: ruby-debug19
|
49
|
-
requirement: &
|
49
|
+
requirement: &11059800 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *11059800
|
58
58
|
description: YAJI is a ruby wrapper to YAJL providing iterator interface to streaming
|
59
59
|
JSON parser
|
60
60
|
email: info@couchbase.com
|
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
version: '0'
|
120
120
|
requirements: []
|
121
121
|
rubyforge_project: yaji
|
122
|
-
rubygems_version: 1.8.
|
122
|
+
rubygems_version: 1.8.6
|
123
123
|
signing_key:
|
124
124
|
specification_version: 3
|
125
125
|
summary: Yet another JSON iterator
|