Permalink
Browse files

Updates env_yaml recipe to be...correct. Closes #11

  • Loading branch information...
Michael Bleigh
Michael Bleigh committed Apr 22, 2011
1 parent f0b1df5 commit 76551adbd8d7a1427c7f9e61bdd4b740eabbbf62
Showing with 3 additions and 3 deletions.
  1. +2 −1 rails_wizard.gemspec
  2. +1 −2 recipes/env_yaml.rb
View
@@ -15,10 +15,11 @@ Gem::Specification.new do |s|
s.rubyforge_project = "rails_wizard"
s.add_dependency "i18n"
- s.add_dependency "activesupport", "~> 3.0.0"
+ s.add_dependency "activesupport", ">= 3.0.0"
s.add_dependency "thor"
s.add_development_dependency "rspec", "~> 2.5.0"
s.add_development_dependency "mg"
+ s.add_development_dependency "rails", ">= 3.0.0"
s.files = Dir["lib/**/*.rb", "recipes/*.rb", "README.markdown", "version.rb", "templates/*"]
s.test_files = Dir["spec/**/*"]
View
@@ -12,7 +12,6 @@
begin
env_yaml = YAML.load_file(File.dirname(__FILE__) + '/../config/env.yml')
if env_hash = env_yaml[ENV['RACK_ENV'] || ENV['RAILS_ENV'] || 'development']
- puts env_hash.inspect
env_hash.each_pair do |k,v|
ENV[k] = v.to_s
end
@@ -23,7 +22,7 @@
RUBY
create_file "config/env.yml", <<-YAML
-defaults:
+defaults: &defaults
ENV_YAML: true
development:

0 comments on commit 76551ad

Please sign in to comment.