sequel-rails 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +3 -0
- data/Gemfile +1 -1
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/sequel-rails/configuration.rb +8 -5
- data/lib/sequel-rails/railties/database.rake +4 -1
- data/lib/sequel-rails/storage.rb +10 -0
- data/sequel-rails.gemspec +5 -5
- metadata +5 -5
data/CHANGELOG
CHANGED
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -14,7 +14,7 @@ begin
|
|
14
14
|
gem.homepage = 'http://github.com/brasten/sequel-rails'
|
15
15
|
gem.authors = [ 'Brasten Sager (brasten)' ]
|
16
16
|
|
17
|
-
gem.add_dependency 'sequel', '~> 3.
|
17
|
+
gem.add_dependency 'sequel', '~> 3.11'
|
18
18
|
|
19
19
|
gem.add_dependency 'activesupport', '~> 3.0.0.beta3'
|
20
20
|
gem.add_dependency 'actionpack', '~> 3.0.0.beta3'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
@@ -37,13 +37,16 @@ module Rails
|
|
37
37
|
def normalize_repository_config(hash)
|
38
38
|
config = {}
|
39
39
|
hash.each do |key, value|
|
40
|
-
config[key] =
|
41
|
-
if key == 'port'
|
40
|
+
config[key.to_s] =
|
41
|
+
if key.to_s == 'port'
|
42
42
|
value.to_i
|
43
|
-
elsif key == 'adapter' && value == 'sqlite3'
|
43
|
+
elsif key.to_s == 'adapter' && value == 'sqlite3'
|
44
44
|
'sqlite'
|
45
|
-
elsif key == 'database' && (hash['adapter'] == 'sqlite3' ||
|
46
|
-
|
45
|
+
elsif key.to_s == 'database' && (hash['adapter'] == 'sqlite3' ||
|
46
|
+
hash['adapter'] == 'sqlite' ||
|
47
|
+
hash[:adapter] == 'sqlite3' ||
|
48
|
+
hash[:adapter] == 'sqlite')
|
49
|
+
value == ':memory:' ? value : File.expand_path((hash['database'] || hash[:database]), root)
|
47
50
|
else
|
48
51
|
value
|
49
52
|
end
|
data/lib/sequel-rails/storage.rb
CHANGED
data/sequel-rails.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{sequel-rails}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Brasten Sager (brasten)"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-07-19}
|
13
13
|
s.description = %q{Integrate Sequel with Rails 3}
|
14
14
|
s.email = %q{brasten@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -73,18 +73,18 @@ Gem::Specification.new do |s|
|
|
73
73
|
s.specification_version = 3
|
74
74
|
|
75
75
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
76
|
-
s.add_runtime_dependency(%q<sequel>, ["~> 3.
|
76
|
+
s.add_runtime_dependency(%q<sequel>, ["~> 3.11"])
|
77
77
|
s.add_runtime_dependency(%q<activesupport>, ["~> 3.0.0.beta3"])
|
78
78
|
s.add_runtime_dependency(%q<actionpack>, ["~> 3.0.0.beta3"])
|
79
79
|
s.add_runtime_dependency(%q<railties>, ["~> 3.0.0.beta3"])
|
80
80
|
else
|
81
|
-
s.add_dependency(%q<sequel>, ["~> 3.
|
81
|
+
s.add_dependency(%q<sequel>, ["~> 3.11"])
|
82
82
|
s.add_dependency(%q<activesupport>, ["~> 3.0.0.beta3"])
|
83
83
|
s.add_dependency(%q<actionpack>, ["~> 3.0.0.beta3"])
|
84
84
|
s.add_dependency(%q<railties>, ["~> 3.0.0.beta3"])
|
85
85
|
end
|
86
86
|
else
|
87
|
-
s.add_dependency(%q<sequel>, ["~> 3.
|
87
|
+
s.add_dependency(%q<sequel>, ["~> 3.11"])
|
88
88
|
s.add_dependency(%q<activesupport>, ["~> 3.0.0.beta3"])
|
89
89
|
s.add_dependency(%q<actionpack>, ["~> 3.0.0.beta3"])
|
90
90
|
s.add_dependency(%q<railties>, ["~> 3.0.0.beta3"])
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 3
|
9
|
+
version: 0.1.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Brasten Sager (brasten)
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-07-19 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -27,8 +27,8 @@ dependencies:
|
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
segments:
|
29
29
|
- 3
|
30
|
-
-
|
31
|
-
version: "3.
|
30
|
+
- 11
|
31
|
+
version: "3.11"
|
32
32
|
type: :runtime
|
33
33
|
version_requirements: *id001
|
34
34
|
- !ruby/object:Gem::Dependency
|