markbates-configatron 2.4.0.20090826115559 → 2.4.1.20090826153428
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/configatron/rails.rb +2 -2
- metadata +3 -2
data/lib/configatron/rails.rb
CHANGED
@@ -16,10 +16,10 @@ class Configatron
|
|
16
16
|
# <RAILS_ROOT>/config/configatron/<RAILS_ENV>/defaults.rb
|
17
17
|
# <RAILS_ROOT>/config/configatron/<RAILS_ENV>/bar.rb
|
18
18
|
# <RAILS_ROOT>/config/configatron/<RAILS_ENV>/foo.rb
|
19
|
-
def self.init
|
19
|
+
def self.init(root = RAILS_ROOT)
|
20
20
|
config_files = []
|
21
21
|
|
22
|
-
base_dir = File.expand_path(File.join(
|
22
|
+
base_dir = File.expand_path(File.join(root, 'config', 'configatron'))
|
23
23
|
config_files << File.join(base_dir, 'defaults.rb')
|
24
24
|
config_files << File.join(base_dir, "#{RAILS_ENV}.rb")
|
25
25
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: markbates-configatron
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.1.20090826153428
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- markbates
|
@@ -52,6 +52,7 @@ files:
|
|
52
52
|
- generators/templates/initializers/configatron.rb
|
53
53
|
has_rdoc: false
|
54
54
|
homepage: http://www.metabates.com
|
55
|
+
licenses:
|
55
56
|
post_install_message:
|
56
57
|
rdoc_options: []
|
57
58
|
|
@@ -72,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
73
|
requirements: []
|
73
74
|
|
74
75
|
rubyforge_project: magrathea
|
75
|
-
rubygems_version: 1.
|
76
|
+
rubygems_version: 1.3.5
|
76
77
|
signing_key:
|
77
78
|
specification_version: 3
|
78
79
|
summary: A powerful Ruby configuration system.
|