jdbc-postgres 9.4.1206 → 42.2.25

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
- SHA1:
3
- metadata.gz: e513720a575c4c2b9a7097c7cd4c17034353c0ae
4
- data.tar.gz: 524999a472cfcb127987fed35f0d8366e05f8779
2
+ SHA256:
3
+ metadata.gz: e5571eec80f02c08d8daff079f0fcb451011718890ddd0a237d0be28c4f67cfb
4
+ data.tar.gz: 7502eb790f4bd90ac36587f979fa42e5db1bbe1d542c3c9b9001cdb1dd05c68c
5
5
  SHA512:
6
- metadata.gz: c34575c9e575c4bd40258f567c4dbd36f6915be5b208e6dee1d7f54a97ecbc78f52a9a879531dd0476484c5a8fa95cda8ac50d8fe1dfbda7b78cc2ba06ad2421
7
- data.tar.gz: 9240b7d46b21b4ba8925a782ae896501d96809685d9c6b0322d0f4c325f9b32ac3cc87fe3155e12343fcf0f897b061ba6589305f3b9021383d8e950f328c5668
6
+ metadata.gz: 9c669744e54252b23e0bdc66f8ca6c48c3b1d6624e6c38080fc8181f62f1a5460df52ab82540e5fb26b5de6f26df289338e526f52f53813868ce421e25f7c79d
7
+ data.tar.gz: f28a59b6bd10bb07e99902def483f5a42b4387ba63281eacc0a2965fb6bdd061388aa5d90223dd1cb68dac82969b39cc9bb4cb8ea3aab9feb0a37d475aaf13b4
data/README.md CHANGED
@@ -19,7 +19,7 @@ For backwards compatibility with older (<= **9.1.903**) versions of the gem use
19
19
 
20
20
  ## Copyright
21
21
 
22
- Copyright (c) 2012-2015 [The JRuby Team](https://github.com/jruby).
22
+ Copyright (c) 2012-2014 [The JRuby Team](https://github.com/jruby).
23
23
 
24
24
  The PostgreSQL JDBC driver is distributed under the BSD license,
25
25
  see *LICENSE.txt* and http://jdbc.postgresql.org/license.html for details.
@@ -1,6 +1,6 @@
1
1
  module Jdbc
2
2
  module Postgres
3
- DRIVER_VERSION = '9.4.1206'
3
+ DRIVER_VERSION = '42.2.25'
4
4
  VERSION = DRIVER_VERSION
5
5
  end
6
6
  end
data/lib/jdbc/postgres.rb CHANGED
@@ -1,24 +1,21 @@
1
- warn "Jdbc-Postgres is only for use with JRuby" if (JRUBY_VERSION.nil? rescue true)
2
1
  require 'jdbc/postgres/version'
3
2
 
4
3
  module Jdbc
5
4
  module Postgres
6
5
 
7
6
  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
7
+ version_jre_version = DRIVER_VERSION.split( '.' )
8
+ version = jre_version
9
+ version_jre_version << (version ? ".jre#{version}" : '')
10
+ 'postgresql-%s.%s.%s%s.jar' % version_jre_version
14
11
  end
15
12
 
16
13
  def self.load_driver(method = :load)
17
14
  send method, driver_jar
18
15
  rescue LoadError => e
19
- if jdbc_version < 4
16
+ if (version = jre_version) && version < 6
20
17
  warn "failed to load postgresql (driver) jar, please note that we no longer " <<
21
- "include JDBC 3.x support, on Java < 6 please use gem 'jdbc-postgres', '~> 9.2'"
18
+ "include JDBC 3.x support, on Java < 6 please use gem 'jdbc-postgres', '~> 9.2'"
22
19
  end
23
20
  raise e
24
21
  end
@@ -27,19 +24,23 @@ module Jdbc
27
24
  'org.postgresql.Driver'
28
25
  end
29
26
 
30
- def self.jdbc_version
27
+ private
28
+
29
+ def self.jre_version
31
30
  version = ENV_JAVA[ 'java.specification.version' ]
32
- version = version.split('.').last.to_i # '1.7' => 7
31
+ version = version.split('.').last.to_i # '1.7' => 7, '9' => 9
33
32
  if version < 6
34
- 3 # not supported
33
+ 5 # not supported
35
34
  elsif version == 6
36
- 4
37
- else # JDBC >= 4.1
38
- 4.1
35
+ 6
36
+ elsif version == 7
37
+ 7
38
+ else
39
+ nil # non-tagged X.Y.Z.jar
39
40
  end
40
41
  end
41
42
 
42
- class << self; private :jdbc_version end
43
+ class << self; private :jre_version end
43
44
 
44
45
  if defined?(JRUBY_VERSION) && # enable backwards-compat behavior :
45
46
  ( Java::JavaLang::Boolean.get_boolean("jdbc.driver.autoload") ||
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,16 +1,17 @@
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: 42.2.25
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: 2022-02-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: Install this gem `require 'jdbc/postgres'` and invoke `Jdbc::Postgres.load_driver` within JRuby to load the driver.
13
+ description: Install this gem `require 'jdbc/postgres'` and invoke `Jdbc::Postgres.load_driver`
14
+ within JRuby to load the driver.
14
15
  email:
15
16
  - nick@nicksieger.com
16
17
  - ola.bini@gmail.com
@@ -19,17 +20,15 @@ executables: []
19
20
  extensions: []
20
21
  extra_rdoc_files: []
21
22
  files:
22
- - History.txt
23
23
  - LICENSE.txt
24
24
  - README.md
25
- - Rakefile
26
- - jdbc-postgres.gemspec
27
25
  - lib/jdbc/postgres.rb
28
26
  - lib/jdbc/postgres/version.rb
29
27
  - lib/jdbc/postgresql.rb
30
28
  - lib/jdbc/postgresql/version.rb
31
- - lib/postgresql-9.4-1206-jdbc4.jar
32
- - lib/postgresql-9.4-1206-jdbc41.jar
29
+ - lib/postgresql-42.2.25.jar
30
+ - lib/postgresql-42.2.25.jre6.jar
31
+ - lib/postgresql-42.2.25.jre7.jar
33
32
  homepage: http://github.com/jruby/activerecord-jdbc-adapter/tree/master/jdbc-postgres
34
33
  licenses:
35
34
  - BSD
@@ -51,8 +50,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
51
50
  - !ruby/object:Gem::Version
52
51
  version: '0'
53
52
  requirements: []
54
- rubyforge_project:
55
- rubygems_version: 2.4.8
53
+ rubygems_version: 3.1.6
56
54
  signing_key:
57
55
  specification_version: 4
58
56
  summary: JDBC driver for JRuby and PostgreSQL (used by ActiveRecord-JDBC).
data/History.txt DELETED
@@ -1,84 +0,0 @@
1
- == 9.4.1200
2
-
3
- * Upgraded to driver version 9.4-1200
4
- https://jdbc.postgresql.org/documentation/changelog.html#version_9.4-1200
5
-
6
- == 9.3.1103
7
-
8
- * Upgraded to driver version 9.3-1103
9
- https://jdbc.postgresql.org/documentation/changelog.html#version_9.3-1103
10
-
11
- == 9.2.1004
12
- Likely the last release where we bundle JDBC 3.x driver version (Java < 6)
13
-
14
- * Upgraded to 9.2-1004 drivers (still compatible with PostgreSQL 7.2+).
15
-
16
- == 9.3.1102
17
-
18
- * Upgraded to driver version 9.3-1102
19
-
20
- http://jdbc.postgresql.org/download.html#supported
21
- Changes https://github.com/pgjdbc/pgjdbc/compare/REL9_3_1101...REL9_3_1102
22
-
23
- == 9.3.1101
24
-
25
- * Upgraded to driver version 9.3-1101
26
-
27
- http://jdbc.postgresql.org/download.html#supported
28
- Changes https://github.com/pgjdbc/pgjdbc/compare/REL9_3_1100...REL9_3_1101
29
-
30
- == 9.3.1100
31
-
32
- * Using "new" 9.3 driver version 9.3-1100
33
-
34
- == 9.2.1004
35
-
36
- Likely the last release where we bundle JDBC 3.x driver version (Java < 6)
37
-
38
- * Upgraded to 9.2-1004 drivers (still compatible with PostgreSQL 7.2+).
39
-
40
- == 9.2.1002
41
-
42
- * Upgraded to 9.2-1002 drivers (still compatible with PostgreSQL 7.2+).
43
- * 9.2 supports hstore among others
44
- See PostgreSQL JDBC {Change Log}[http://jdbc.postgresql.org/changes.html#version_9.2-1002].
45
- First 9.2 release: {9.2-1000}[http://jdbc.postgresql.org/changes.html#version_9.2-1000].
46
-
47
- == 9.1.903
48
- * Upgraded to 9.1-903 drivers (still compatible with PostgreSQL 7.2+).
49
- See PostgreSQL JDBC {Change Log}[http://jdbc.postgresql.org/changes.html#version_9.1-903].
50
- Though change logging has been a bit spotty of late.
51
-
52
- == 9.1.901
53
-
54
- * Upgraded to 9.1-901 drivers (still compatible with PostgreSQL 7.2+).
55
- See PostgreSQL JDBC {Change Log}[http://jdbc.postgresql.org/changes.html#version_9.1-901].
56
-
57
- == 9.0.801
58
-
59
- * Upgraded to 9.0-801 drivers (still compatible with PostgreSQL 7.2+).
60
- See PostgreSQL JDBC {Change Log}[http://jdbc.postgresql.org/changes.html#version_9.0-801].
61
-
62
-
63
- == 8.4.702
64
- * Upgraded to 8.4-702 drivers, see PostgreSQL JDBC
65
- {Change Log}[http://jdbc.postgresql.org/changes.html#version_8.4-702].
66
-
67
- == 8.4.701
68
-
69
- * Upgraded to 8.4-701 drivers, see PostgreSQL JDBC
70
- {Change Log}[http://jdbc.postgresql.org/changes.html#version_8.4-701].
71
-
72
- == 8.3.605
73
-
74
- * Upgraded to 8.3-605 drivers, see PostgreSQL JDBC
75
- {Change Log}[http://jdbc.postgresql.org/changes.html#version_8.3-605].
76
-
77
- == 8.3.604
78
-
79
- * Upgraded to 8.3-604 drivers
80
- * Added runtime selection of either JDBC 3 or JDBC 4 (j2se 1.6+) driver.
81
-
82
- == 8.2
83
-
84
- * Initial version
data/Rakefile DELETED
@@ -1 +0,0 @@
1
- load File.expand_path('../Rakefile.jdbc', File.dirname(__FILE__))
@@ -1,21 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- $LOAD_PATH << File.expand_path('../lib', __FILE__)
3
- require 'jdbc/postgres/version'
4
-
5
- Gem::Specification.new do |gem|
6
- gem.name = %q{jdbc-postgres}
7
- gem.version = Jdbc::Postgres::VERSION
8
-
9
- gem.authors = ['Nick Sieger, Ola Bini, Karol Bucek and JRuby contributors']
10
- gem.email = ['nick@nicksieger.com', 'ola.bini@gmail.com', 'self@kares.org']
11
- gem.homepage = 'http://github.com/jruby/activerecord-jdbc-adapter/tree/master/jdbc-postgres'
12
- gem.licenses = ['BSD']
13
-
14
- Dir.chdir(File.dirname(__FILE__)) { gem.files = `git ls-files`.split("\n") }
15
-
16
- gem.rdoc_options = ["--main", "README.md"]
17
- gem.require_paths = ["lib"]
18
-
19
- gem.summary = %q{JDBC driver for JRuby and PostgreSQL (used by ActiveRecord-JDBC).}
20
- gem.description = %q{Install this gem `require 'jdbc/postgres'` and invoke `Jdbc::Postgres.load_driver` within JRuby to load the driver.}
21
- end
Binary file
Binary file