do_mysql 0.10.12-x86-mingw32 → 0.10.13-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3bcefc9befbf2fe13a438bbe0fa56c115bdf69b0
4
+ data.tar.gz: b39dcab2b5ea93d263ee55b3934427117e869b4d
5
+ SHA512:
6
+ metadata.gz: d63ffaa6af1c8ccf6377d9daad74c3f2400bed4fdd22d318040f3b0b1a37771a9854daae5836f65b069c7a7e66fff29abc6c383bfd1e07c9ded03c3aa24f2057
7
+ data.tar.gz: c24516c02b03e584f785478b509fb971a14d099e2a84f016d50a146dbe7ad0ad52e308b0922a08953b9cf2222616e26c75d8d4479536d0975b5437ec461101a9
data/ChangeLog.markdown CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.10.13 2013-05-27
2
+
3
+ * Windows binary for Ruby 2.0
4
+
1
5
  ## 0.10.12 2013-01-21
2
6
 
3
7
  * jdbc-mysql driver loading fix
data/README.markdown CHANGED
@@ -14,14 +14,16 @@ This driver implements the DataObjects API for the MySQL relational database.
14
14
 
15
15
  An example of usage:
16
16
 
17
- # default user (root, no password); default port (3306)
18
- DataObjects::Connection.new("mysql://host/database")
19
- # specified user, specified port
20
- DataObjects::Connection.new("mysql://user:pass@host:8888/database")
21
-
22
- @connection = DataObjects::Connection.new("mysql://localhost/employees")
23
- @reader = @connection.create_command('SELECT * FROM users').execute_reader
24
- @reader.next!
17
+ ```ruby
18
+ # default user (root, no password); default port (3306)
19
+ DataObjects::Connection.new("mysql://host/database")
20
+ # specified user, specified port
21
+ DataObjects::Connection.new("mysql://user:pass@host:8888/database")
22
+
23
+ @connection = DataObjects::Connection.new("mysql://localhost/employees")
24
+ @reader = @connection.create_command('SELECT * FROM users').execute_reader
25
+ @reader.next!
26
+ ```
25
27
 
26
28
  ## Requirements
27
29
 
@@ -504,10 +504,6 @@ VALUE do_mysql_cCommand_execute_reader(int argc, VALUE *argv, VALUE self) {
504
504
  MYSQL *db = DATA_PTR(mysql_connection);
505
505
  MYSQL_RES *response = do_mysql_cCommand_execute(self, connection, db, query);
506
506
 
507
- if (!response) {
508
- rb_raise(eDO_ConnectionError, "No result set received for a query that should yield one.");
509
- }
510
-
511
507
  unsigned int field_count = mysql_field_count(db);
512
508
  VALUE reader = rb_funcall(cDO_MysqlReader, DO_ID_NEW, 0);
513
509
 
@@ -587,6 +583,9 @@ VALUE do_mysql_cReader_next(VALUE self) {
587
583
  }
588
584
 
589
585
  MYSQL_RES *reader = DATA_PTR(reader_container);
586
+ if(!reader) {
587
+ return Qfalse;
588
+ }
590
589
  MYSQL_ROW result = mysql_fetch_row(reader);
591
590
 
592
591
  // The Meat
Binary file
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  module DataObjects
2
2
  module Mysql
3
- VERSION = '0.10.12'
3
+ VERSION = '0.10.13'
4
4
  end
5
5
  end
data/tasks/compile.rake CHANGED
@@ -56,7 +56,7 @@ begin
56
56
  ext.classpath = '../do_jdbc/lib/do_jdbc_internal.jar'
57
57
  ext.java_compiling do |gem|
58
58
  gem.add_dependency 'jdbc-mysql', '>=5.0.4'
59
- gem.add_dependency 'do_jdbc', '0.10.12'
59
+ gem.add_dependency 'do_jdbc', '0.10.13'
60
60
  end
61
61
  end
62
62
  rescue LoadError
data/tasks/release.rake CHANGED
@@ -3,7 +3,7 @@ task :build_all do
3
3
  `rake clean`
4
4
  `rake build`
5
5
  `rake java gem`
6
- `rake cross native gem RUBY_CC_VERSION=1.8.7:1.9.2`
6
+ `rake cross native gem RUBY_CC_VERSION=1.8.7:1.9.3:2.0.0`
7
7
  end
8
8
 
9
9
  desc 'Release all gems (native, binaries for JRuby and Windows)'
metadata CHANGED
@@ -1,12 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: do_mysql
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 10
8
- - 12
9
- version: 0.10.12
4
+ version: 0.10.13
10
5
  platform: x86-mingw32
11
6
  authors:
12
7
  - Dirkjan Bussink
@@ -14,49 +9,38 @@ autorequire:
14
9
  bindir: bin
15
10
  cert_chain: []
16
11
 
17
- date: 2013-01-21 00:00:00 +01:00
18
- default_executable:
12
+ date: 2013-05-27 00:00:00 Z
19
13
  dependencies:
20
14
  - !ruby/object:Gem::Dependency
21
- prerelease: false
22
- type: :runtime
23
- name: data_objects
24
15
  version_requirements: &id001 !ruby/object:Gem::Requirement
25
16
  requirements:
26
17
  - - "="
27
18
  - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
- - 10
31
- - 12
32
- version: 0.10.12
19
+ version: 0.10.13
20
+ name: data_objects
33
21
  requirement: *id001
34
- - !ruby/object:Gem::Dependency
35
22
  prerelease: false
36
- type: :development
37
- name: rspec
23
+ type: :runtime
24
+ - !ruby/object:Gem::Dependency
38
25
  version_requirements: &id002 !ruby/object:Gem::Requirement
39
26
  requirements:
40
27
  - - ~>
41
28
  - !ruby/object:Gem::Version
42
- segments:
43
- - 2
44
- - 5
45
29
  version: "2.5"
30
+ name: rspec
46
31
  requirement: *id002
47
- - !ruby/object:Gem::Dependency
48
32
  prerelease: false
49
33
  type: :development
50
- name: rake-compiler
34
+ - !ruby/object:Gem::Dependency
51
35
  version_requirements: &id003 !ruby/object:Gem::Requirement
52
36
  requirements:
53
37
  - - ~>
54
38
  - !ruby/object:Gem::Version
55
- segments:
56
- - 0
57
- - 7
58
39
  version: "0.7"
40
+ name: rake-compiler
59
41
  requirement: *id003
42
+ prerelease: false
43
+ type: :development
60
44
  description: Implements the DataObjects API for MySQL
61
45
  email: d.bussink@gmail.com
62
46
  executables: []
@@ -111,10 +95,12 @@ files:
111
95
  - tasks/ssl.rake
112
96
  - lib/do_mysql/1.8/do_mysql.so
113
97
  - lib/do_mysql/1.9/do_mysql.so
114
- has_rdoc: true
98
+ - lib/do_mysql/2.0/do_mysql.so
115
99
  homepage:
116
100
  licenses: []
117
101
 
102
+ metadata: {}
103
+
118
104
  post_install_message: |+
119
105
 
120
106
  ======================================================================================================
@@ -139,22 +125,17 @@ require_paths:
139
125
  - lib
140
126
  required_ruby_version: !ruby/object:Gem::Requirement
141
127
  requirements:
142
- - - ">="
128
+ - &id004
129
+ - ">="
143
130
  - !ruby/object:Gem::Version
144
- segments:
145
- - 0
146
131
  version: "0"
147
132
  required_rubygems_version: !ruby/object:Gem::Requirement
148
133
  requirements:
149
- - - ">="
150
- - !ruby/object:Gem::Version
151
- segments:
152
- - 0
153
- version: "0"
134
+ - *id004
154
135
  requirements: []
155
136
 
156
137
  rubyforge_project: dorb
157
- rubygems_version: 1.3.6
138
+ rubygems_version: 2.0.3
158
139
  signing_key:
159
140
  specification_version: 3
160
141
  summary: DataObjects MySQL Driver