rdo-mysql 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,5 +7,6 @@ script: "bundle exec rake spec"
7
7
  rvm:
8
8
  - 1.9.2
9
9
  - 1.9.3
10
+ - rbx-19mode
10
11
  notifications:
11
12
  email: chris@w3style.co.uk
@@ -71,18 +71,6 @@
71
71
  #define RDO_RESULT(tuples, info) \
72
72
  (rb_funcall(rb_path2class("RDO::Result"), rb_intern("new"), 2, tuples, info))
73
73
 
74
- /**
75
- * Wrap the given StatementExecutor in a RDO::Statement.
76
- *
77
- * @param VALUE
78
- * any object that responds to #command and #execute
79
- *
80
- * @return VALUE
81
- * an RDO::Statement
82
- */
83
- #define RDO_STATEMENT(executor) \
84
- (rb_funcall(rb_path2class("RDO::Statement"), rb_intern("new"), 1, executor))
85
-
86
74
  /**
87
75
  * Convert a C string to a ruby String.
88
76
  *
@@ -96,7 +84,8 @@
96
84
  * a Ruby String
97
85
  */
98
86
  #define RDO_STRING(s, len, enc) \
99
- (rb_enc_associate_index(rb_str_new(s, len), enc > 0 ? enc : 0))
87
+ (rb_enc_associate_index(rb_str_new(s, len), \
88
+ enc > 0 ? enc : rb_enc_find_index("binary")))
100
89
 
101
90
  /**
102
91
  * Convert a C string to a ruby String, assuming possible NULL bytes.
@@ -110,7 +99,8 @@
110
99
  * @return VALUE (String)
111
100
  * a Ruby String
112
101
  */
113
- #define RDO_BINARY_STRING(s, len) (rb_str_new(s, len))
102
+ #define RDO_BINARY_STRING(s, len) \
103
+ (RDO_STRING(s, len, rb_enc_find_index("binary")))
114
104
 
115
105
  /**
116
106
  * Convert a C string to a Fixnum.
@@ -7,6 +7,6 @@
7
7
 
8
8
  module RDO
9
9
  module MySQL
10
- VERSION = "0.0.3"
10
+ VERSION = "0.0.4"
11
11
  end
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdo-mysql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
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: 2012-10-11 00:00:00.000000000 Z
12
+ date: 2012-10-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdo