recipes/devise.rb in rails_apps_composer-1.0.0 vs recipes/devise.rb in rails_apps_composer-1.0.3
- old
+ new
@@ -1,10 +1,10 @@
# Application template recipe for the rails_apps_composer. Check for a newer version here:
-# https://github.com/fortuity/rails_apps_composer/blob/master/recipes/devise.rb
+# https://github.com/RailsApps/rails_apps_composer/blob/master/recipes/devise.rb
if config['devise']
- gem "devise", ">= 1.3.3"
+ gem "devise", ">= 1.3.4"
else
recipes.delete('devise')
end
@@ -34,24 +34,22 @@
say_wizard "Devise recipe running 'after everything'"
if recipes.include? 'rspec'
say_wizard "Copying RSpec files from the rails3-devise-rspec-cucumber examples"
- # copy all the RSpec specs files from the rails3-devise-rspec-cucumber example app
- inside 'spec' do
- get 'https://github.com/fortuity/rails3-devise-rspec-cucumber/raw/master/spec/factories.rb', 'factories.rb'
+ begin
+ # copy all the RSpec specs files from the rails3-devise-rspec-cucumber example app
+ get 'https://github.com/RailsApps/rails3-devise-rspec-cucumber/raw/master/spec/factories.rb', 'spec/factories.rb'
+ remove_file 'spec/controllers/home_controller_spec.rb'
+ remove_file 'spec/controllers/users_controller_spec.rb'
+ get 'https://github.com/RailsApps/rails3-devise-rspec-cucumber/raw/master/spec/controllers/home_controller_spec.rb', 'spec/controllers/home_controller_spec.rb'
+ get 'https://github.com/RailsApps/rails3-devise-rspec-cucumber/raw/master/spec/controllers/users_controller_spec.rb', 'spec/controllers/users_controller_spec.rb'
+ remove_file 'spec/models/user_spec.rb'
+ get 'https://github.com/RailsApps/rails3-devise-rspec-cucumber/raw/master/spec/models/user_spec.rb', 'spec/models/user_spec.rb'
+ rescue OpenURI::HTTPError
+ say_wizard "Unable to obtain RSpec example files from the repo"
end
- remove_file 'spec/controllers/home_controller_spec.rb'
- remove_file 'spec/controllers/users_controller_spec.rb'
- inside 'spec/controllers' do
- get 'https://github.com/fortuity/rails3-devise-rspec-cucumber/raw/master/spec/controllers/home_controller_spec.rb', 'home_controller_spec.rb'
- get 'https://github.com/fortuity/rails3-devise-rspec-cucumber/raw/master/spec/controllers/users_controller_spec.rb', 'users_controller_spec.rb'
- end
- remove_file 'spec/models/user_spec.rb'
- inside 'spec/models' do
- get 'https://github.com/fortuity/rails3-devise-rspec-cucumber/raw/master/spec/models/user_spec.rb', 'user_spec.rb'
- end
remove_file 'spec/views/home/index.html.erb_spec.rb'
remove_file 'spec/views/home/index.html.haml_spec.rb'
remove_file 'spec/views/users/show.html.erb_spec.rb'
remove_file 'spec/views/users/show.html.haml_spec.rb'
remove_file 'spec/helpers/home_helper_spec.rb'
@@ -63,10 +61,10 @@
__END__
name: Devise
description: Utilize Devise for authentication, automatically configured for your selected ORM.
-author: fortuity
+author: RailsApps
category: authentication
exclusive: authentication
config:
\ No newline at end of file