do_mysql 0.10.12-java → 0.10.13-java

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
+ data.tar.gz: 06e5914bc76d756787a28bf37d14328ae1d355d9
4
+ metadata.gz: fae81168eb9cd9267e647b5299e007369ba576e0
5
+ SHA512:
6
+ data.tar.gz: 284fee9be5e7fbacbf95c43d9e826fc03afb72a503cec2a0ab3c85c39d8ef825df0ae62f72a7da07be96fcd5ee84bd837a4650be99c65c3be6392870990e11f2
7
+ metadata.gz: 600be58d8e6a99b0b489639e48e744e1a2e698e2fdb6e183d9cfa2824dbc7e2eca577a37228ea203f5567b1c0426b556017e691a561ba9e01017488822b8d5ad
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
@@ -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: java
11
6
  authors:
12
7
  - Dirkjan Bussink
@@ -14,77 +9,58 @@ 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
60
- - !ruby/object:Gem::Dependency
61
42
  prerelease: false
62
- type: :runtime
63
- name: jdbc-mysql
43
+ type: :development
44
+ - !ruby/object:Gem::Dependency
64
45
  version_requirements: &id004 !ruby/object:Gem::Requirement
65
46
  requirements:
66
47
  - - ">="
67
48
  - !ruby/object:Gem::Version
68
- segments:
69
- - 5
70
- - 0
71
- - 4
72
49
  version: 5.0.4
50
+ name: jdbc-mysql
73
51
  requirement: *id004
74
- - !ruby/object:Gem::Dependency
75
52
  prerelease: false
76
53
  type: :runtime
77
- name: do_jdbc
54
+ - !ruby/object:Gem::Dependency
78
55
  version_requirements: &id005 !ruby/object:Gem::Requirement
79
56
  requirements:
80
57
  - - "="
81
58
  - !ruby/object:Gem::Version
82
- segments:
83
- - 0
84
- - 10
85
- - 12
86
- version: 0.10.12
59
+ version: 0.10.13
60
+ name: do_jdbc
87
61
  requirement: *id005
62
+ prerelease: false
63
+ type: :runtime
88
64
  description: Implements the DataObjects API for MySQL
89
65
  email: d.bussink@gmail.com
90
66
  executables: []
@@ -138,10 +114,11 @@ files:
138
114
  - tasks/spec.rake
139
115
  - tasks/ssl.rake
140
116
  - lib/do_mysql/do_mysql.jar
141
- has_rdoc: true
142
117
  homepage:
143
118
  licenses: []
144
119
 
120
+ metadata: {}
121
+
145
122
  post_install_message:
146
123
  rdoc_options: []
147
124
 
@@ -149,22 +126,17 @@ require_paths:
149
126
  - lib
150
127
  required_ruby_version: !ruby/object:Gem::Requirement
151
128
  requirements:
152
- - - ">="
129
+ - &id006
130
+ - ">="
153
131
  - !ruby/object:Gem::Version
154
- segments:
155
- - 0
156
132
  version: "0"
157
133
  required_rubygems_version: !ruby/object:Gem::Requirement
158
134
  requirements:
159
- - - ">="
160
- - !ruby/object:Gem::Version
161
- segments:
162
- - 0
163
- version: "0"
135
+ - *id006
164
136
  requirements: []
165
137
 
166
138
  rubyforge_project: dorb
167
- rubygems_version: 1.3.6
139
+ rubygems_version: 2.0.3
168
140
  signing_key:
169
141
  specification_version: 3
170
142
  summary: DataObjects MySQL Driver