sequel-rails 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/sequel-rails/configuration.rb +4 -0
- data/lib/sequel-rails/railties/log_subscriber.rb +1 -1
- data/lib/sequel-rails/setup.rb +1 -1
- data/sequel-rails.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
@@ -16,6 +16,10 @@ module Rails
|
|
16
16
|
attr_accessor :logger
|
17
17
|
attr_accessor :migration_dir
|
18
18
|
|
19
|
+
def environment_for(name)
|
20
|
+
environments[name.to_s] || environments[name.to_sym]
|
21
|
+
end
|
22
|
+
|
19
23
|
def environments
|
20
24
|
@environments ||= @raw.inject({}) do |normalized, environment|
|
21
25
|
name, config = environment.first, environment.last
|
data/lib/sequel-rails/setup.rb
CHANGED
@@ -11,7 +11,7 @@ module Rails
|
|
11
11
|
def self.setup(environment)
|
12
12
|
puts "[sequel] Setting up the #{environment.inspect} environment:"
|
13
13
|
|
14
|
-
::Sequel.connect({:logger => configuration.logger}.merge(::Rails::Sequel.configuration.
|
14
|
+
::Sequel.connect({:logger => configuration.logger}.merge(::Rails::Sequel.configuration.environment_for(environment.to_s)))
|
15
15
|
end
|
16
16
|
|
17
17
|
end
|
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.1"
|
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-05-
|
12
|
+
s.date = %q{2010-05-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 = [
|
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
|
+
- 1
|
9
|
+
version: 0.1.1
|
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-05-
|
17
|
+
date: 2010-05-19 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|