activerecord-jdbcpostgresql-adapter 0.9.3-java
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE.txt +21 -0
- data/Manifest.txt +7 -0
- data/README.txt +7 -0
- data/Rakefile +39 -0
- data/lib/active_record/connection_adapters/jdbcpostgresql_adapter.rb +30 -0
- metadata +96 -0
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
Copyright (c) 2006-2007 Nick Sieger <nick@nicksieger.com>
|
2
|
+
Copyright (c) 2006-2007 Ola Bini <ola@ologix.com>
|
3
|
+
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
5
|
+
a copy of this software and associated documentation files (the
|
6
|
+
"Software"), to deal in the Software without restriction, including
|
7
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
8
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
9
|
+
permit persons to whom the Software is furnished to do so, subject to
|
10
|
+
the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be
|
13
|
+
included in all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
16
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
17
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
18
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
19
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
20
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
21
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Manifest.txt
ADDED
data/README.txt
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
MANIFEST = FileList["Manifest.txt", "Rakefile", "README.txt", "LICENSE.txt", "lib/**/*"]
|
2
|
+
|
3
|
+
file "Manifest.txt" => :manifest
|
4
|
+
task :manifest do
|
5
|
+
File.open("Manifest.txt", "w") {|f| MANIFEST.each {|n| f << "#{n}\n"} }
|
6
|
+
end
|
7
|
+
Rake::Task['manifest'].invoke
|
8
|
+
|
9
|
+
require File.dirname(__FILE__) + "/../../lib/jdbc_adapter/version"
|
10
|
+
$LOAD_PATH << File.dirname(__FILE__) + "/../../drivers/postgres/lib"
|
11
|
+
require "jdbc/postgres"
|
12
|
+
|
13
|
+
begin
|
14
|
+
require 'hoe'
|
15
|
+
Hoe.plugin :gemcutter
|
16
|
+
hoe = Hoe.spec("activerecord-jdbcpostgresql-adapter") do |p|
|
17
|
+
p.version = JdbcAdapter::Version::VERSION
|
18
|
+
p.spec_extras[:platform] = Gem::Platform.new("java")
|
19
|
+
p.rubyforge_name = "jruby-extras"
|
20
|
+
p.url = "http://jruby-extras.rubyforge.org/ActiveRecord-JDBC"
|
21
|
+
p.author = "Nick Sieger, Ola Bini and JRuby contributors"
|
22
|
+
p.email = "nick@nicksieger.com, ola.bini@gmail.com"
|
23
|
+
p.summary = "Postgres JDBC adapter for JRuby on Rails."
|
24
|
+
p.changes = "Updated to postgres version #{Jdbc::Postgres::VERSION}."
|
25
|
+
p.description = "Install this gem to use Postgres with JRuby on Rails."
|
26
|
+
p.extra_deps += [
|
27
|
+
['activerecord-jdbc-adapter', "= #{JdbcAdapter::Version::VERSION}"],
|
28
|
+
['jdbc-postgres', ">= #{Jdbc::Postgres::VERSION}"]]
|
29
|
+
end
|
30
|
+
hoe.spec.dependencies.delete_if { |dep| dep.name == "hoe" }
|
31
|
+
task :gemspec do
|
32
|
+
File.open("#{hoe.name}.gemspec", "w") {|f| f << hoe.spec.to_ruby }
|
33
|
+
end
|
34
|
+
task :package => :gemspec
|
35
|
+
rescue LoadError
|
36
|
+
puts "You really need Hoe installed to be able to package this gem"
|
37
|
+
rescue => e
|
38
|
+
puts "ignoring error while loading hoe: #{e.to_s}"
|
39
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
tried_gem = false
|
2
|
+
begin
|
3
|
+
require "jdbc_adapter"
|
4
|
+
rescue LoadError
|
5
|
+
raise if tried_gem
|
6
|
+
require 'rubygems'
|
7
|
+
gem "activerecord-jdbc-adapter"
|
8
|
+
tried_gem = true
|
9
|
+
retry
|
10
|
+
end
|
11
|
+
tried_gem = false
|
12
|
+
begin
|
13
|
+
require "jdbc/postgres"
|
14
|
+
rescue LoadError
|
15
|
+
raise if tried_gem
|
16
|
+
require 'rubygems'
|
17
|
+
gem "jdbc-postgres"
|
18
|
+
tried_gem = true
|
19
|
+
retry
|
20
|
+
end
|
21
|
+
|
22
|
+
require 'active_record/connection_adapters/jdbc_adapter'
|
23
|
+
|
24
|
+
module ActiveRecord
|
25
|
+
class Base
|
26
|
+
class << self
|
27
|
+
alias_method :jdbcpostgresql_connection, :postgresql_connection
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
metadata
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: activerecord-jdbcpostgresql-adapter
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 9
|
8
|
+
- 3
|
9
|
+
version: 0.9.3
|
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-02-23 00:00:00 -06:00
|
18
|
+
default_executable:
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: activerecord-jdbc-adapter
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - "="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 0
|
29
|
+
- 9
|
30
|
+
- 3
|
31
|
+
version: 0.9.3
|
32
|
+
type: :runtime
|
33
|
+
version_requirements: *id001
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: jdbc-postgres
|
36
|
+
prerelease: false
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
segments:
|
42
|
+
- 8
|
43
|
+
- 3
|
44
|
+
- 604
|
45
|
+
version: 8.3.604
|
46
|
+
type: :runtime
|
47
|
+
version_requirements: *id002
|
48
|
+
description: Install this gem to use Postgres with JRuby on Rails.
|
49
|
+
email: nick@nicksieger.com, ola.bini@gmail.com
|
50
|
+
executables: []
|
51
|
+
|
52
|
+
extensions: []
|
53
|
+
|
54
|
+
extra_rdoc_files:
|
55
|
+
- Manifest.txt
|
56
|
+
- README.txt
|
57
|
+
- LICENSE.txt
|
58
|
+
files:
|
59
|
+
- Manifest.txt
|
60
|
+
- Rakefile
|
61
|
+
- README.txt
|
62
|
+
- LICENSE.txt
|
63
|
+
- lib/active_record/connection_adapters/jdbcpostgresql_adapter.rb
|
64
|
+
has_rdoc: true
|
65
|
+
homepage: http://jruby-extras.rubyforge.org/ActiveRecord-JDBC
|
66
|
+
licenses: []
|
67
|
+
|
68
|
+
post_install_message:
|
69
|
+
rdoc_options:
|
70
|
+
- --main
|
71
|
+
- README.txt
|
72
|
+
require_paths:
|
73
|
+
- lib
|
74
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
75
|
+
requirements:
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
segments:
|
79
|
+
- 0
|
80
|
+
version: "0"
|
81
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
82
|
+
requirements:
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
segments:
|
86
|
+
- 0
|
87
|
+
version: "0"
|
88
|
+
requirements: []
|
89
|
+
|
90
|
+
rubyforge_project: jruby-extras
|
91
|
+
rubygems_version: 1.3.6
|
92
|
+
signing_key:
|
93
|
+
specification_version: 3
|
94
|
+
summary: Postgres JDBC adapter for JRuby on Rails.
|
95
|
+
test_files: []
|
96
|
+
|