bson_ext 0.20.1 → 1.0
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/ext/cbson/cbson.c +17 -0
- data/ext/cbson/version.h +1 -1
- metadata +3 -4
data/ext/cbson/cbson.c
CHANGED
|
@@ -22,6 +22,23 @@
|
|
|
22
22
|
|
|
23
23
|
#include "ruby.h"
|
|
24
24
|
|
|
25
|
+
/* Ensure compatibility with early releases of Ruby 1.8.5 */
|
|
26
|
+
#ifndef RSTRING_PTR
|
|
27
|
+
# define RSTRING_PTR(v) RSTRING(v)->ptr
|
|
28
|
+
#endif
|
|
29
|
+
|
|
30
|
+
#ifndef RSTRING_LEN
|
|
31
|
+
# define RSTRING_LEN(v) RSTRING(v)->len
|
|
32
|
+
#endif
|
|
33
|
+
|
|
34
|
+
#ifndef RARRAY_PTR
|
|
35
|
+
# define RARRAY_PTR(v) RARRAY(v)->ptr
|
|
36
|
+
#endif
|
|
37
|
+
|
|
38
|
+
#ifndef RARRAY_LEN
|
|
39
|
+
# define RARRAY_LEN(v) RARRAY(v)->len
|
|
40
|
+
#endif
|
|
41
|
+
|
|
25
42
|
#if HAVE_RUBY_ST_H
|
|
26
43
|
#include "ruby/st.h"
|
|
27
44
|
#endif
|
data/ext/cbson/version.h
CHANGED
metadata
CHANGED
|
@@ -3,10 +3,9 @@ name: bson_ext
|
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
|
5
5
|
segments:
|
|
6
|
-
- 0
|
|
7
|
-
- 20
|
|
8
6
|
- 1
|
|
9
|
-
|
|
7
|
+
- 0
|
|
8
|
+
version: "1.0"
|
|
10
9
|
platform: ruby
|
|
11
10
|
authors:
|
|
12
11
|
- Mike Dirolf
|
|
@@ -14,7 +13,7 @@ autorequire:
|
|
|
14
13
|
bindir: bin
|
|
15
14
|
cert_chain: []
|
|
16
15
|
|
|
17
|
-
date: 2010-04-
|
|
16
|
+
date: 2010-04-29 00:00:00 -04:00
|
|
18
17
|
default_executable:
|
|
19
18
|
dependencies: []
|
|
20
19
|
|