do_mysql 0.10.12 → 0.10.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ data.tar.gz: 70d58100564b0ee622362870a69eeff9031ee759
4
+ metadata.gz: 816b08c9b50b95ca754338831b5b1dda9033adaf
5
+ SHA512:
6
+ data.tar.gz: d5ebcdf44f3b5807b6f266edc00fa1407afda0acd5d528c7733f3daecb358757344be883c20ddf5b510cf128236e3a4770c5c0fd819523f75459949526e3f606
7
+ metadata.gz: 6a1c7ad56c504ffe69c8e4ab73a93b240a381c7bd3e777e8d6e1364e0fe231264add0b98e88f2efb53e9cb173ea3d7c240eaf74a0fea4170b257fd53145a1351
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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: ruby
11
6
  authors:
12
7
  - Dirkjan Bussink
@@ -14,8 +9,7 @@ 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
15
  name: data_objects
@@ -24,11 +18,7 @@ dependencies:
24
18
  requirements:
25
19
  - - "="
26
20
  - !ruby/object:Gem::Version
27
- segments:
28
- - 0
29
- - 10
30
- - 12
31
- version: 0.10.12
21
+ version: 0.10.13
32
22
  type: :runtime
33
23
  version_requirements: *id001
34
24
  - !ruby/object:Gem::Dependency
@@ -38,9 +28,6 @@ dependencies:
38
28
  requirements:
39
29
  - - ~>
40
30
  - !ruby/object:Gem::Version
41
- segments:
42
- - 2
43
- - 5
44
31
  version: "2.5"
45
32
  type: :development
46
33
  version_requirements: *id002
@@ -51,9 +38,6 @@ dependencies:
51
38
  requirements:
52
39
  - - ~>
53
40
  - !ruby/object:Gem::Version
54
- segments:
55
- - 0
56
- - 7
57
41
  version: "0.7"
58
42
  type: :development
59
43
  version_requirements: *id003
@@ -109,10 +93,11 @@ files:
109
93
  - tasks/retrieve.rake
110
94
  - tasks/spec.rake
111
95
  - tasks/ssl.rake
112
- has_rdoc: true
113
96
  homepage:
114
97
  licenses: []
115
98
 
99
+ metadata: {}
100
+
116
101
  post_install_message:
117
102
  rdoc_options: []
118
103
 
@@ -120,22 +105,17 @@ require_paths:
120
105
  - lib
121
106
  required_ruby_version: !ruby/object:Gem::Requirement
122
107
  requirements:
123
- - - ">="
108
+ - &id004
109
+ - ">="
124
110
  - !ruby/object:Gem::Version
125
- segments:
126
- - 0
127
111
  version: "0"
128
112
  required_rubygems_version: !ruby/object:Gem::Requirement
129
113
  requirements:
130
- - - ">="
131
- - !ruby/object:Gem::Version
132
- segments:
133
- - 0
134
- version: "0"
114
+ - *id004
135
115
  requirements: []
136
116
 
137
117
  rubyforge_project: dorb
138
- rubygems_version: 1.3.6
118
+ rubygems_version: 2.0.3
139
119
  signing_key:
140
120
  specification_version: 3
141
121
  summary: DataObjects MySQL Driver