bson_ext 0.20.1 → 1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/ext/cbson/cbson.c +17 -0
  2. data/ext/cbson/version.h +1 -1
  3. metadata +3 -4
@@ -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
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- #define VERSION "0.20.1"
17
+ #define VERSION "1.0"
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
- version: 0.20.1
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-07 00:00:00 -04:00
16
+ date: 2010-04-29 00:00:00 -04:00
18
17
  default_executable:
19
18
  dependencies: []
20
19