rails_apps_composer 2.6.13 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rails_wizard/diagnostics.rb +12 -25
- data/recipes/admin.rb +3 -6
- data/recipes/core.rb +4 -5
- data/recipes/deployment.rb +2 -1
- data/recipes/devise.rb +32 -0
- data/recipes/email.rb +22 -108
- data/recipes/email_dev.rb +4 -7
- data/recipes/example.rb +5 -5
- data/recipes/extras.rb +9 -16
- data/recipes/frontend.rb +4 -4
- data/recipes/gems.rb +29 -100
- data/recipes/git.rb +2 -1
- data/recipes/init.rb +29 -100
- data/recipes/learn_rails.rb +3 -3
- data/recipes/omniauth.rb +32 -0
- data/recipes/pages.rb +33 -0
- data/recipes/rails_bootstrap.rb +1 -7
- data/recipes/rails_devise.rb +1 -4
- data/recipes/rails_devise_pundit.rb +1 -4
- data/recipes/rails_foundation.rb +1 -7
- data/recipes/rails_omniauth.rb +1 -19
- data/recipes/rails_signup_download.rb +3 -4
- data/recipes/railsapps.rb +15 -213
- data/recipes/readme.rb +5 -8
- data/recipes/roles.rb +36 -0
- data/recipes/setup.rb +20 -73
- data/recipes/{tests4.rb → tests.rb} +6 -6
- data/templates/helpers.erb +3 -11
- data/templates/layout.erb +6 -6
- data/version.rb +1 -1
- metadata +7 -10
- data/recipes/controllers.rb +0 -86
- data/recipes/models.rb +0 -112
- data/recipes/prelaunch.rb +0 -118
- data/recipes/routes.rb +0 -53
- data/recipes/saas.rb +0 -216
- data/recipes/testing.rb +0 -276
- data/recipes/views.rb +0 -65
data/recipes/views.rb
DELETED
@@ -1,65 +0,0 @@
|
|
1
|
-
# Application template recipe for the rails_apps_composer. Change the recipe here:
|
2
|
-
# https://github.com/RailsApps/rails_apps_composer/blob/master/recipes/views.rb
|
3
|
-
|
4
|
-
after_bundler do
|
5
|
-
say_wizard "recipe running after 'bundle install'"
|
6
|
-
### DEVISE ###
|
7
|
-
if (prefer :authentication, 'devise') and (not prefer :apps4, 'rails-devise')
|
8
|
-
copy_from_repo 'app/views/devise/shared/_links.html.erb'
|
9
|
-
unless prefer :form_builder, 'simple_form'
|
10
|
-
copy_from_repo 'app/views/devise/registrations/edit.html.erb'
|
11
|
-
copy_from_repo 'app/views/devise/registrations/new.html.erb'
|
12
|
-
else
|
13
|
-
copy_from_repo 'app/views/devise/registrations/edit-simple_form.html.erb', :prefs => 'simple_form'
|
14
|
-
copy_from_repo 'app/views/devise/registrations/new-simple_form.html.erb', :prefs => 'simple_form'
|
15
|
-
copy_from_repo 'app/views/devise/sessions/new-simple_form.html.erb', :prefs => 'simple_form'
|
16
|
-
copy_from_repo 'app/helpers/application_helper-simple_form.rb', :prefs => 'simple_form'
|
17
|
-
end
|
18
|
-
end
|
19
|
-
### HOME ###
|
20
|
-
copy_from_repo 'app/views/home/index.html.erb' if prefer :starter_app, 'users_app'
|
21
|
-
copy_from_repo 'app/views/home/index.html.erb' if prefer :starter_app, 'admin_app'
|
22
|
-
copy_from_repo 'app/views/home/index-subdomains_app.html.erb', :prefs => 'subdomains_app'
|
23
|
-
### USERS ###
|
24
|
-
if ['users_app','admin_app','subdomains_app'].include? prefs[:starter_app]
|
25
|
-
## INDEX
|
26
|
-
if prefer :starter_app, 'admin_app'
|
27
|
-
copy_from_repo 'app/views/users/index-admin_app.html.erb', :prefs => 'admin_app'
|
28
|
-
unless prefer :form_builder, 'simple_form'
|
29
|
-
copy_from_repo 'app/views/users/_user.html.erb'
|
30
|
-
else
|
31
|
-
copy_from_repo 'app/views/users/_user-simple_form.html.erb', :prefs => 'simple_form'
|
32
|
-
end
|
33
|
-
else
|
34
|
-
copy_from_repo 'app/views/users/index.html.erb'
|
35
|
-
end
|
36
|
-
## SHOW
|
37
|
-
copy_from_repo 'app/views/users/show.html.erb'
|
38
|
-
copy_from_repo 'app/views/users/show-subdomains_app.html.erb', :prefs => 'subdomains_app'
|
39
|
-
## EDIT
|
40
|
-
if prefer :authentication, 'omniauth'
|
41
|
-
copy_from_repo 'app/views/users/edit.html.erb', :repo => 'https://raw.github.com/RailsApps/rails-omniauth/master/'
|
42
|
-
end
|
43
|
-
end
|
44
|
-
if (prefer :authorization, 'pundit') and (prefer :starter_app, 'admin_app')
|
45
|
-
repo = 'https://raw.github.com/RailsApps/rails-devise-pundit/master/'
|
46
|
-
copy_from_repo 'app/views/users/_user.html.erb', :repo => repo
|
47
|
-
copy_from_repo 'app/views/users/index.html.erb', :repo => repo
|
48
|
-
copy_from_repo 'app/views/users/show.html.erb', :repo => repo
|
49
|
-
end
|
50
|
-
### PROFILES ###
|
51
|
-
copy_from_repo 'app/views/profiles/show-subdomains_app.html.erb', :prefs => 'subdomains_app'
|
52
|
-
### GIT ###
|
53
|
-
git :add => '-A' if prefer :git, true
|
54
|
-
git :commit => '-qm "rails_apps_composer: views"' if prefer :git, true
|
55
|
-
end # after_bundler
|
56
|
-
|
57
|
-
__END__
|
58
|
-
|
59
|
-
name: views
|
60
|
-
description: "Add views needed for starter apps."
|
61
|
-
author: RailsApps
|
62
|
-
|
63
|
-
requires: [setup, gems, models, controllers]
|
64
|
-
run_after: [setup, gems, models, controllers]
|
65
|
-
category: mvc
|