jdbc-postgres 9.1.901 → 9.2.1002

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,16 @@
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
+
1
14
  === 9.1.901
2
15
  * Upgraded to 9.1-901 drivers (still compatible with PostgreSQL 7.2+).
3
16
 
data/Rakefile CHANGED
@@ -1,2 +1,18 @@
1
- require 'bundler'
2
- Bundler::GemHelper.install_tasks
1
+ require 'bundler/gem_helper'
2
+
3
+ name = Dir["*.gemspec"].first.sub('.gemspec', '')
4
+ gem_helper = Bundler::GemHelper.new(Dir.pwd, name)
5
+ def gem_helper.version_tag
6
+ "#{name}-#{version}" # override "v#{version}"
7
+ end
8
+
9
+ version = gem_helper.send(:version)
10
+ version_tag = gem_helper.version_tag
11
+ desc "Build #{name}-#{version}.gem into the pkg directory"
12
+ task('build') { gem_helper.build_gem }
13
+
14
+ desc "Build and install #{name}-#{version}.gem into system gems"
15
+ task('install') { gem_helper.install_gem }
16
+
17
+ desc "Create tag #{version_tag} build and push #{name}-#{version}.gem to Rubygems"
18
+ task('release') { gem_helper.release_gem }
@@ -1,25 +1,32 @@
1
1
  module Jdbc
2
2
  module Postgres
3
- VERSION = "9.1.901"
3
+ VERSION = "9.2.1002"
4
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 )
5
+ def self.driver_jar
6
+ version_jdbc_version = VERSION.split( '.' )
7
+ version_jdbc_version << jdbc_version
8
+ 'postgresql-%s.%s-%s.jdbc%d.jar' % version_jdbc_version
9
9
  end
10
10
 
11
+ def self.load_driver(method = :load)
12
+ send method, driver_jar
13
+ end
14
+
15
+ def self.driver_name
16
+ 'org.postgresql.Driver'
17
+ end
18
+
19
+ private
20
+
11
21
  # JDBC version 4 if Java >=1.6, else 3
12
22
  def self.jdbc_version
13
23
  vers = Java::java.lang.System::get_property( "java.specification.version" )
14
24
  vers = vers.split( '.' ).map { |v| v.to_i }
15
25
  ( ( vers <=> [ 1, 6 ] ) >= 0 ) ? 4 : 3
16
26
  end
17
-
18
27
  end
19
28
  end
20
29
 
21
- if RUBY_PLATFORM =~ /java/
22
- Jdbc::Postgres::require_driver_jar
23
- elsif $VERBOSE
24
- warn "jdbc-postgres is only for use with JRuby"
30
+ if $VERBOSE && (JRUBY_VERSION.nil? rescue true)
31
+ warn "Jdbc-Postgres is only for use with JRuby"
25
32
  end
metadata CHANGED
@@ -1,64 +1,58 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: jdbc-postgres
3
- version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 9.1.901
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 9.2.1002
6
6
  platform: ruby
7
- authors:
8
- - Nick Sieger, Ola Bini and JRuby contributors
9
- autorequire:
7
+ authors:
8
+ - Nick Sieger, Ola Bini and JRuby contributors
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2010-12-15 00:00:00 Z
12
+ date: 2010-12-15 00:00:00.000000000 Z
14
13
  dependencies: []
15
-
16
14
  description: Install this gem and require 'postgres' within JRuby to load the driver.
17
15
  email: nick@nicksieger.com, ola.bini@gmail.com
18
16
  executables: []
19
-
20
17
  extensions: []
21
-
22
18
  extra_rdoc_files: []
23
-
24
- files:
25
- - History.txt
26
- - LICENSE.txt
27
- - README.txt
28
- - Rakefile
29
- - lib/postgresql-9.1-901.jdbc3.jar
30
- - lib/postgresql-9.1-901.jdbc4.jar
31
- - lib/jdbc/postgres.rb
19
+ files:
20
+ - History.txt
21
+ - LICENSE.txt
22
+ - README.txt
23
+ - Rakefile
24
+ - lib/postgresql-9.2-1002.jdbc3.jar
25
+ - lib/postgresql-9.2-1002.jdbc4.jar
26
+ - lib/jdbc/postgres.rb
32
27
  homepage: https://github.com/jruby/activerecord-jdbc-adapter
33
28
  licenses: []
34
-
35
- post_install_message:
36
- rdoc_options:
37
- - --main
38
- - README.txt
39
- require_paths:
40
- - lib
41
- required_ruby_version: !ruby/object:Gem::Requirement
29
+ post_install_message:
30
+ rdoc_options:
31
+ - --main
32
+ - README.txt
33
+ require_paths:
34
+ - lib
35
+ required_ruby_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ! '>='
38
+ - !ruby/object:Gem::Version
39
+ segments:
40
+ - 0
41
+ hash: 2
42
+ version: !binary |-
43
+ MA==
42
44
  none: false
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- hash: 2
47
- segments:
48
- - 0
49
- version: "0"
50
- required_rubygems_version: !ruby/object:Gem::Requirement
45
+ required_rubygems_version: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ! '>='
48
+ - !ruby/object:Gem::Version
49
+ version: !binary |-
50
+ MA==
51
51
  none: false
52
- requirements:
53
- - - ">="
54
- - !ruby/object:Gem::Version
55
- version: "0"
56
52
  requirements: []
57
-
58
53
  rubyforge_project: jruby-extras
59
- rubygems_version: 1.8.15
60
- signing_key:
54
+ rubygems_version: 1.8.24
55
+ signing_key:
61
56
  specification_version: 3
62
57
  summary: PostgreSQL JDBC driver for Java and PostgreSQL/ActiveRecord-JDBC.
63
58
  test_files: []
64
-