jdbc-postgres 9.4.1206 → 9.4.1210

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e513720a575c4c2b9a7097c7cd4c17034353c0ae
4
- data.tar.gz: 524999a472cfcb127987fed35f0d8366e05f8779
3
+ metadata.gz: 1ba80087b5444d211781ce2ba42d28aae4db64b1
4
+ data.tar.gz: f906650895e5d1b1e4487e5ecd561b1ba0b53a1a
5
5
  SHA512:
6
- metadata.gz: c34575c9e575c4bd40258f567c4dbd36f6915be5b208e6dee1d7f54a97ecbc78f52a9a879531dd0476484c5a8fa95cda8ac50d8fe1dfbda7b78cc2ba06ad2421
7
- data.tar.gz: 9240b7d46b21b4ba8925a782ae896501d96809685d9c6b0322d0f4c325f9b32ac3cc87fe3155e12343fcf0f897b061ba6589305f3b9021383d8e950f328c5668
6
+ metadata.gz: cdd10164f21a661ffa3777355143a610b2291bde0c51d7b1a09cca8a4ee7f1a86defcddf1d843204cc01948a13bc51ff6d55116aa062ff1ad79801673e630a1e
7
+ data.tar.gz: 6f981fde5b0b176c496fed5b1397eb79fd738d34e5613a33b858ad5f0c4ac07b3961bc048dd473a7d0a6523010ab473eec7094322fe64ed85e752087f9a4e672
@@ -5,18 +5,16 @@ module Jdbc
5
5
  module Postgres
6
6
 
7
7
  def self.driver_jar
8
- version_jdbc_version = DRIVER_VERSION.split( '.' )
9
- if ( jdbc_v = jdbc_version ).is_a? Float
10
- jdbc_v = (jdbc_v * 10).to_i
11
- end
12
- version_jdbc_version << jdbc_v
13
- 'postgresql-%s.%s-%s-jdbc%d.jar' % version_jdbc_version
8
+ version_jre_version = DRIVER_VERSION.split( '.' )
9
+ version = jre_version
10
+ version_jre_version << (version ? ".jre#{version}" : '')
11
+ 'postgresql-%s.%s.%s%s.jar' % version_jre_version
14
12
  end
15
13
 
16
14
  def self.load_driver(method = :load)
17
15
  send method, driver_jar
18
16
  rescue LoadError => e
19
- if jdbc_version < 4
17
+ if (version = jre_version) && version < 6
20
18
  warn "failed to load postgresql (driver) jar, please note that we no longer " <<
21
19
  "include JDBC 3.x support, on Java < 6 please use gem 'jdbc-postgres', '~> 9.2'"
22
20
  end
@@ -27,19 +25,19 @@ module Jdbc
27
25
  'org.postgresql.Driver'
28
26
  end
29
27
 
30
- def self.jdbc_version
28
+ def self.jre_version
31
29
  version = ENV_JAVA[ 'java.specification.version' ]
32
30
  version = version.split('.').last.to_i # '1.7' => 7
33
31
  if version < 6
34
- 3 # not supported
32
+ 5 # not supported
35
33
  elsif version == 6
36
- 4
37
- else # JDBC >= 4.1
38
- 4.1
34
+ 6
35
+ else
36
+ 7 # NOTE: for 9.4 we only include 6/7 jars
39
37
  end
40
38
  end
41
39
 
42
- class << self; private :jdbc_version end
40
+ class << self; private :jre_version end
43
41
 
44
42
  if defined?(JRUBY_VERSION) && # enable backwards-compat behavior :
45
43
  ( Java::JavaLang::Boolean.get_boolean("jdbc.driver.autoload") ||
@@ -1,6 +1,6 @@
1
1
  module Jdbc
2
2
  module Postgres
3
- DRIVER_VERSION = '9.4.1206'
3
+ DRIVER_VERSION = '9.4.1210'
4
4
  VERSION = DRIVER_VERSION
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jdbc-postgres
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.4.1206
4
+ version: 9.4.1210
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sieger, Ola Bini, Karol Bucek and JRuby contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-05 00:00:00.000000000 Z
11
+ date: 2017-11-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Install this gem `require 'jdbc/postgres'` and invoke `Jdbc::Postgres.load_driver` within JRuby to load the driver.
14
14
  email:
@@ -28,8 +28,8 @@ files:
28
28
  - lib/jdbc/postgres/version.rb
29
29
  - lib/jdbc/postgresql.rb
30
30
  - lib/jdbc/postgresql/version.rb
31
- - lib/postgresql-9.4-1206-jdbc4.jar
32
- - lib/postgresql-9.4-1206-jdbc41.jar
31
+ - lib/postgresql-9.4.1210.jre6.jar
32
+ - lib/postgresql-9.4.1210.jre7.jar
33
33
  homepage: http://github.com/jruby/activerecord-jdbc-adapter/tree/master/jdbc-postgres
34
34
  licenses:
35
35
  - BSD
@@ -52,7 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
52
52
  version: '0'
53
53
  requirements: []
54
54
  rubyforge_project:
55
- rubygems_version: 2.4.8
55
+ rubygems_version: 2.6.12
56
56
  signing_key:
57
57
  specification_version: 4
58
58
  summary: JDBC driver for JRuby and PostgreSQL (used by ActiveRecord-JDBC).