rjack-jdbc-postgres 9.3.1103.0 → 9.4.1200.0

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: 9ab95d0319d7c05b0a04fb46a0ce713c1b746043
4
- data.tar.gz: eb1bfef7e6a48a6bcc07e858de1e69d4864289b0
3
+ metadata.gz: 6b447780d0de4aa051eb95ae6a22216541969242
4
+ data.tar.gz: 92940a255bb5e1a2fae38278dfbc48bccb644cd4
5
5
  SHA512:
6
- metadata.gz: a8e275445a712a60be3aac7357c16a8f4731d5b8ec6e3cf35a70985f94ac41deabd526381fee5246ac8262e8cac2f617e91a822a2b1ad25e8420caf8a5b152c1
7
- data.tar.gz: 52f0e2cecfe1a619a74be4a5c6f688de349da1f2cd5f28e5f681c1d571da6880c5bc039e8172123adc52a334a33bb7fa442308bc7bbc5a396b71c9f7c607e5ac
6
+ metadata.gz: b0b6f6e862a031a37744ab1418bfbecd14539839d0bd4d01c16dddcb483d316752831cce7630e4a9bb8c531088f6a316d0d881439a894ffbc853c857660e8935
7
+ data.tar.gz: 310474207fba89630b0aa941391fbe515c44c0f06e041d095b93ab8aebb01b47592b4711d5b09dcd2ec4256a51543b322d3ef753dcd4979f10a8743dd041ab30
data/History.rdoc CHANGED
@@ -1,3 +1,8 @@
1
+ === 9.4.1200.0 (2015-2-13)
2
+ * Update to 9.4-1200
3
+ * Add jdbc 4.1 jar (java 1.7) and switching between jdbc 4.1 and jdbc
4
+ 4 based on the java (specification) version.
5
+
1
6
  === 9.3.1103.0 (2015-2-13)
2
7
  * Update to 9.3-1103
3
8
 
data/Manifest.txt CHANGED
@@ -5,4 +5,5 @@ Rakefile
5
5
  lib/rjack-jdbc-postgres/base.rb
6
6
  lib/rjack-jdbc-postgres.rb
7
7
  test/test_jdbc_postgres.rb
8
- lib/rjack-jdbc-postgres/postgresql-9.3-1103.jdbc4.jar
8
+ lib/rjack-jdbc-postgres/postgresql-9.4-1200.jdbc4.jar
9
+ lib/rjack-jdbc-postgres/postgresql-9.4-1200.jdbc41.jar
data/README.rdoc CHANGED
@@ -7,7 +7,7 @@
7
7
  == Description
8
8
 
9
9
  A gem packaging of the Postgres {JDBC Driver}[http://jdbc.postgresql.org]
10
- for Java JDBC 4 only (requires Java SE 1.6 or higher).
10
+ for JDBC 4 (Java SE 1.6) and JDBC 4.1 (Java SE 1.7+).
11
11
 
12
12
  Check this out: you can `require rjack-jdbc-postgres` and it requires
13
13
  the underlying JDBC driver jar, without any other contortions.
data/Rakefile CHANGED
@@ -6,9 +6,11 @@ require 'rjack-tarpit'
6
6
 
7
7
  RJack::TarPit.new( 'rjack-jdbc-postgres' ).define_tasks
8
8
 
9
- jar = "postgresql-#{RJack::JDBCPostgres::DRIVER_VERSION}.jdbc4.jar"
10
- file "lib/rjack-jdbc-postgres/#{jar}" do |t|
11
- sh "curl -sf -o #{t.name} https://jdbc.postgresql.org/download/#{jar}"
9
+ %w[ 4 41 ].each do |v|
10
+ jar = "postgresql-#{RJack::JDBCPostgres::DRIVER_VERSION}.jdbc#{v}.jar"
11
+ file "lib/rjack-jdbc-postgres/#{jar}" do |t|
12
+ sh "curl -sf -o #{t.name} https://jdbc.postgresql.org/download/#{jar}"
13
+ end
12
14
  end
13
15
 
14
16
  desc "Upload RDOC to Amazon S3 (rdoc.gravitext.com/rjack, Oregon)"
@@ -32,7 +32,7 @@ module RJack
32
32
  module JDBCPostgres
33
33
 
34
34
  # Postgres JDBC Driver version
35
- DRIVER_VERSION = "9.3-1103"
35
+ DRIVER_VERSION = "9.4-1200"
36
36
 
37
37
  # rjack gem version
38
38
  VERSION = DRIVER_VERSION.gsub( '-', '.' ) + '.0'
@@ -33,5 +33,13 @@ require 'rjack-jdbc-postgres/base'
33
33
  require 'java'
34
34
 
35
35
  module RJack::JDBCPostgres
36
- require "#{LIB_DIR}/postgresql-#{DRIVER_VERSION}.jdbc4.jar"
36
+
37
+ def self.jdbc_version
38
+ vers = Java::java.lang.System::get_property( 'java.specification.version' ).
39
+ split( '.' ).map( &:to_i )
40
+ ( ( vers <=> [ 1, 7 ] ) >= 0 ) ? '41' : '4'
41
+ end
42
+
43
+ require "#{LIB_DIR}/postgresql-#{DRIVER_VERSION}.jdbc#{jdbc_version}.jar"
44
+
37
45
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rjack-jdbc-postgres
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.3.1103.0
4
+ version: 9.4.1200.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Kellum
@@ -67,7 +67,8 @@ files:
67
67
  - Rakefile
68
68
  - lib/rjack-jdbc-postgres.rb
69
69
  - lib/rjack-jdbc-postgres/base.rb
70
- - lib/rjack-jdbc-postgres/postgresql-9.3-1103.jdbc4.jar
70
+ - lib/rjack-jdbc-postgres/postgresql-9.4-1200.jdbc4.jar
71
+ - lib/rjack-jdbc-postgres/postgresql-9.4-1200.jdbc41.jar
71
72
  - test/test_jdbc_postgres.rb
72
73
  homepage: http://rjack.gravitext.com/jdbc-postgres
73
74
  licenses: []
@@ -93,5 +94,5 @@ rubyforge_project:
93
94
  rubygems_version: 2.4.5
94
95
  signing_key:
95
96
  specification_version: 4
96
- summary: A gem packaging of the Postgres JDBC Driver for Java JDBC 4 only (requires Java SE 1.6 or higher).
97
+ summary: A gem packaging of the Postgres JDBC Driver for JDBC 4 (Java SE 1.6) and JDBC 4.1 (Java SE 1.7+).
97
98
  test_files: []