activerecord-jdbcsqlite3-adapter 0.8.1

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.
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
@@ -0,0 +1,7 @@
1
+ Manifest.txt
2
+ Rakefile
3
+ README.txt
4
+ LICENSE.txt
5
+ lib/active_record
6
+ lib/active_record/connection_adapters
7
+ lib/active_record/connection_adapters/jdbcsqlite3_adapter.rb
data/README.txt ADDED
@@ -0,0 +1,5 @@
1
+ This is an ActiveRecord driver for SQLite3 using JDBC running under JRuby. Please see
2
+
3
+ http://jruby-extras.rubyforge.org/activerecord-jdbc-adapter/
4
+
5
+ for more information.
data/Rakefile ADDED
@@ -0,0 +1,31 @@
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/sqlite3/lib"
11
+ require "jdbc/sqlite3"
12
+
13
+ begin
14
+ require 'hoe'
15
+ Hoe.new("activerecord-jdbcsqlite3-adapter", JdbcAdapter::Version::VERSION) do |p|
16
+ p.rubyforge_name = "jruby-extras"
17
+ p.url = "http://jruby-extras.rubyforge.org/ActiveRecord-JDBC"
18
+ p.author = "Nick Sieger, Ola Bini and JRuby contributors"
19
+ p.email = "nick@nicksieger.com, ola.bini@gmail.com"
20
+ p.summary = "SQLite3 JDBC adapter for JRuby on Rails."
21
+ p.changes = "Updated to SQLite3 version #{Jdbc::SQLite3::VERSION}."
22
+ p.description = "Install this gem to use SQLite3 with JRuby on Rails."
23
+ p.extra_deps += [
24
+ ['activerecord-jdbc-adapter', ">= #{JdbcAdapter::Version::VERSION}"],
25
+ ['jdbc-sqlite3', ">= #{Jdbc::SQLite3::VERSION}"]]
26
+ end.spec.dependencies.delete_if { |dep| dep.name == "hoe" }
27
+ rescue LoadError
28
+ puts "You really need Hoe installed to be able to package this gem"
29
+ rescue => e
30
+ puts "ignoring error while loading hoe: #{e.to_s}"
31
+ 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/sqlite3"
14
+ rescue LoadError
15
+ raise if tried_gem
16
+ require 'rubygems'
17
+ gem "jdbc-sqlite3"
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 :jdbcsqlite3_connection, :sqlite3_connection
28
+ end
29
+ end
30
+ end
metadata ADDED
@@ -0,0 +1,79 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: activerecord-jdbcsqlite3-adapter
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.8.1
5
+ platform: ruby
6
+ authors:
7
+ - Nick Sieger, Ola Bini and JRuby contributors
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-06-04 00:00:00 -05:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: activerecord-jdbc-adapter
17
+ version_requirement:
18
+ version_requirements: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 0.8.1
23
+ version:
24
+ - !ruby/object:Gem::Dependency
25
+ name: jdbc-sqlite3
26
+ version_requirement:
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ version: 3.5.8
32
+ version:
33
+ description: Install this gem to use SQLite3 with JRuby on Rails.
34
+ email: nick@nicksieger.com, ola.bini@gmail.com
35
+ executables: []
36
+
37
+ extensions: []
38
+
39
+ extra_rdoc_files:
40
+ - Manifest.txt
41
+ - README.txt
42
+ - LICENSE.txt
43
+ files:
44
+ - Manifest.txt
45
+ - Rakefile
46
+ - README.txt
47
+ - LICENSE.txt
48
+ - lib/active_record
49
+ - lib/active_record/connection_adapters
50
+ - lib/active_record/connection_adapters/jdbcsqlite3_adapter.rb
51
+ has_rdoc: true
52
+ homepage: http://jruby-extras.rubyforge.org/ActiveRecord-JDBC
53
+ post_install_message:
54
+ rdoc_options:
55
+ - --main
56
+ - README.txt
57
+ require_paths:
58
+ - lib
59
+ required_ruby_version: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: "0"
64
+ version:
65
+ required_rubygems_version: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: "0"
70
+ version:
71
+ requirements: []
72
+
73
+ rubyforge_project: jruby-extras
74
+ rubygems_version: 1.0.1
75
+ signing_key:
76
+ specification_version: 2
77
+ summary: SQLite3 JDBC adapter for JRuby on Rails.
78
+ test_files: []
79
+