Permalink
Browse files

Fixes for v0.4.1: Fixed NameErro for non-rails apps. Fixed install ge…

…nerator. Fixed application file shorthand.
  • Loading branch information...
1 parent f78a901 commit 1154da4a986f856831f3019160d0b99177e1da4f @rahmal committed Apr 20, 2012
Showing with 8 additions and 6 deletions.
  1. +3 −2 ChangeLog
  2. +4 −3 lib/generators/rconfig/install_generator.rb
  3. +1 −1 lib/rconfig/core_methods.rb
View
@@ -1,7 +1,8 @@
0.4.1
=====
-* Fixed error occuring in non-Rails apps - NameError HashWithIndifferentAccess
-- From vandries/rconfig (github)
+* Fixed error occuring in non-Rails apps (NameError/HashWithIndifferentAccess missing) - From vandries/rconfig (github)
+* Fixed install generator
+* Fixed application file shorthand (i.e. RConfig[key] == RConfig.application.key)
0.4.0
=====
@@ -1,11 +1,12 @@
module RConfig
module Generators
class InstallGenerator < Rails::Generators::Base
- desc "Create RConfig settings initializer file"
- source_root File.expand_path("../templates", __FILE__)
+ namespace 'rconfig:install'
+ source_root File.expand_path('../templates', __FILE__)
+ desc 'Create RConfig settings initializer file'
def copy_initializer
- template "rconfig.rb", "config/initializers/rconfig.rb"
+ template 'rconfig.rb', 'config/initializers/rconfig.rb'
end
end
end
@@ -222,7 +222,7 @@ def reload_on_change(name)
# the supported formats (yml, xml, conf, etc.)
#
def [](key, file=:application)
- self.config_for(file)[key] || ENV[key.to_s.upcase]
+ with_file(file, key) || ENV[key.to_s.upcase]
end
##

0 comments on commit 1154da4

Please sign in to comment.