do_postgres 0.10.11 → 0.10.12

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog.markdown CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.10.12 2013-01-21
2
+
3
+ * jdbc-postgres driver loading fix
4
+
1
5
  ## 0.10.11 2012-12-29
2
6
 
3
7
  * Rename C symbols to prevent name collitions
data/lib/do_postgres.rb CHANGED
@@ -13,6 +13,7 @@ if RUBY_PLATFORM =~ /java/
13
13
  java.lang.Thread.currentThread.getContextClassLoader().loadClass(DataObjects::Postgres::JDBC_DRIVER, true)
14
14
  rescue java.lang.ClassNotFoundException
15
15
  require 'jdbc/postgres' # the JDBC driver, packaged as a gem
16
+ Jdbc::Postgres.load_driver if Jdbc::Postgres.respond_to?(:load_driver)
16
17
  end
17
18
 
18
19
  # Another way of loading the JDBC Class. This seems to be more reliable
@@ -1,5 +1,5 @@
1
1
  module DataObjects
2
2
  module Postgres
3
- VERSION = '0.10.11'
3
+ VERSION = '0.10.12'
4
4
  end
5
5
  end
@@ -16,7 +16,7 @@ describe DataObjects::Postgres::Connection do
16
16
 
17
17
  it_should_behave_like 'a Connection'
18
18
  it_should_behave_like 'a Connection with authentication support'
19
- it_should_behave_like 'a Connection allowing default database'
19
+ it_should_behave_like 'a Connection allowing default database' unless JRUBY
20
20
  it_should_behave_like 'a Connection with JDBC URL support' if JRUBY
21
21
 
22
22
  describe 'byte array quoting' do
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.11'
73
+ gem.add_dependency 'do_jdbc', '0.10.12'
74
74
  end
75
75
  end
76
76
  rescue LoadError
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 10
8
- - 11
9
- version: 0.10.11
8
+ - 12
9
+ version: 0.10.12
10
10
  platform: ruby
11
11
  authors:
12
12
  - Dirkjan Bussink
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-12-29 00:00:00 +01:00
17
+ date: 2013-01-21 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -27,8 +27,8 @@ dependencies:
27
27
  segments:
28
28
  - 0
29
29
  - 10
30
- - 11
31
- version: 0.10.11
30
+ - 12
31
+ version: 0.10.12
32
32
  type: :runtime
33
33
  version_requirements: *id001
34
34
  - !ruby/object:Gem::Dependency