jdbc-postgres 9.2.1002 → 9.2.1002.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/LICENSE.txt +26 -7
  2. data/README.md +26 -0
  3. data/lib/jdbc/postgres.rb +14 -9
  4. metadata +10 -11
  5. data/History.txt +0 -42
  6. data/README.txt +0 -13
data/LICENSE.txt CHANGED
@@ -1,12 +1,31 @@
1
- PostgreSQL Database Management System
2
- (formerly known as Postgres, then as Postgres95)
3
1
 
4
- Portions Copyright (c) 1996-2005, The PostgreSQL Global Development Group
2
+ BSD License
5
3
 
6
- Portions Copyright (c) 1994, The Regents of the University of California
4
+ The PostgreSQL JDBC driver is distributed under the BSD license, same as the server. The simplest explanation of the licensing terms is that you can do whatever you want with the product and source code as long as you don't claim you wrote it or sue us. You should give it a read though, it's only half a page.
7
5
 
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.
6
+ Copyright (c) 1997-2011, PostgreSQL Global Development Group
7
+ All rights reserved.
9
8
 
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.
9
+ Redistribution and use in source and binary forms, with or without
10
+ modification, are permitted provided that the following conditions are met:
11
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.
12
+ 1. Redistributions of source code must retain the above copyright notice,
13
+ this list of conditions and the following disclaimer.
14
+ 2. Redistributions in binary form must reproduce the above copyright notice,
15
+ this list of conditions and the following disclaimer in the documentation
16
+ and/or other materials provided with the distribution.
17
+ 3. Neither the name of the PostgreSQL Global Development Group nor the names
18
+ of its contributors may be used to endorse or promote products derived
19
+ from this software without specific prior written permission.
20
+
21
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
25
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31
+ POSSIBILITY OF SUCH DAMAGE.
data/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # jdbc-postgres
2
+
3
+ PostgreSQL JDBC driver allows Java programs to connect to a PostgreSQL database
4
+ using standard, database independent Java code.
5
+ It is a pure Java (Type IV) implementation.
6
+
7
+ For more information see http://jdbc.postgresql.org/
8
+
9
+ ## Usage
10
+
11
+ To make the driver accessible to JDBC and ActiveRecord code running in JRuby :
12
+
13
+ require 'jdbc/postgres'
14
+ Jdbc::Postgres.load_driver
15
+
16
+ For backwards compatibility with older (<= **9.1.903**) versions of the gem use :
17
+
18
+ require 'jdbc/postgres'
19
+ Jdbc::Postgres.load_driver(:require) if Jdbc::Postgres.respond_to?(:load_driver)
20
+
21
+ ## Copyright
22
+
23
+ Copyright (c) 2012 [The JRuby Team](https://github.com/jruby).
24
+
25
+ The PostgreSQL JDBC driver is distributed under the BSD license,
26
+ see *LICENSE.txt* and http://jdbc.postgresql.org/license.html for details.
data/lib/jdbc/postgres.rb CHANGED
@@ -1,9 +1,12 @@
1
+ warn "Jdbc-Postgres is only for use with JRuby" if (JRUBY_VERSION.nil? rescue true)
2
+
1
3
  module Jdbc
2
4
  module Postgres
3
- VERSION = "9.2.1002"
5
+ DRIVER_VERSION = '9.2.1002'
6
+ VERSION = DRIVER_VERSION + '.1'
4
7
 
5
8
  def self.driver_jar
6
- version_jdbc_version = VERSION.split( '.' )
9
+ version_jdbc_version = DRIVER_VERSION.split( '.' )
7
10
  version_jdbc_version << jdbc_version
8
11
  'postgresql-%s.%s-%s.jdbc%d.jar' % version_jdbc_version
9
12
  end
@@ -20,13 +23,15 @@ module Jdbc
20
23
 
21
24
  # JDBC version 4 if Java >=1.6, else 3
22
25
  def self.jdbc_version
23
- vers = Java::java.lang.System::get_property( "java.specification.version" )
24
- vers = vers.split( '.' ).map { |v| v.to_i }
25
- ( ( vers <=> [ 1, 6 ] ) >= 0 ) ? 4 : 3
26
+ vers = Java::JavaLang::System.get_property( "java.specification.version" )
27
+ ( ( vers.split( '.' ).map(&:to_i) <=> [ 1, 6 ] ) >= 0 ) ? 4 : 3
26
28
  end
27
- end
28
- end
29
29
 
30
- if $VERBOSE && (JRUBY_VERSION.nil? rescue true)
31
- warn "Jdbc-Postgres is only for use with JRuby"
30
+ if defined?(JRUBY_VERSION) && # enable backwards-compat behavior :
31
+ ( Java::JavaLang::Boolean.get_boolean("jdbc.driver.autoload") ||
32
+ Java::JavaLang::Boolean.get_boolean("jdbc.postgres.autoload") )
33
+ warn "autoloading JDBC driver on require 'jdbc/postgres'" if $VERBOSE
34
+ load_driver :require
35
+ end
36
+ end
32
37
  end
metadata CHANGED
@@ -2,39 +2,38 @@
2
2
  name: jdbc-postgres
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 9.2.1002
5
+ version: 9.2.1002.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Nick Sieger, Ola Bini and JRuby contributors
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2010-12-15 00:00:00.000000000 Z
12
+ date: 2013-01-23 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: Install this gem and require 'postgres' within JRuby to load the driver.
14
+ description: Install this gem `require 'jdbc/postgres'` and invoke `Jdbc::Postgres.load_driver` within JRuby to load the driver.
15
15
  email: nick@nicksieger.com, ola.bini@gmail.com
16
16
  executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
- - History.txt
21
20
  - LICENSE.txt
22
- - README.txt
21
+ - README.md
23
22
  - Rakefile
24
- - lib/postgresql-9.2-1002.jdbc3.jar
25
23
  - lib/postgresql-9.2-1002.jdbc4.jar
24
+ - lib/postgresql-9.2-1002.jdbc3.jar
26
25
  - lib/jdbc/postgres.rb
27
26
  homepage: https://github.com/jruby/activerecord-jdbc-adapter
28
27
  licenses: []
29
28
  post_install_message:
30
29
  rdoc_options:
31
- - --main
32
- - README.txt
30
+ - "--main"
31
+ - README.md
33
32
  require_paths:
34
33
  - lib
35
34
  required_ruby_version: !ruby/object:Gem::Requirement
36
35
  requirements:
37
- - - ! '>='
36
+ - - ">="
38
37
  - !ruby/object:Gem::Version
39
38
  segments:
40
39
  - 0
@@ -44,7 +43,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
44
43
  none: false
45
44
  required_rubygems_version: !ruby/object:Gem::Requirement
46
45
  requirements:
47
- - - ! '>='
46
+ - - ">="
48
47
  - !ruby/object:Gem::Version
49
48
  version: !binary |-
50
49
  MA==
@@ -54,5 +53,5 @@ rubyforge_project: jruby-extras
54
53
  rubygems_version: 1.8.24
55
54
  signing_key:
56
55
  specification_version: 3
57
- summary: PostgreSQL JDBC driver for Java and PostgreSQL/ActiveRecord-JDBC.
56
+ summary: PostgreSQL JDBC driver for JRuby and PostgreSQL/ActiveRecord-JDBC (activerecord-jdbcpostgresql-adapter).
58
57
  test_files: []
data/History.txt DELETED
@@ -1,42 +0,0 @@
1
- === 9.2.1002
2
- * Upgraded to 9.2-1002 drivers (still compatible with PostgreSQL 7.2+).
3
- * 9.2 supports hstore among others
4
-
5
- See PostgreSQL JDBC {Change Log}[http://jdbc.postgresql.org/changes.html#version_9.2-1002].
6
- First 9.2 release: {9.2-1000}[http://jdbc.postgresql.org/changes.html#version_9.2-1000].
7
-
8
- === 9.1.903
9
- * Upgraded to 9.1-903 drivers (still compatible with PostgreSQL 7.2+).
10
-
11
- See PostgreSQL JDBC {Change Log}[http://jdbc.postgresql.org/changes.html#version_9.1-903].
12
- Though change logging has been a bit spotty of late.
13
-
14
- === 9.1.901
15
- * Upgraded to 9.1-901 drivers (still compatible with PostgreSQL 7.2+).
16
-
17
- See PostgreSQL JDBC {Change Log}[http://jdbc.postgresql.org/changes.html#version_9.1-901].
18
-
19
- === 9.0.801
20
- * Upgraded to 9.0-801 drivers (still compatible with PostgreSQL 7.2+).
21
-
22
- See PostgreSQL JDBC {Change Log}[http://jdbc.postgresql.org/changes.html#version_9.0-801].
23
-
24
- === 8.4.702
25
- * Upgraded to 8.4-702 drivers, see PostgreSQL JDBC
26
- {Change Log}[http://jdbc.postgresql.org/changes.html#version_8.4-702].
27
-
28
- === 8.4.701
29
- * Upgraded to 8.4-701 drivers, see PostgreSQL JDBC
30
- {Change Log}[http://jdbc.postgresql.org/changes.html#version_8.4-701].
31
-
32
- === 8.3.605
33
- * Upgraded to 8.3-605 drivers, see PostgreSQL JDBC
34
- {Change Log}[http://jdbc.postgresql.org/changes.html#version_8.3-605].
35
-
36
- === 8.3.604
37
- * Upgraded to 8.3-604 drivers
38
- * Added runtime selection of either JDBC 3 or JDBC 4 (j2se 1.6+)
39
- driver.
40
-
41
- === 8.2
42
- * Initial version
data/README.txt DELETED
@@ -1,13 +0,0 @@
1
- = jdbc-postgres
2
-
3
- * https://github.com/jruby/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.