jdbc-postgres 8.2 → 8.3.604

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt ADDED
@@ -0,0 +1,7 @@
1
+ === 8.3.604
2
+ * Upgraded to 8.3-604 drivers
3
+ * Added runtime selection of either JDBC 3 or JDBC 4 (j2se 1.6+)
4
+ driver.
5
+
6
+ === 8.2
7
+ * Initial version
data/Manifest.txt CHANGED
@@ -1,7 +1,9 @@
1
+ History.txt
2
+ LICENSE.txt
1
3
  Manifest.txt
2
- Rakefile
3
4
  README.txt
4
- LICENSE.txt
5
+ Rakefile
5
6
  lib/jdbc
6
7
  lib/jdbc/postgres.rb
7
- lib/postgresql-8.2-504.jdbc3.jar
8
+ lib/postgresql-8.3-604.jdbc3.jar
9
+ lib/postgresql-8.3-604.jdbc4.jar
data/Rakefile CHANGED
@@ -1,4 +1,5 @@
1
- MANIFEST = FileList["Manifest.txt", "Rakefile", "README.txt", "LICENSE.txt", "lib/**/*"]
1
+ MANIFEST = FileList["Manifest.txt", "Rakefile", "README.txt", "LICENSE.txt",
2
+ "History.txt", "lib/**/*"].sort
2
3
 
3
4
  file "Manifest.txt" => :manifest
4
5
  task :manifest do
data/lib/jdbc/postgres.rb CHANGED
@@ -1,10 +1,25 @@
1
1
  module Jdbc
2
2
  module Postgres
3
- VERSION = "8.2"
3
+ VERSION = "8.3.604"
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
+
4
18
  end
5
19
  end
20
+
6
21
  if RUBY_PLATFORM =~ /java/
7
- require "postgresql-#{Jdbc::Postgres::VERSION}-504.jdbc3.jar"
22
+ Jdbc::Postgres::require_driver_jar
8
23
  else
9
24
  warn "jdbc-postgres is only for use with JRuby"
10
- end
25
+ end
Binary file
Binary file
metadata CHANGED
@@ -1,55 +1,66 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.4
3
- specification_version: 1
4
2
  name: jdbc-postgres
5
3
  version: !ruby/object:Gem::Version
6
- version: "8.2"
7
- date: 2007-11-05 00:00:00 -06:00
8
- summary: PostgreSQL JDBC driver for Java and PostgreSQL/ActiveRecord-JDBC.
9
- require_paths:
10
- - lib
11
- email: nick@nicksieger.com, ola.bini@gmail.com
12
- homepage: http://jruby-extras.rubyforge.org/ActiveRecord-JDBC
13
- rubyforge_project: jruby-extras
14
- description: Install this gem and require 'postgres' within JRuby to load the driver.
15
- autorequire:
16
- default_executable:
17
- bindir: bin
18
- has_rdoc: true
19
- required_ruby_version: !ruby/object:Gem::Version::Requirement
20
- requirements:
21
- - - ">"
22
- - !ruby/object:Gem::Version
23
- version: 0.0.0
24
- version:
4
+ version: 8.3.604
25
5
  platform: ruby
26
- signing_key:
27
- cert_chain:
28
- post_install_message:
29
6
  authors:
30
7
  - Nick Sieger, Ola Bini and JRuby contributors
31
- files:
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-10-02 00:00:00 -05:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: Install this gem and require 'postgres' within JRuby to load the driver.
17
+ email: nick@nicksieger.com, ola.bini@gmail.com
18
+ executables: []
19
+
20
+ extensions: []
21
+
22
+ extra_rdoc_files:
23
+ - History.txt
24
+ - LICENSE.txt
32
25
  - Manifest.txt
33
- - Rakefile
34
26
  - README.txt
27
+ files:
28
+ - History.txt
35
29
  - LICENSE.txt
36
- - lib/jdbc
30
+ - Manifest.txt
31
+ - README.txt
32
+ - Rakefile
37
33
  - lib/jdbc/postgres.rb
38
- - lib/postgresql-8.2-504.jdbc3.jar
39
- test_files: []
34
+ - lib/postgresql-8.3-604.jdbc3.jar
35
+ - lib/postgresql-8.3-604.jdbc4.jar
36
+ has_rdoc: true
37
+ homepage: http://jruby-extras.rubyforge.org/ActiveRecord-JDBC
38
+ licenses: []
40
39
 
40
+ post_install_message:
41
41
  rdoc_options:
42
42
  - --main
43
43
  - README.txt
44
- extra_rdoc_files:
45
- - Manifest.txt
46
- - README.txt
47
- - LICENSE.txt
48
- executables: []
49
-
50
- extensions: []
51
-
44
+ require_paths:
45
+ - lib
46
+ required_ruby_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: "0"
51
+ version:
52
+ required_rubygems_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: "0"
57
+ version:
52
58
  requirements: []
53
59
 
54
- dependencies: []
60
+ rubyforge_project: jruby-extras
61
+ rubygems_version: 1.3.5
62
+ signing_key:
63
+ specification_version: 3
64
+ summary: PostgreSQL JDBC driver for Java and PostgreSQL/ActiveRecord-JDBC.
65
+ test_files: []
55
66
 
Binary file