virtualbox-com 0.10.2 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -135,6 +135,7 @@ static void iid_init(VALUE under) {
135
135
  cIID = rb_define_class_under(under, "IID", rb_cObject);
136
136
  no_instantiation(cIID);
137
137
  rb_define_method(cIID, "to_s", iid__to_s, 0);
138
+ rb_define_method(cIID, "to_str", iid__to_s, 0);
138
139
  }
139
140
 
140
141
 
@@ -168,6 +169,7 @@ static void blob_init(VALUE under) {
168
169
  no_instantiation(cBlob);
169
170
  rb_define_singleton_method(cBlob, "new", blob__new, 1);
170
171
  rb_define_method(cBlob, "to_s", blob__to_s, 0);
172
+ rb_define_method(cBlob, "to_str", blob__to_s, 0);
171
173
  }
172
174
 
173
175
 
@@ -200,6 +202,7 @@ static void wstring_init(VALUE under) {
200
202
  no_instantiation(cWString);
201
203
  rb_define_singleton_method(cWString, "new", wstring__new, 1);
202
204
  rb_define_method(cWString, "to_s", wstring__to_s, 0);
205
+ rb_define_method(cWString, "to_str", wstring__to_s, 0);
203
206
  }
204
207
 
205
208
 
@@ -611,8 +614,8 @@ static inline void extract_carray(VALUE val, uint32_t *size, void **data) {
611
614
  #define convert_uint64(v) ULL2NUM(v)
612
615
  #define convert_ptr(v) PTR2NUM(v)
613
616
  #define convert_bool(v) ((v) ? Qtrue : Qfalse)
614
- #define convert_blob(s,d) ((d) ? blob_new(s,d) : Qnil)
615
- #define convert_wstring(v) ((v) ? wstring_new(v) : Qnil)
617
+ #define convert_blob(s,d) ((d) ? rb_str_to_str(blob_new(s,d)) : Qnil)
618
+ #define convert_wstring(v) ((v) ? rb_str_to_str(wstring_new(v)) : Qnil)
616
619
 
617
620
  static inline VALUE convert_enum(uint32_t v, VALUE klass) {
618
621
  VALUE val = ULL2NUM(v);
@@ -135,6 +135,7 @@ static void iid_init(VALUE under) {
135
135
  cIID = rb_define_class_under(under, "IID", rb_cObject);
136
136
  no_instantiation(cIID);
137
137
  rb_define_method(cIID, "to_s", iid__to_s, 0);
138
+ rb_define_method(cIID, "to_str", iid__to_s, 0);
138
139
  }
139
140
 
140
141
 
@@ -168,6 +169,7 @@ static void blob_init(VALUE under) {
168
169
  no_instantiation(cBlob);
169
170
  rb_define_singleton_method(cBlob, "new", blob__new, 1);
170
171
  rb_define_method(cBlob, "to_s", blob__to_s, 0);
172
+ rb_define_method(cBlob, "to_str", blob__to_s, 0);
171
173
  }
172
174
 
173
175
 
@@ -200,6 +202,7 @@ static void wstring_init(VALUE under) {
200
202
  no_instantiation(cWString);
201
203
  rb_define_singleton_method(cWString, "new", wstring__new, 1);
202
204
  rb_define_method(cWString, "to_s", wstring__to_s, 0);
205
+ rb_define_method(cWString, "to_str", wstring__to_s, 0);
203
206
  }
204
207
 
205
208
 
@@ -611,8 +614,8 @@ static inline void extract_carray(VALUE val, uint32_t *size, void **data) {
611
614
  #define convert_uint64(v) ULL2NUM(v)
612
615
  #define convert_ptr(v) PTR2NUM(v)
613
616
  #define convert_bool(v) ((v) ? Qtrue : Qfalse)
614
- #define convert_blob(s,d) ((d) ? blob_new(s,d) : Qnil)
615
- #define convert_wstring(v) ((v) ? wstring_new(v) : Qnil)
617
+ #define convert_blob(s,d) ((d) ? rb_str_to_str(blob_new(s,d)) : Qnil)
618
+ #define convert_wstring(v) ((v) ? rb_str_to_str(wstring_new(v)) : Qnil)
616
619
 
617
620
  static inline VALUE convert_enum(uint32_t v, VALUE klass) {
618
621
  VALUE val = ULL2NUM(v);
@@ -135,6 +135,7 @@ static void iid_init(VALUE under) {
135
135
  cIID = rb_define_class_under(under, "IID", rb_cObject);
136
136
  no_instantiation(cIID);
137
137
  rb_define_method(cIID, "to_s", iid__to_s, 0);
138
+ rb_define_method(cIID, "to_str", iid__to_s, 0);
138
139
  }
139
140
 
140
141
 
@@ -168,6 +169,7 @@ static void blob_init(VALUE under) {
168
169
  no_instantiation(cBlob);
169
170
  rb_define_singleton_method(cBlob, "new", blob__new, 1);
170
171
  rb_define_method(cBlob, "to_s", blob__to_s, 0);
172
+ rb_define_method(cBlob, "to_str", blob__to_s, 0);
171
173
  }
172
174
 
173
175
 
@@ -200,6 +202,7 @@ static void wstring_init(VALUE under) {
200
202
  no_instantiation(cWString);
201
203
  rb_define_singleton_method(cWString, "new", wstring__new, 1);
202
204
  rb_define_method(cWString, "to_s", wstring__to_s, 0);
205
+ rb_define_method(cWString, "to_str", wstring__to_s, 0);
203
206
  }
204
207
 
205
208
 
@@ -611,8 +614,8 @@ static inline void extract_carray(VALUE val, uint32_t *size, void **data) {
611
614
  #define convert_uint64(v) ULL2NUM(v)
612
615
  #define convert_ptr(v) PTR2NUM(v)
613
616
  #define convert_bool(v) ((v) ? Qtrue : Qfalse)
614
- #define convert_blob(s,d) ((d) ? blob_new(s,d) : Qnil)
615
- #define convert_wstring(v) ((v) ? wstring_new(v) : Qnil)
617
+ #define convert_blob(s,d) ((d) ? rb_str_to_str(blob_new(s,d)) : Qnil)
618
+ #define convert_wstring(v) ((v) ? rb_str_to_str(wstring_new(v)) : Qnil)
616
619
 
617
620
  static inline VALUE convert_enum(uint32_t v, VALUE klass) {
618
621
  VALUE val = ULL2NUM(v);
@@ -1,5 +1,5 @@
1
1
  module VirtualBox
2
2
  module COM
3
- VERSION = "0.10.2"
3
+ VERSION = "0.10.3"
4
4
  end
5
5
  end
@@ -36,7 +36,11 @@ class Binding
36
36
  def self.bind(model)
37
37
  raise "model already bound" if const_defined?(:Object, false)
38
38
 
39
- # self.init
39
+ # self.init
40
+ inherited = []
41
+ m = model.superclass
42
+
43
+
40
44
 
41
45
  # List of functions (name, signature)
42
46
  # Defined in the order they appear in the Model definition
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: virtualbox-com
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.10.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-12 00:00:00.000000000 Z
12
+ date: 2013-07-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -108,7 +108,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  segments:
110
110
  - 0
111
- hash: -1687509842914808641
111
+ hash: -3214600469306632060
112
112
  required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  none: false
114
114
  requirements:
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  version: '0'
118
118
  segments:
119
119
  - 0
120
- hash: -1687509842914808641
120
+ hash: -3214600469306632060
121
121
  requirements: []
122
122
  rubyforge_project:
123
123
  rubygems_version: 1.8.25