do_postgres 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
+ SHA512:
3
+ metadata.gz: 9bebf240ad75548055ff7dfccd99cfc6bffe9dc1ce059212cdaf9c5f8cb2ac7fcb8e762971160be18b8ffc7768c323dd2bc673dd04f6e172380944d9b739ed06
4
+ data.tar.gz: 5058cfc6ce32cf6411dc380fcf424d2530adb7945effce11e874ac264404403789825d01083234502a00a7b109539e8c3d0da3c78b438910c847954c19a2c719
5
+ SHA1:
6
+ metadata.gz: d93bbd908d8f75c39650ef156f97d95b153fa0c5
7
+ data.tar.gz: f61359a6dc53341a1d80ab38bba0d5af36bf3931
data/ChangeLog.markdown CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.10.13 2013-05-27
2
+
3
+ * Fix segfault on invalid API usage
4
+ * Windows binary for Ruby 2.0
5
+
1
6
  ## 0.10.12 2013-01-21
2
7
 
3
8
  * jdbc-postgres driver loading fix
data/README.markdown CHANGED
@@ -14,14 +14,16 @@ This driver implements the DataObjects API for the PostgreSQL relational databas
14
14
 
15
15
  An example of usage:
16
16
 
17
- # default user (postgres, postgres), default port (5432)
18
- DataObjects::Connection.new("postgres://host/database")
19
- # specified user, specified port
20
- DataObjects::Connection.new("postgres://user:pass@host:8888/database")
17
+ ```ruby
18
+ # default user (postgres, postgres), default port (5432)
19
+ DataObjects::Connection.new("postgres://host/database")
20
+ # specified user, specified port
21
+ DataObjects::Connection.new("postgres://user:pass@host:8888/database")
21
22
 
22
- @connection = DataObjects::Connection.new("postgres://localhost/employees")
23
- @reader = @connection.create_command('SELECT * FROM users').execute_reader
24
- @reader.next!
23
+ @connection = DataObjects::Connection.new("postgres://localhost/employees")
24
+ @reader = @connection.create_command('SELECT * FROM users').execute_reader
25
+ @reader.next!
26
+ ```
25
27
 
26
28
  ## Requirements
27
29
 
@@ -38,7 +40,9 @@ Additionally you should have the following prerequisites:
38
40
 
39
41
  To install the gem:
40
42
 
41
- gem install do_postgres
43
+ ```ruby
44
+ gem install do_postgres
45
+ ```
42
46
 
43
47
  To compile and install from source:
44
48
 
@@ -59,15 +63,15 @@ To compile and install from source:
59
63
  * Run `rake-compiler cross-ruby`.
60
64
  * Run `rake-compiler update-config`.
61
65
 
62
- * For JRuby extensions:
63
- * Install the Java Development Kit (provided if you are
64
- on a recent version of Mac OS X) from <http://java.sun.com>.
65
- * Install a recent version of JRuby. Ensure `jruby` is in your `PATH` and/or
66
- you have configured the `JRUBY_HOME` environment variable to point to your
67
- JRuby installation.
68
- * Install `data_objects` and `do_jdbc` with `jruby -S rake install`.
66
+ * For JRuby extensions:
67
+ * Install the Java Development Kit (provided if you are
68
+ on a recent version of Mac OS X) from <http://java.sun.com>.
69
+ * Install a recent version of JRuby. Ensure `jruby` is in your `PATH` and/or
70
+ you have configured the `JRUBY_HOME` environment variable to point to your
71
+ JRuby installation.
72
+ * Install `data_objects` and `do_jdbc` with `jruby -S rake install`.
69
73
 
70
- * Then, install this driver with `(jruby -S) rake install`.
74
+ * Then, install this driver with `(jruby -S) rake install`.
71
75
 
72
76
  For more information, see the PostgreSQL driver wiki page:
73
77
  <http://wiki.github.com/datamapper/do/postgresql>.
@@ -545,7 +545,8 @@ VALUE do_postgres_cCommand_execute_reader(int argc, VALUE *argv, VALUE self) {
545
545
  PGconn *db = DATA_PTR(postgres_connection);
546
546
  PGresult *response = do_postgres_cCommand_execute(self, connection, db, query);
547
547
 
548
- if (PQresultStatus(response) != PGRES_TUPLES_OK) {
548
+ int status = PQresultStatus(response);
549
+ if(status != PGRES_TUPLES_OK && status != PGRES_COMMAND_OK) {
549
550
  do_postgres_raise_error(self, response, query);
550
551
  }
551
552
 
@@ -565,8 +566,7 @@ VALUE do_postgres_cCommand_execute_reader(int argc, VALUE *argv, VALUE self) {
565
566
  if (field_types == Qnil || 0 == RARRAY_LEN(field_types)) {
566
567
  field_types = rb_ary_new();
567
568
  infer_types = 1;
568
- }
569
- else if (RARRAY_LEN(field_types) != field_count) {
569
+ } else if (RARRAY_LEN(field_types) != field_count) {
570
570
  // Whoops... wrong number of types passed to set_types. Close the reader and raise
571
571
  // and error
572
572
  rb_funcall(reader, rb_intern("close"), 0);
Binary file
@@ -1,5 +1,5 @@
1
1
  module DataObjects
2
2
  module Postgres
3
- VERSION = '0.10.12'
3
+ VERSION = '0.10.13'
4
4
  end
5
5
  end
data/tasks/compile.rake CHANGED
@@ -70,7 +70,7 @@ begin
70
70
  ext.classpath = '../do_jdbc/lib/do_jdbc_internal.jar'
71
71
  ext.java_compiling do |gem|
72
72
  gem.add_dependency 'jdbc-postgres', '>=8.2'
73
- gem.add_dependency 'do_jdbc', '0.10.12'
73
+ gem.add_dependency 'do_jdbc', '0.10.13'
74
74
  end
75
75
  end
76
76
  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_postgres
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,76 +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-postgres
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
- - 8
70
- - 2
71
49
  version: "8.2"
50
+ name: jdbc-postgres
72
51
  requirement: *id004
73
- - !ruby/object:Gem::Dependency
74
52
  prerelease: false
75
53
  type: :runtime
76
- name: do_jdbc
54
+ - !ruby/object:Gem::Dependency
77
55
  version_requirements: &id005 !ruby/object:Gem::Requirement
78
56
  requirements:
79
57
  - - "="
80
58
  - !ruby/object:Gem::Version
81
- segments:
82
- - 0
83
- - 10
84
- - 12
85
- version: 0.10.12
59
+ version: 0.10.13
60
+ name: do_jdbc
86
61
  requirement: *id005
62
+ prerelease: false
63
+ type: :runtime
87
64
  description: Implements the DataObjects API for PostgreSQL
88
65
  email: d.bussink@gmail.com
89
66
  executables: []
@@ -136,10 +113,11 @@ files:
136
113
  - tasks/retrieve.rake
137
114
  - tasks/spec.rake
138
115
  - lib/do_postgres/do_postgres.jar
139
- has_rdoc: true
140
116
  homepage:
141
117
  licenses: []
142
118
 
119
+ metadata: {}
120
+
143
121
  post_install_message:
144
122
  rdoc_options: []
145
123
 
@@ -147,22 +125,17 @@ require_paths:
147
125
  - lib
148
126
  required_ruby_version: !ruby/object:Gem::Requirement
149
127
  requirements:
150
- - - ">="
128
+ - &id006
129
+ - ">="
151
130
  - !ruby/object:Gem::Version
152
- segments:
153
- - 0
154
131
  version: "0"
155
132
  required_rubygems_version: !ruby/object:Gem::Requirement
156
133
  requirements:
157
- - - ">="
158
- - !ruby/object:Gem::Version
159
- segments:
160
- - 0
161
- version: "0"
134
+ - *id006
162
135
  requirements: []
163
136
 
164
137
  rubyforge_project: dorb
165
- rubygems_version: 1.3.6
138
+ rubygems_version: 2.0.3
166
139
  signing_key:
167
140
  specification_version: 3
168
141
  summary: DataObjects PostgreSQL Driver