jdbc-postgres 8.4.701-java
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +15 -0
- data/LICENSE.txt +12 -0
- data/Manifest.txt +9 -0
- data/README.txt +13 -0
- data/Rakefile +30 -0
- data/lib/jdbc/postgres.rb +25 -0
- data/lib/postgresql-8.4-701.jdbc3.jar +0 -0
- data/lib/postgresql-8.4-701.jdbc4.jar +0 -0
- metadata +73 -0
data/History.txt
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
=== 8.4.701
|
2
|
+
* Upgraded to 8.4-701 drivers, see PostgreSQL JDBC
|
3
|
+
{Change Log}[http://jdbc.postgresql.org/changes.html#version_8.4-701].
|
4
|
+
|
5
|
+
=== 8.3.605
|
6
|
+
* Upgraded to 8.3-605 drivers, see PostgreSQL JDBC
|
7
|
+
{Change Log}[http://jdbc.postgresql.org/changes.html#version_8.3-605].
|
8
|
+
|
9
|
+
=== 8.3.604
|
10
|
+
* Upgraded to 8.3-604 drivers
|
11
|
+
* Added runtime selection of either JDBC 3 or JDBC 4 (j2se 1.6+)
|
12
|
+
driver.
|
13
|
+
|
14
|
+
=== 8.2
|
15
|
+
* Initial version
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
PostgreSQL Database Management System
|
2
|
+
(formerly known as Postgres, then as Postgres95)
|
3
|
+
|
4
|
+
Portions Copyright (c) 1996-2005, The PostgreSQL Global Development Group
|
5
|
+
|
6
|
+
Portions Copyright (c) 1994, The Regents of the University of California
|
7
|
+
|
8
|
+
Permission to use, copy, modify, and distribute this software and its documentation for any purpose, without fee, and without a written agreement is hereby granted, provided that the above copyright notice and this paragraph and the following two paragraphs appear in all copies.
|
9
|
+
|
10
|
+
IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
11
|
+
|
12
|
+
THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
|
data/Manifest.txt
ADDED
data/README.txt
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
= jdbc-postgres
|
2
|
+
|
3
|
+
* http://jruby-extras.rubyforge.org/activerecord-jdbc-adapter/
|
4
|
+
|
5
|
+
== DESCRIPTION:
|
6
|
+
|
7
|
+
This is a Postgres JDBC driver gem for JRuby.
|
8
|
+
|
9
|
+
Use
|
10
|
+
|
11
|
+
require 'jdbc/postgres'
|
12
|
+
|
13
|
+
to make the driver accessible to JDBC and ActiveRecord code running in JRuby.
|
data/Rakefile
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
MANIFEST = FileList["Manifest.txt", "Rakefile", "README.txt", "LICENSE.txt",
|
2
|
+
"History.txt", "lib/**/*"].sort
|
3
|
+
|
4
|
+
file "Manifest.txt" => :manifest
|
5
|
+
task :manifest do
|
6
|
+
File.open("Manifest.txt", "w") {|f| MANIFEST.each {|n| f << "#{n}\n"} }
|
7
|
+
end
|
8
|
+
Rake::Task['manifest'].invoke # Always regen manifest, so Hoe has up-to-date list of files
|
9
|
+
|
10
|
+
$LOAD_PATH << "lib"
|
11
|
+
require "jdbc/postgres"
|
12
|
+
begin
|
13
|
+
require 'hoe'
|
14
|
+
Hoe.plugin :gemcutter
|
15
|
+
Hoe.spec("jdbc-postgres") do |p|
|
16
|
+
p.version = Jdbc::Postgres::VERSION
|
17
|
+
p.spec_extras[:platform] = Gem::Platform.new("java")
|
18
|
+
p.rubyforge_name = "jruby-extras"
|
19
|
+
p.url = "http://jruby-extras.rubyforge.org/ActiveRecord-JDBC"
|
20
|
+
p.author = "Nick Sieger, Ola Bini and JRuby contributors"
|
21
|
+
p.email = "nick@nicksieger.com, ola.bini@gmail.com"
|
22
|
+
p.summary = "PostgreSQL JDBC driver for Java and PostgreSQL/ActiveRecord-JDBC."
|
23
|
+
p.changes = "Updated to PostgreSQL version #{Jdbc::Postgres::VERSION}."
|
24
|
+
p.description = "Install this gem and require 'postgres' within JRuby to load the driver."
|
25
|
+
end.spec.dependencies.delete_if { |dep| dep.name == "hoe" }
|
26
|
+
rescue LoadError
|
27
|
+
puts "You really need Hoe installed to be able to package this gem"
|
28
|
+
rescue => e
|
29
|
+
puts "ignoring error while loading hoe: #{e.to_s}"
|
30
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module Jdbc
|
2
|
+
module Postgres
|
3
|
+
VERSION = "8.4.701"
|
4
|
+
|
5
|
+
def self.require_driver_jar
|
6
|
+
vers = VERSION.split( '.' )
|
7
|
+
vers << jdbc_version
|
8
|
+
require( "postgresql-%s.%s-%s.jdbc%d.jar" % vers )
|
9
|
+
end
|
10
|
+
|
11
|
+
# JDBC version 4 if Java >=1.6, else 3
|
12
|
+
def self.jdbc_version
|
13
|
+
vers = Java::java.lang.System::get_property( "java.specification.version" )
|
14
|
+
vers = vers.split( '.' ).map { |v| v.to_i }
|
15
|
+
( ( vers <=> [ 1, 6 ] ) >= 0 ) ? 4 : 3
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
if RUBY_PLATFORM =~ /java/
|
22
|
+
Jdbc::Postgres::require_driver_jar
|
23
|
+
else
|
24
|
+
warn "jdbc-postgres is only for use with JRuby"
|
25
|
+
end
|
Binary file
|
Binary file
|
metadata
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jdbc-postgres
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 8
|
7
|
+
- 4
|
8
|
+
- 701
|
9
|
+
version: 8.4.701
|
10
|
+
platform: java
|
11
|
+
authors:
|
12
|
+
- Nick Sieger, Ola Bini and JRuby contributors
|
13
|
+
autorequire:
|
14
|
+
bindir: bin
|
15
|
+
cert_chain: []
|
16
|
+
|
17
|
+
date: 2010-04-23 00:00:00 -05:00
|
18
|
+
default_executable:
|
19
|
+
dependencies: []
|
20
|
+
|
21
|
+
description: Install this gem and require 'postgres' within JRuby to load the driver.
|
22
|
+
email: nick@nicksieger.com, ola.bini@gmail.com
|
23
|
+
executables: []
|
24
|
+
|
25
|
+
extensions: []
|
26
|
+
|
27
|
+
extra_rdoc_files:
|
28
|
+
- History.txt
|
29
|
+
- LICENSE.txt
|
30
|
+
- Manifest.txt
|
31
|
+
- README.txt
|
32
|
+
files:
|
33
|
+
- History.txt
|
34
|
+
- LICENSE.txt
|
35
|
+
- Manifest.txt
|
36
|
+
- README.txt
|
37
|
+
- Rakefile
|
38
|
+
- lib/jdbc/postgres.rb
|
39
|
+
- lib/postgresql-8.4-701.jdbc3.jar
|
40
|
+
- lib/postgresql-8.4-701.jdbc4.jar
|
41
|
+
has_rdoc: true
|
42
|
+
homepage: http://jruby-extras.rubyforge.org/ActiveRecord-JDBC
|
43
|
+
licenses: []
|
44
|
+
|
45
|
+
post_install_message:
|
46
|
+
rdoc_options:
|
47
|
+
- --main
|
48
|
+
- README.txt
|
49
|
+
require_paths:
|
50
|
+
- lib
|
51
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
segments:
|
56
|
+
- 0
|
57
|
+
version: "0"
|
58
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
segments:
|
63
|
+
- 0
|
64
|
+
version: "0"
|
65
|
+
requirements: []
|
66
|
+
|
67
|
+
rubyforge_project: jruby-extras
|
68
|
+
rubygems_version: 1.3.6
|
69
|
+
signing_key:
|
70
|
+
specification_version: 3
|
71
|
+
summary: PostgreSQL JDBC driver for Java and PostgreSQL/ActiveRecord-JDBC.
|
72
|
+
test_files: []
|
73
|
+
|