rubber-generate 0.0.18 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
data/README.textile CHANGED
@@ -20,6 +20,7 @@ functions and some rudimentary understanding of C code.
20
20
 
21
21
  h3. Changes
22
22
 
23
+
23
24
  * 0.0.11 - 27th Apr 2011
24
25
  - Fix parsing of %min-version numbers
25
26
 
@@ -43,7 +44,7 @@ h3. Changes
43
44
 
44
45
  h3. Dependencies
45
46
 
46
- * Ruby 1.8.6
47
+ * Ruby 1.8 / Ruby 1.9 / Ruby 2.0
47
48
 
48
49
  h3. Example
49
50
 
@@ -107,7 +107,11 @@ static VALUE rubber_enum_cmp(VALUE value, VALUE other)
107
107
  VALUE a,b;
108
108
  a = rb_funcall(value, rb_intern(\"to_i\"), 0);
109
109
  b = rb_funcall(other, rb_intern(\"to_i\"), 0);
110
+ #ifdef RB_NUM_COERCE_FUNCS_NEED_OPID
111
+ return rb_num_coerce_cmp(a, b, rb_intern(\"==\"));
112
+ #else
110
113
  return rb_num_coerce_cmp(a, b);
114
+ #endif
111
115
  }
112
116
 
113
117
  static VALUE rubber_enum_to_i(VALUE value)
@@ -106,7 +106,11 @@ static VALUE rubber_flags_cmp(VALUE value, VALUE other)
106
106
  VALUE a,b;
107
107
  a = rb_funcall(value, rb_intern(\"to_i\"), 0);
108
108
  b = rb_funcall(other, rb_intern(\"to_i\"), 0);
109
+ #ifdef RB_NUM_COERCE_FUNCS_NEED_OPID
110
+ return rb_num_coerce_cmp(a, b, rb_intern(\"==\"));
111
+ #else
109
112
  return rb_num_coerce_cmp(a, b);
113
+ #endif
110
114
  }
111
115
 
112
116
  static VALUE rubber_flags_to_i(VALUE value)
@@ -1,5 +1,5 @@
1
1
  module Rubber
2
- VERSION = [0,0,18]
2
+ VERSION = [0,0,19]
3
3
  def VERSION.to_s
4
4
  self.map{|i|i.to_s}.join('.')
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubber-generate
3
3
  version: !ruby/object:Gem::Version
4
- hash: 59
4
+ hash: 57
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 18
10
- version: 0.0.18
9
+ - 19
10
+ version: 0.0.19
11
11
  platform: ruby
12
12
  authors:
13
13
  - Geoff Youngs
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-06-14 00:00:00 Z
18
+ date: 2013-06-17 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: " rubber-c-binder allows a rubyish means of generating bindings for C libraries,\n including (but not limited to) GObject based libraries.\n\n It allows C code to be written in the context of a ruby style class/method layout\n and eases type checking and conversion between Ruby & C datatypes.\n"