rails-default-database 1.0.2 → 1.0.3
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/lib/rails-default-database.rb +12 -2
- metadata +2 -2
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
Rails::Application::Configuration.class_eval do
|
|
2
2
|
|
|
3
3
|
def database_configuration_with_default
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
config_file = begin
|
|
5
|
+
database_configuration_without_default
|
|
6
|
+
rescue Errno::ENOENT
|
|
7
|
+
{}
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
default_config.merge(config_file)
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
private
|
|
14
|
+
|
|
15
|
+
def default_config
|
|
6
16
|
name = File.basename(root)
|
|
7
17
|
generator = begin
|
|
8
18
|
require 'pg'
|
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: rails-default-database
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 1.0.
|
|
5
|
+
version: 1.0.3
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Tim Pope
|
|
@@ -10,7 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date: 2011-
|
|
13
|
+
date: 2011-04-21 00:00:00 -04:00
|
|
14
14
|
default_executable:
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|