recipes/devise.rb in rails_apps_composer-1.2.1 vs recipes/devise.rb in rails_apps_composer-1.3.1

- old
+ new

@@ -4,16 +4,16 @@ case config['devise'] when 'no' recipes.delete('devise') say_wizard "Devise recipe skipped." when 'standard' - gem 'devise', '>= 2.0.4' + gem 'devise', '>= 2.1.0.rc' when 'confirmable' - gem 'devise', '>= 2.0.4' + gem 'devise', '>= 2.1.0.rc' recipes << 'devise-confirmable' when 'invitable' - gem 'devise', '>= 2.0.4' + gem 'devise', '>= 2.1.0.rc' gem 'devise_invitable', '>= 1.0.0' recipes << 'devise-confirmable' recipes << 'devise-invitable' else recipes.delete('devise') @@ -55,11 +55,12 @@ if recipes.include? 'rspec' say_wizard "Copying RSpec files from the rails3-devise-rspec-cucumber examples" begin # copy all the RSpec specs files from the rails3-devise-rspec-cucumber example app - get 'https://raw.github.com/RailsApps/rails3-devise-rspec-cucumber/master/spec/factories.rb', 'spec/factories.rb' - gsub_file 'spec/factories.rb', /# confirmed_at/, "confirmed_at" if recipes.include? 'devise-confirmable' + remove_file 'spec/factories/users.rb' + get 'https://raw.github.com/RailsApps/rails3-devise-rspec-cucumber/master/spec/factories/users.rb', 'spec/factories/users.rb' + gsub_file 'spec/factories/users.rb', /# confirmed_at/, "confirmed_at" if recipes.include? 'devise-confirmable' remove_file 'spec/controllers/home_controller_spec.rb' remove_file 'spec/controllers/users_controller_spec.rb' get 'https://raw.github.com/RailsApps/rails3-devise-rspec-cucumber/master/spec/controllers/home_controller_spec.rb', 'spec/controllers/home_controller_spec.rb' get 'https://raw.github.com/RailsApps/rails3-devise-rspec-cucumber/master/spec/controllers/users_controller_spec.rb', 'spec/controllers/users_controller_spec.rb' remove_file 'spec/models/user_spec.rb'