activerecord-jdbcsqlite3-adapter 0.9.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.txt +5 -3
- data/Rakefile +15 -5
- data/lib/active_record/connection_adapters/jdbcsqlite3_adapter.rb +1 -30
- metadata +92 -43
data/README.txt
CHANGED
@@ -1,5 +1,7 @@
|
|
1
|
-
|
1
|
+
= activerecord-jdbcsqlite3-adapter
|
2
2
|
|
3
|
-
http://jruby-extras.rubyforge.org/activerecord-jdbc-adapter/
|
3
|
+
* http://jruby-extras.rubyforge.org/activerecord-jdbc-adapter/
|
4
4
|
|
5
|
-
|
5
|
+
== DESCRIPTION:
|
6
|
+
|
7
|
+
This is an ActiveRecord driver for SQLite3 using JDBC running under JRuby.
|
data/Rakefile
CHANGED
@@ -6,13 +6,15 @@ task :manifest do
|
|
6
6
|
end
|
7
7
|
Rake::Task['manifest'].invoke
|
8
8
|
|
9
|
-
require File.dirname(__FILE__) + "/../../lib/
|
9
|
+
require File.dirname(__FILE__) + "/../../lib/arjdbc/version"
|
10
10
|
$LOAD_PATH << File.dirname(__FILE__) + "/../../drivers/sqlite3/lib"
|
11
11
|
require "jdbc/sqlite3"
|
12
12
|
|
13
13
|
begin
|
14
14
|
require 'hoe'
|
15
|
-
Hoe.
|
15
|
+
Hoe.plugin :gemcutter
|
16
|
+
hoe = Hoe.spec("activerecord-jdbcsqlite3-adapter") do |p|
|
17
|
+
p.version = ArJdbc::Version::VERSION
|
16
18
|
p.rubyforge_name = "jruby-extras"
|
17
19
|
p.url = "http://jruby-extras.rubyforge.org/ActiveRecord-JDBC"
|
18
20
|
p.author = "Nick Sieger, Ola Bini and JRuby contributors"
|
@@ -20,10 +22,18 @@ begin
|
|
20
22
|
p.summary = "SQLite3 JDBC adapter for JRuby on Rails."
|
21
23
|
p.changes = "Updated to SQLite3 version #{Jdbc::SQLite3::VERSION}."
|
22
24
|
p.description = "Install this gem to use SQLite3 with JRuby on Rails."
|
25
|
+
driver = 'jdbc-sqlite3'
|
26
|
+
version = Jdbc::SQLite3::VERSION
|
27
|
+
compat_version = "~> #{version.split(/\./)[0..1].join('.')}.0"
|
28
|
+
puts "#{p.name}: current #{driver} version #{version}, compat #{compat_version}"
|
23
29
|
p.extra_deps += [
|
24
|
-
['activerecord-jdbc-adapter', "= #{
|
25
|
-
[
|
26
|
-
end
|
30
|
+
['activerecord-jdbc-adapter', "= #{ArJdbc::Version::VERSION}"],
|
31
|
+
[driver, compat_version]]
|
32
|
+
end
|
33
|
+
task :gemspec do
|
34
|
+
File.open("#{hoe.name}.gemspec", "w") {|f| f << hoe.spec.to_ruby }
|
35
|
+
end
|
36
|
+
task :package => :gemspec
|
27
37
|
rescue LoadError
|
28
38
|
puts "You really need Hoe installed to be able to package this gem"
|
29
39
|
rescue => e
|
@@ -1,30 +1 @@
|
|
1
|
-
|
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
|
1
|
+
require 'arjdbc/sqlite3'
|
metadata
CHANGED
@@ -1,37 +1,82 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-jdbcsqlite3-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
version: 1.1.0
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
|
-
- Nick Sieger, Ola Bini and JRuby contributors
|
12
|
+
- Nick Sieger, Ola Bini and JRuby contributors
|
8
13
|
autorequire:
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date:
|
17
|
+
date: 2010-12-09 00:00:00 -06:00
|
13
18
|
default_executable:
|
14
19
|
dependencies:
|
15
|
-
- !ruby/object:Gem::Dependency
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: activerecord-jdbc-adapter
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - "="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 1
|
30
|
+
- 1
|
31
|
+
- 0
|
32
|
+
version: 1.1.0
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: jdbc-sqlite3
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ~>
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
segments:
|
44
|
+
- 3
|
45
|
+
- 6
|
46
|
+
- 0
|
47
|
+
version: 3.6.0
|
48
|
+
type: :runtime
|
49
|
+
version_requirements: *id002
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
name: rubyforge
|
52
|
+
prerelease: false
|
53
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
segments:
|
59
|
+
- 2
|
60
|
+
- 0
|
61
|
+
- 4
|
62
|
+
version: 2.0.4
|
63
|
+
type: :development
|
64
|
+
version_requirements: *id003
|
65
|
+
- !ruby/object:Gem::Dependency
|
66
|
+
name: hoe
|
67
|
+
prerelease: false
|
68
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
69
|
+
none: false
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
segments:
|
74
|
+
- 2
|
75
|
+
- 6
|
76
|
+
- 2
|
77
|
+
version: 2.6.2
|
78
|
+
type: :development
|
79
|
+
version_requirements: *id004
|
35
80
|
description: Install this gem to use SQLite3 with JRuby on Rails.
|
36
81
|
email: nick@nicksieger.com, ola.bini@gmail.com
|
37
82
|
executables: []
|
@@ -39,41 +84,45 @@ executables: []
|
|
39
84
|
extensions: []
|
40
85
|
|
41
86
|
extra_rdoc_files:
|
42
|
-
- Manifest.txt
|
43
|
-
- README.txt
|
44
|
-
- LICENSE.txt
|
87
|
+
- Manifest.txt
|
88
|
+
- README.txt
|
89
|
+
- LICENSE.txt
|
45
90
|
files:
|
46
|
-
- Manifest.txt
|
47
|
-
- Rakefile
|
48
|
-
- README.txt
|
49
|
-
- LICENSE.txt
|
50
|
-
- lib/active_record/connection_adapters/jdbcsqlite3_adapter.rb
|
91
|
+
- Manifest.txt
|
92
|
+
- Rakefile
|
93
|
+
- README.txt
|
94
|
+
- LICENSE.txt
|
95
|
+
- lib/active_record/connection_adapters/jdbcsqlite3_adapter.rb
|
51
96
|
has_rdoc: true
|
52
97
|
homepage: http://jruby-extras.rubyforge.org/ActiveRecord-JDBC
|
53
98
|
licenses: []
|
54
99
|
|
55
100
|
post_install_message:
|
56
101
|
rdoc_options:
|
57
|
-
- --main
|
58
|
-
- README.txt
|
102
|
+
- --main
|
103
|
+
- README.txt
|
59
104
|
require_paths:
|
60
|
-
- lib
|
105
|
+
- lib
|
61
106
|
required_ruby_version: !ruby/object:Gem::Requirement
|
107
|
+
none: false
|
62
108
|
requirements:
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
segments:
|
112
|
+
- 0
|
113
|
+
version: "0"
|
67
114
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
115
|
+
none: false
|
68
116
|
requirements:
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
segments:
|
120
|
+
- 0
|
121
|
+
version: "0"
|
73
122
|
requirements: []
|
74
123
|
|
75
124
|
rubyforge_project: jruby-extras
|
76
|
-
rubygems_version: 1.3.
|
125
|
+
rubygems_version: 1.3.7
|
77
126
|
signing_key:
|
78
127
|
specification_version: 3
|
79
128
|
summary: SQLite3 JDBC adapter for JRuby on Rails.
|