stephencelis-app 0.2.0 → 0.2.1
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/History.txt +7 -0
- data/lib/app.rb +3 -2
- data/test/fixtures/app/authenticate/basic/config.yml +1 -2
- metadata +1 -1
data/History.txt
CHANGED
data/lib/app.rb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
#
|
|
3
3
|
# What would your app be without it? Still an app, but without App.
|
|
4
4
|
module App
|
|
5
|
-
VERSION = "0.2.
|
|
5
|
+
VERSION = "0.2.1"
|
|
6
6
|
|
|
7
7
|
@@config = {} # Initialize.
|
|
8
8
|
class << self
|
|
@@ -39,7 +39,8 @@ module App
|
|
|
39
39
|
|
|
40
40
|
begin
|
|
41
41
|
raw = File.read Rails.root.join("config", "#{name.underscore}.yml")
|
|
42
|
-
|
|
42
|
+
all = YAML.load(ERB.new(raw).result)
|
|
43
|
+
@@config = all[Rails.env] || all
|
|
43
44
|
rescue Errno::ENOENT => e
|
|
44
45
|
puts '** App: no file "config/app.yml". Run `script/generate app_config`.'
|
|
45
46
|
end
|