yaji 0.0.10 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY.markdown CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.1.1 / 2011-12-13
2
+
3
+ * Do not export yajl functions
4
+
1
5
  === 0.1.0 / 2011-12-12
2
6
 
3
7
  * Skip empty and nil chunks
@@ -1,22 +1,22 @@
1
1
  /*
2
2
  * Copyright 2010, Lloyd Hilaiel.
3
- *
3
+ *
4
4
  * Redistribution and use in source and binary forms, with or without
5
5
  * modification, are permitted provided that the following conditions are
6
6
  * met:
7
- *
7
+ *
8
8
  * 1. Redistributions of source code must retain the above copyright
9
9
  * notice, this list of conditions and the following disclaimer.
10
- *
10
+ *
11
11
  * 2. Redistributions in binary form must reproduce the above copyright
12
12
  * notice, this list of conditions and the following disclaimer in
13
13
  * the documentation and/or other materials provided with the
14
14
  * distribution.
15
- *
15
+ *
16
16
  * 3. Neither the name of Lloyd Hilaiel nor the names of its
17
17
  * contributors may be used to endorse or promote products derived
18
18
  * from this software without specific prior written permission.
19
- *
19
+ *
20
20
  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
21
21
  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22
22
  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
@@ -28,14 +28,14 @@
28
28
  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
29
29
  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30
30
  * POSSIBILITY OF SUCH DAMAGE.
31
- */
31
+ */
32
32
 
33
33
  #ifndef __YAJL_COMMON_H__
34
34
  #define __YAJL_COMMON_H__
35
35
 
36
36
  #ifdef __cplusplus
37
37
  extern "C" {
38
- #endif
38
+ #endif
39
39
 
40
40
  #define YAJL_MAX_DEPTH 128
41
41
 
@@ -50,11 +50,11 @@ extern "C" {
50
50
  # endif
51
51
  #else
52
52
  # if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303
53
- # define YAJL_API __attribute__ ((visibility("default")))
53
+ # define YAJL_API __attribute__ ((visibility("hidden")))
54
54
  # else
55
55
  # define YAJL_API
56
56
  # endif
57
- #endif
57
+ #endif
58
58
 
59
59
  /** pointer to a malloc function, supporting client overriding memory
60
60
  * allocation routines */
@@ -84,6 +84,6 @@ typedef struct
84
84
 
85
85
  #ifdef __cplusplus
86
86
  }
87
- #endif
87
+ #endif
88
88
 
89
89
  #endif
@@ -221,7 +221,7 @@ static VALUE rb_yaji_parser_new(int argc, VALUE *argv, VALUE klass)
221
221
  } else {
222
222
  Check_Type(p->rbufsize, T_FIXNUM);
223
223
  }
224
- p->handle = yajl_alloc(&callbacks, &p->config, NULL, (void *)obj);
224
+ p->handle = yajl_alloc(&yaji_callbacks, &p->config, NULL, (void *)obj);
225
225
  rb_obj_call_init(obj, 0, 0);
226
226
  return obj;
227
227
  }
@@ -57,7 +57,7 @@ static int yaji_end_hash(void *ctx);
57
57
  static int yaji_start_array(void *ctx);
58
58
  static int yaji_end_array(void *ctx);
59
59
 
60
- static yajl_callbacks callbacks = {
60
+ static yajl_callbacks yaji_callbacks = {
61
61
  yaji_null,
62
62
  yaji_boolean,
63
63
  NULL,
data/lib/yaji/version.rb CHANGED
@@ -18,5 +18,5 @@
18
18
  #
19
19
 
20
20
  module YAJI
21
- VERSION = "0.0.10"
21
+ VERSION = "0.1.1"
22
22
  end
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.10
4
+ version: 0.1.1
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-12-12 00:00:00.000000000Z
12
+ date: 2011-12-13 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &15274560 !ruby/object:Gem::Requirement
16
+ requirement: &17778000 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - =
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.8.7
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *15274560
24
+ version_requirements: *17778000
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake-compiler
27
- requirement: &15274160 !ruby/object:Gem::Requirement
27
+ requirement: &17777600 !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: *15274160
35
+ version_requirements: *17777600
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: minitest
38
- requirement: &15273700 !ruby/object:Gem::Requirement
38
+ requirement: &17828400 !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: *15273700
46
+ version_requirements: *17828400
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: curb
49
- requirement: &15273280 !ruby/object:Gem::Requirement
49
+ requirement: &17827980 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *15273280
57
+ version_requirements: *17827980
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: ruby-debug19
60
- requirement: &15272820 !ruby/object:Gem::Requirement
60
+ requirement: &17827520 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *15272820
68
+ version_requirements: *17827520
69
69
  description: YAJI is a ruby wrapper to YAJL providing iterator interface to streaming
70
70
  JSON parser
71
71
  email: info@couchbase.com