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 +4 -4
- data/History.rdoc +5 -0
- data/Manifest.txt +2 -1
- data/README.rdoc +1 -1
- data/Rakefile +5 -3
- data/lib/rjack-jdbc-postgres/base.rb +1 -1
- data/lib/rjack-jdbc-postgres/postgresql-9.4-1200.jdbc4.jar +0 -0
- data/lib/rjack-jdbc-postgres/postgresql-9.4-1200.jdbc41.jar +0 -0
- data/lib/rjack-jdbc-postgres.rb +9 -1
- metadata +4 -3
- data/lib/rjack-jdbc-postgres/postgresql-9.3-1103.jdbc4.jar +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b447780d0de4aa051eb95ae6a22216541969242
|
4
|
+
data.tar.gz: 92940a255bb5e1a2fae38278dfbc48bccb644cd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0b6f6e862a031a37744ab1418bfbecd14539839d0bd4d01c16dddcb483d316752831cce7630e4a9bb8c531088f6a316d0d881439a894ffbc853c857660e8935
|
7
|
+
data.tar.gz: 310474207fba89630b0aa941391fbe515c44c0f06e041d095b93ab8aebb01b47592b4711d5b09dcd2ec4256a51543b322d3ef753dcd4979f10a8743dd041ab30
|
data/History.rdoc
CHANGED
data/Manifest.txt
CHANGED
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
|
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
|
-
|
10
|
-
|
11
|
-
|
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)"
|
Binary file
|
Binary file
|
data/lib/rjack-jdbc-postgres.rb
CHANGED
@@ -33,5 +33,13 @@ require 'rjack-jdbc-postgres/base'
|
|
33
33
|
require 'java'
|
34
34
|
|
35
35
|
module RJack::JDBCPostgres
|
36
|
-
|
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.
|
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.
|
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
|
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: []
|
Binary file
|