orats 0.9.7 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (165) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -2
  3. data/.rubocop.yml +24 -0
  4. data/.travis.yml +9 -0
  5. data/README.md +103 -194
  6. data/bin/orats +2 -5
  7. data/lib/orats/cli.rb +6 -67
  8. data/lib/orats/cli_help/destroy +11 -0
  9. data/lib/orats/cli_help/new +2 -26
  10. data/lib/orats/commands/new.rb +127 -0
  11. data/lib/orats/common.rb +0 -29
  12. data/lib/orats/templates/base/.dockerignore +5 -0
  13. data/lib/orats/templates/base/.gitignore +22 -0
  14. data/lib/orats/templates/base/.rubocop.yml +29 -0
  15. data/lib/orats/templates/base/Dockerfile +102 -0
  16. data/lib/orats/templates/base/Gemfile +69 -0
  17. data/lib/orats/templates/base/Gemfile.lock +205 -0
  18. data/lib/orats/templates/base/README.md +24 -0
  19. data/lib/orats/templates/base/Rakefile +7 -0
  20. data/lib/orats/templates/base/app/assets/config/manifest.js +3 -0
  21. data/lib/orats/templates/base/app/assets/images/.keep +0 -0
  22. data/lib/orats/templates/base/app/assets/javascripts/application.js +33 -0
  23. data/lib/orats/templates/base/app/assets/javascripts/cable.js +14 -0
  24. data/lib/orats/templates/base/app/assets/javascripts/channels/.keep +0 -0
  25. data/lib/orats/templates/base/app/assets/stylesheets/application.scss +89 -0
  26. data/lib/orats/templates/base/app/channels/application_cable/channel.rb +4 -0
  27. data/lib/orats/templates/base/app/channels/application_cable/connection.rb +4 -0
  28. data/lib/orats/templates/base/app/controllers/application_controller.rb +3 -0
  29. data/lib/orats/templates/base/app/controllers/concerns/.keep +0 -0
  30. data/lib/orats/templates/base/app/controllers/pages_controller.rb +4 -0
  31. data/lib/orats/templates/base/app/helpers/application_helper.rb +31 -0
  32. data/lib/orats/templates/base/app/helpers/pages_helper.rb +2 -0
  33. data/lib/orats/templates/base/app/jobs/application_job.rb +2 -0
  34. data/lib/orats/templates/base/app/mailers/application_mailer.rb +4 -0
  35. data/lib/orats/templates/base/app/models/application_record.rb +3 -0
  36. data/lib/orats/templates/base/app/models/concerns/.keep +0 -0
  37. data/lib/orats/templates/{includes/new/rails → base}/app/views/layouts/_flash.html.erb +1 -1
  38. data/lib/orats/templates/base/app/views/layouts/_footer.html.erb +3 -0
  39. data/lib/orats/templates/{includes/new/rails/app/views/layouts/_google_analytics_snippet.html.erb → base/app/views/layouts/_google_analytics.html.erb} +5 -9
  40. data/lib/orats/templates/{includes/new/rails → base}/app/views/layouts/_navigation.html.erb +5 -4
  41. data/lib/orats/templates/base/app/views/layouts/application.html.erb +48 -0
  42. data/lib/orats/templates/base/app/views/layouts/mailer.html.erb +13 -0
  43. data/lib/orats/templates/base/app/views/layouts/mailer.text.erb +1 -0
  44. data/lib/orats/templates/base/app/views/pages/home.html.erb +46 -0
  45. data/lib/orats/templates/base/bin/bundle +3 -0
  46. data/lib/orats/templates/base/bin/rails +4 -0
  47. data/lib/orats/templates/base/bin/rake +4 -0
  48. data/lib/orats/templates/base/bin/setup +34 -0
  49. data/lib/orats/templates/base/bin/update +29 -0
  50. data/lib/orats/templates/base/cable/config.ru +4 -0
  51. data/lib/orats/templates/base/config.ru +5 -0
  52. data/lib/orats/templates/base/config/application.rb +71 -0
  53. data/lib/orats/templates/base/config/boot.rb +3 -0
  54. data/lib/orats/templates/base/config/cable.yml +14 -0
  55. data/lib/orats/templates/base/config/database.yml +13 -0
  56. data/lib/orats/templates/base/config/environment.rb +5 -0
  57. data/lib/orats/templates/base/config/environments/development.rb +49 -0
  58. data/lib/orats/templates/base/config/environments/production.rb +56 -0
  59. data/lib/orats/templates/base/config/environments/staging.rb +6 -0
  60. data/lib/orats/templates/base/config/environments/test.rb +40 -0
  61. data/lib/orats/templates/base/config/initializers/application_controller_renderer.rb +6 -0
  62. data/lib/orats/templates/base/config/initializers/assets.rb +12 -0
  63. data/lib/orats/templates/base/config/initializers/backtrace_silencers.rb +9 -0
  64. data/lib/orats/templates/base/config/initializers/cookies_serializer.rb +5 -0
  65. data/lib/orats/templates/base/config/initializers/filter_parameter_logging.rb +4 -0
  66. data/lib/orats/templates/base/config/initializers/inflections.rb +16 -0
  67. data/lib/orats/templates/base/config/initializers/mime_types.rb +4 -0
  68. data/lib/orats/templates/base/config/initializers/new_framework_defaults.rb +27 -0
  69. data/lib/orats/templates/base/config/initializers/session_store.rb +4 -0
  70. data/lib/orats/templates/{includes/new/rails → base}/config/initializers/sidekiq.rb +1 -4
  71. data/lib/orats/templates/base/config/initializers/timeout.rb +1 -0
  72. data/lib/orats/templates/base/config/initializers/wrap_parameters.rb +15 -0
  73. data/lib/orats/templates/base/config/locales/en.yml +23 -0
  74. data/lib/orats/templates/base/config/puma.rb +60 -0
  75. data/lib/orats/templates/base/config/routes.rb +3 -0
  76. data/lib/orats/templates/{includes/new/rails → base}/config/secrets.yml +3 -2
  77. data/lib/orats/templates/base/config/sidekiq.yml.erb +5 -0
  78. data/lib/orats/templates/base/config/spring.rb +6 -0
  79. data/lib/orats/templates/base/db/seeds.rb +9 -0
  80. data/lib/orats/templates/base/docker-compose.yml +59 -0
  81. data/lib/orats/templates/base/lib/assets/.keep +0 -0
  82. data/lib/orats/templates/base/lib/tasks/.keep +0 -0
  83. data/lib/orats/templates/base/log/.keep +0 -0
  84. data/lib/orats/templates/base/public/404.html +67 -0
  85. data/lib/orats/templates/base/public/422.html +67 -0
  86. data/lib/orats/templates/base/public/500.html +66 -0
  87. data/lib/orats/templates/base/public/apple-touch-icon-precomposed.png +0 -0
  88. data/lib/orats/templates/base/public/apple-touch-icon.png +0 -0
  89. data/lib/orats/templates/base/public/favicon.ico +0 -0
  90. data/lib/orats/templates/base/public/robots.txt +5 -0
  91. data/lib/orats/templates/base/test/controllers/.keep +0 -0
  92. data/lib/orats/templates/base/test/controllers/pages_controller_test.rb +9 -0
  93. data/lib/orats/templates/base/test/fixtures/.keep +0 -0
  94. data/lib/orats/templates/base/test/fixtures/files/.keep +0 -0
  95. data/lib/orats/templates/base/test/helpers/.keep +0 -0
  96. data/lib/orats/templates/base/test/integration/.keep +0 -0
  97. data/lib/orats/templates/base/test/mailers/.keep +0 -0
  98. data/lib/orats/templates/base/test/models/.keep +0 -0
  99. data/lib/orats/templates/base/test/test_helper.rb +11 -0
  100. data/lib/orats/templates/base/tmp/.keep +0 -0
  101. data/lib/orats/templates/base/vendor/assets/javascripts/.keep +0 -0
  102. data/lib/orats/templates/base/vendor/assets/stylesheets/.keep +0 -0
  103. data/lib/orats/ui.rb +5 -5
  104. data/lib/orats/util.rb +14 -0
  105. data/lib/orats/version.rb +1 -1
  106. data/orats.gemspec +3 -2
  107. data/test/integration/cli_test.rb +43 -65
  108. data/test/test_helper.rb +9 -58
  109. metadata +114 -66
  110. data/lib/orats/argv_adjust.rb +0 -61
  111. data/lib/orats/cli_help/nuke +0 -19
  112. data/lib/orats/commands/new/exec.rb +0 -59
  113. data/lib/orats/commands/new/rails.rb +0 -215
  114. data/lib/orats/commands/new/server.rb +0 -67
  115. data/lib/orats/commands/nuke.rb +0 -108
  116. data/lib/orats/postgres.rb +0 -92
  117. data/lib/orats/process.rb +0 -35
  118. data/lib/orats/redis.rb +0 -25
  119. data/lib/orats/shell.rb +0 -12
  120. data/lib/orats/templates/auth.rb +0 -394
  121. data/lib/orats/templates/base.rb +0 -546
  122. data/lib/orats/templates/includes/common/.gitignore +0 -6
  123. data/lib/orats/templates/includes/common/LICENSE +0 -22
  124. data/lib/orats/templates/includes/new/rails/.env +0 -59
  125. data/lib/orats/templates/includes/new/rails/Gemfile +0 -48
  126. data/lib/orats/templates/includes/new/rails/Procfile +0 -3
  127. data/lib/orats/templates/includes/new/rails/README.md +0 -3
  128. data/lib/orats/templates/includes/new/rails/app/assets/favicon/favicon_base.png +0 -0
  129. data/lib/orats/templates/includes/new/rails/app/helpers/application_helper.rb +0 -53
  130. data/lib/orats/templates/includes/new/rails/app/models/account.rb +0 -40
  131. data/lib/orats/templates/includes/new/rails/app/views/devise/confirmations/new.html.erb +0 -26
  132. data/lib/orats/templates/includes/new/rails/app/views/devise/mailer/confirmation_instructions.html.erb +0 -5
  133. data/lib/orats/templates/includes/new/rails/app/views/devise/mailer/reset_password_instructions.html.erb +0 -10
  134. data/lib/orats/templates/includes/new/rails/app/views/devise/mailer/unlock_instructions.html.erb +0 -8
  135. data/lib/orats/templates/includes/new/rails/app/views/devise/passwords/edit.html.erb +0 -28
  136. data/lib/orats/templates/includes/new/rails/app/views/devise/passwords/new.html.erb +0 -26
  137. data/lib/orats/templates/includes/new/rails/app/views/devise/registrations/edit.html.erb +0 -51
  138. data/lib/orats/templates/includes/new/rails/app/views/devise/registrations/new.html.erb +0 -31
  139. data/lib/orats/templates/includes/new/rails/app/views/devise/sessions/new.html.erb +0 -39
  140. data/lib/orats/templates/includes/new/rails/app/views/devise/shared/_links.html.erb +0 -38
  141. data/lib/orats/templates/includes/new/rails/app/views/devise/unlocks/new.html.erb +0 -26
  142. data/lib/orats/templates/includes/new/rails/app/views/layouts/_disqus_comments_snippet.html.erb +0 -19
  143. data/lib/orats/templates/includes/new/rails/app/views/layouts/_disqus_count_snippet.html.erb +0 -12
  144. data/lib/orats/templates/includes/new/rails/app/views/layouts/_footer.html.erb +0 -2
  145. data/lib/orats/templates/includes/new/rails/app/views/layouts/_navigation_auth.html.erb +0 -15
  146. data/lib/orats/templates/includes/new/rails/app/views/layouts/_navigation_links.html.erb +0 -3
  147. data/lib/orats/templates/includes/new/rails/app/views/layouts/application.html.erb +0 -47
  148. data/lib/orats/templates/includes/new/rails/app/views/pages/home.html.erb +0 -58
  149. data/lib/orats/templates/includes/new/rails/config/database.yml +0 -6
  150. data/lib/orats/templates/includes/new/rails/config/environments/staging.rb +0 -5
  151. data/lib/orats/templates/includes/new/rails/config/initializers/devise_async.rb +0 -1
  152. data/lib/orats/templates/includes/new/rails/config/initializers/mini_profiler.rb +0 -4
  153. data/lib/orats/templates/includes/new/rails/config/puma.rb +0 -39
  154. data/lib/orats/templates/includes/new/rails/config/schedule.rb +0 -3
  155. data/lib/orats/templates/includes/new/rails/config/sidekiq.yml +0 -7
  156. data/lib/orats/templates/includes/new/rails/config/sitemap.rb +0 -20
  157. data/lib/orats/templates/includes/new/rails/config/unicorn.rb +0 -84
  158. data/lib/orats/templates/includes/new/rails/lib/tasks/orats/favicon.rake +0 -48
  159. data/lib/orats/templates/includes/new/rails/public/404.html +0 -13
  160. data/lib/orats/templates/includes/new/rails/public/422.html +0 -13
  161. data/lib/orats/templates/includes/new/rails/public/500.html +0 -13
  162. data/lib/orats/templates/includes/new/rails/public/502.html +0 -13
  163. data/lib/orats/templates/includes/new/rails/public/deploy.html +0 -14
  164. data/lib/orats/templates/includes/new/rails/test/fixtures/accounts.yml +0 -27
  165. data/lib/orats/templates/includes/new/rails/test/models/account_test.rb +0 -46
@@ -1,6 +0,0 @@
1
- .DS_Store
2
- */**.DS_Store
3
- ._*
4
- .*.sw*
5
- *~
6
- .idea/
@@ -1,22 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) Time.now.year author_name author_email
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- 'Software'), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,59 +0,0 @@
1
- RAILS_ENV: 'development'
2
-
3
- TIME_ZONE: 'Eastern Time (US & Canada)'
4
- DEFAULT_LOCALE: 'en'
5
-
6
- GOOGLE_ANALYTICS_UA: ''
7
- DISQUS_SHORT_NAME: ''
8
- S3_ACCESS_KEY_ID: ''
9
- S3_SECRET_ACCESS_KEY: ''
10
- S3_REGION: ''
11
-
12
- TOKEN_RAILS_SECRET: 'generate_token'
13
-
14
- SMTP_ADDRESS: 'smtp.gmail.com'
15
- SMTP_PORT: 587 # 465 if you use ssl
16
- SMTP_DOMAIN: 'gmail.com'
17
- SMTP_USERNAME: 'app_name@gmail.com'
18
- SMTP_PASSWORD: 'thebestpassword'
19
- SMTP_AUTH: 'plain'
20
- SMTP_ENCRYPTION: 'starttls'
21
-
22
- ACTION_MAILER_HOST: 'localhost:3000'
23
- ACTION_MAILER_DEFAULT_FROM: 'info@app_name.com'
24
- ACTION_MAILER_DEFAULT_TO: 'me@app_name.com'
25
-
26
- # your database name will automatically be adjusted for its enviroments:
27
- # development: app_name_development
28
- # test: app_name_test
29
- DATABASE_URL: 'postgresql://db_user@db_location:db_port/app_name?encoding=utf8&pool=5&timeout=5000'
30
- CACHE_URL: 'redis://cache_location:cache_port/0'
31
- BACKGROUND_URL: 'redis://cache_location:cache_port/0'
32
-
33
- # listen on a tcp port or unix socket
34
- LISTEN_ON: '0.0.0.0:3000'
35
-
36
- # try setting these to 0/16 in production and tweak from there
37
- # in development mode you should use 0/1 ( multi-threaded + debugging = :< )
38
- # these only apply if you're using puma
39
- THREADS_MIN: 0
40
- THREADS_MAX: 1
41
-
42
- # this should equal the number of CPU cores in production
43
- # it is reasonable to keep it at 1 for development
44
- WORKERS: 1
45
-
46
- # this should equal the database pool size
47
- BACKGROUND_THREADS: 5
48
-
49
- # the name of the service
50
- # this gets combined with RUN_STATE_PATH to form a full path
51
- SERVICE: 'app_name'
52
-
53
- # the log file that both the app and sidekiq write to
54
- # in production you might consider /var/log/app_name/app_name.log
55
- LOG_FILE: 'log/app_name.log'
56
-
57
- # the path that will contain pids and sockets
58
- # in production you will likely want to set this to '/var/run/app_name'
59
- RUN_STATE_PATH: 'tmp'
@@ -1,48 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'rails', '~> 4.2.0'
4
- gem 'turbolinks', '~> 2.5.3'
5
- gem 'jquery-rails', '~> 4.0.1'
6
- gem 'jquery-turbolinks', '~> 2.1.0'
7
- #gem 'jbuilder'
8
-
9
- gem 'font-awesome-rails', '~> 4.2.0'
10
- gem 'bootstrap-sass', '~> 3.3.1'
11
-
12
- gem 'pg', '~> 0.17.1'
13
- gem 'redis-rails', '~> 4.0.0'
14
-
15
- gem 'unicorn', '~> 4.8.3'
16
- #gem 'puma', '~> 2.10.2'
17
- gem 'sidekiq', '~> 3.3.0'
18
- gem 'sinatra', '>= 1.4.5', require: false
19
-
20
- gem 'whenever', '~> 0.9.4', require: false
21
-
22
- gem 'sitemap_generator', '~> 5.0.5'
23
- gem 'favicon_maker', '~> 1.3'
24
- gem 'kaminari', '~> 0.16.1'
25
-
26
- group :development do
27
- gem 'foreman', require: false
28
- gem 'spring', '~> 1.2.0'
29
- gem 'web-console', '~> 2.0.0'
30
- gem 'rack-mini-profiler', '~> 0.9.1'
31
- gem 'bullet', '~> 4.14.0'
32
- gem 'meta_request', '~> 0.3.0'
33
- gem 'railroady', '~> 1.1.1', require: false
34
- end
35
-
36
- group :development, :test do
37
- gem 'dotenv-rails', '~> 1.0.2'
38
- end
39
-
40
- group :assets do
41
- gem 'sass-rails', '~> 5.0.0'
42
- gem 'coffee-rails', '~> 4.1.0'
43
- gem 'uglifier', '~> 2.6.0'
44
- end
45
-
46
- group :doc do
47
- gem 'sdoc', '~> 0.4.0', require: false
48
- end
@@ -1,3 +0,0 @@
1
- web: unicorn -c config/unicorn.rb | grep -v --line-buffered ' 304 -'
2
- worker: sidekiq -C config/sidekiq.yml
3
- log: tail -f $LOG_FILE | grep -xv --line-buffered '^[[:space:]]*' | grep -v --line-buffered '/assets/' | grep -v --line-buffered 'HTTP/1.1'
@@ -1,3 +0,0 @@
1
- ## Project information
2
-
3
- This project was generated with [orats](https://github.com/nickjj/orats) vVERSION.
@@ -1,53 +0,0 @@
1
- module ApplicationHelper
2
- def title(page_title)
3
- content_for(:title) { page_title }
4
- end
5
-
6
- def meta_description(page_meta_description)
7
- content_for(:meta_description) { page_meta_description }
8
- end
9
-
10
- def heading(page_heading)
11
- content_for(:heading) { page_heading }
12
- end
13
-
14
- def link_to_all_favicons
15
- '<link href="speeddial-160x160.png" rel="icon" type="image/png" />
16
- <link href="apple-touch-icon-228x228-precomposed.png" rel="apple-touch-icon-precomposed" sizes="228x228" type="image/png" />
17
- <link href="apple-touch-icon-152x152-precomposed.png" rel="apple-touch-icon-precomposed" sizes="152x152" type="image/png" />
18
- <link href="apple-touch-icon-144x144-precomposed.png" rel="apple-touch-icon-precomposed" sizes="144x144" type="image/png" />
19
- <link href="apple-touch-icon-120x120-precomposed.png" rel="apple-touch-icon-precomposed" sizes="120x120" type="image/png" />
20
- <link href="apple-touch-icon-114x114-precomposed.png" rel="apple-touch-icon-precomposed" sizes="114x114" type="image/png" />
21
- <link href="apple-touch-icon-76x76-precomposed.png" rel="apple-touch-icon-precomposed" sizes="76x76" type="image/png" />
22
- <link href="apple-touch-icon-72x72-precomposed.png" rel="apple-touch-icon-precomposed" sizes="72x72" type="image/png" />
23
- <link href="apple-touch-icon-60x60-precomposed.png" rel="apple-touch-icon-precomposed" sizes="60x60" type="image/png" />
24
- <link href="apple-touch-icon-57x57-precomposed.png" rel="apple-touch-icon-precomposed" sizes="57x57" type="image/png" />
25
- <link href="favicon-196x196.png" rel="icon" sizes="196x196" type="image/png" />
26
- <link href="favicon-160x160.png" rel="icon" sizes="160x160" type="image/png" />
27
- <link href="favicon-96x96.png" rel="icon" sizes="96x96" type="image/png" />
28
- <link href="favicon-64x64.png" rel="icon" sizes="64x64" type="image/png" />
29
- <link href="favicon-32x32.png" rel="icon" sizes="32x32" type="image/png" />
30
- <link href="favicon-24x24.png" rel="icon" sizes="24x24" type="image/png" />
31
- <link href="favicon-16x16.png" rel="icon" sizes="16x16" type="image/png" />
32
- <link href="favicon.ico" rel="icon" type="image/x-icon" />
33
- <link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />'.html_safe
34
- end
35
-
36
- def humanize_boolean(input)
37
- input ||= ''
38
- case input.to_s.downcase
39
- when 't', 'true'
40
- 'Yes'
41
- else
42
- 'No'
43
- end
44
- end
45
-
46
- def css_for_boolean(input)
47
- if input
48
- 'success'
49
- else
50
- 'danger'
51
- end
52
- end
53
- end
@@ -1,40 +0,0 @@
1
- class Account < ActiveRecord::Base
2
- ROLES = %w[admin guest]
3
-
4
- devise :database_authenticatable, :registerable, :recoverable, :rememberable,
5
- :trackable, :timeoutable, :lockable, :validatable, :async
6
-
7
- before_validation :ensure_password, on: :create
8
-
9
- after_save :invalidate_cache
10
-
11
- validates :role, inclusion: {in: ROLES}
12
-
13
- def self.serialize_from_session(key, salt)
14
- # store the current_account in the cache so we do not perform a db lookup on each authenticated page
15
- single_key = key.is_a?(Array) ? key.first : key
16
-
17
- Rails.cache.fetch("account:#{single_key}") do
18
- Account.where(id: single_key).entries.first
19
- end
20
- end
21
-
22
- def self.generate_password(length = 10)
23
- Devise.friendly_token.first(length)
24
- end
25
-
26
- def is?(role_check)
27
- role.to_sym == role_check
28
- end
29
-
30
- private
31
-
32
- def ensure_password
33
- # only generate a password if it does not exist
34
- self.password ||= Account.generate_password
35
- end
36
-
37
- def invalidate_cache
38
- Rails.cache.delete("account:#{id}")
39
- end
40
- end
@@ -1,26 +0,0 @@
1
- <%
2
- title 'Confirm'
3
- meta_description '...'
4
- heading 'Confirm'
5
- %>
6
-
7
- <div class="row">
8
- <div class="col-sm-4">
9
- <%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: {method: :post}) do |f| %>
10
- <div class="form-group">
11
- <%= f.label :email %>
12
- <%= f.email_field :email, class: 'form-control', maxlength: 254, autofocus: true,
13
- data: {
14
- 'rule-required' => 'true',
15
- 'rule-maxlength' => '254'
16
- } %>
17
- </div>
18
- <%= button_tag type: 'submit', class: 'btn btn-primary' do %>
19
- Send
20
- <% end %>
21
- <% end %>
22
- </div>
23
- <div class="col-sm-6 col-sm-offset-2">
24
- <%= render 'devise/shared/links' %>
25
- </div>
26
- </div>
@@ -1,5 +0,0 @@
1
- <p>Welcome <%= @email %>!</p>
2
-
3
- <p>You can confirm your account email through the link below:</p>
4
-
5
- <p><%= link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @token) %></p>
@@ -1,10 +0,0 @@
1
- <p>Hello <%= @resource.email %>!</p>
2
-
3
- <p>Someone has requested a link to change your password. You can do this through
4
- the link below.</p>
5
-
6
- <p><%= link_to 'Change my password', edit_password_url(@resource, reset_password_token: @token) %></p>
7
-
8
- <p>If you didn't request this, please ignore this email.</p>
9
- <p>Your password won't change until you access the link above and create a new
10
- one.</p>
@@ -1,8 +0,0 @@
1
- <p>Hello <%= @resource.email %>!</p>
2
-
3
- <p>Your account has been locked due to an excessive number of unsuccessful sign
4
- in attempts.</p>
5
-
6
- <p>Click the link below to unlock your account:</p>
7
-
8
- <p><%= link_to 'Unlock my account', unlock_url(@resource, unlock_token: @token) %></p>
@@ -1,28 +0,0 @@
1
- <%
2
- title 'Change your password'
3
- meta_description '...'
4
- heading 'Change your password'
5
- %>
6
-
7
- <div class="row">
8
- <div class="col-sm-4">
9
- <%= form_for resource, as: resource_name, url: password_path(resource_name), html: {method: :put} do |f| %>
10
- <%= f.hidden_field :reset_password_token %>
11
- <div class="form-group">
12
- <%= f.label :password, 'New password' %>
13
- <%= f.password_field :password, maxlength: 128, class: 'form-control', autofocus: true,
14
- data: {
15
- 'rule-required' => 'true',
16
- 'rule-minlength' => '8',
17
- 'rule-maxlength' => '128'
18
- } %>
19
- </div>
20
- <%= button_tag type: 'submit', class: 'btn btn-primary' do %>
21
- Send
22
- <% end %>
23
- <% end %>
24
- </div>
25
- <div class="col-sm-6 col-sm-offset-2">
26
- <%= render 'devise/shared/links' %>
27
- </div>
28
- </div>
@@ -1,26 +0,0 @@
1
- <%
2
- title 'Forgot your password?'
3
- meta_description '...'
4
- heading 'Forgot your password?'
5
- %>
6
-
7
- <div class="row">
8
- <div class="col-sm-4">
9
- <%= form_for resource, as: resource_name, url: password_path(resource_name), html: {method: :post} do |f| %>
10
- <div class="form-group">
11
- <%= f.label :email %>
12
- <%= f.email_field :email, class: 'form-control', autofocus: true, maxlength: 254,
13
- data: {
14
- 'rule-required' => 'true',
15
- 'rule-maxlength' => '254'
16
- } %>
17
- </div>
18
- <%= button_tag type: 'submit', class: 'btn btn-primary' do %>
19
- Send
20
- <% end %>
21
- <% end %>
22
- </div>
23
- <div class="col-sm-6 col-sm-offset-2">
24
- <%= render 'devise/shared/links' %>
25
- </div>
26
- </div>
@@ -1,51 +0,0 @@
1
- <%
2
- title 'Edit your account'
3
- meta_description '...'
4
- heading 'Edit your account'
5
- %>
6
-
7
- <div class="row">
8
- <div class="col-sm-6">
9
- <%= form_for resource, as: resource_name, url: registration_path(resource_name), html: {method: :patch} do |f| %>
10
- <div class="form-group">
11
- <%= f.label :current_password %>
12
- <span class="help-block form-help-adjust-margin">
13
- <small>
14
- Supply your current password to make any changes
15
- </small>
16
- </span>
17
- <%= f.password_field :current_password, maxlength: 128, class: 'form-control',
18
- data: {
19
- 'rule-required' => 'true',
20
- 'rule-minlength' => '8',
21
- 'rule-maxlength' => '128'
22
- } %>
23
- </div>
24
- <div class="form-group">
25
- <%= f.label :email %>
26
- <%= f.email_field :email, class: 'form-control', maxlength: 254, autofocus: true %>
27
- </div>
28
- <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
29
- <h3>Currently waiting confirmation
30
- for: <%= resource.unconfirmed_email %></h3>
31
- <% end %>
32
- <div class="form-group">
33
- <%= f.label :password %>
34
- <span class="help-block form-help-adjust-margin">
35
- <small>
36
- Leave this blank if you do not want to change it
37
- </small>
38
- </span>
39
- <%= f.password_field :password, class: 'form-control' %>
40
- </div>
41
- <%= button_tag type: 'submit', class: 'btn btn-primary' do %>
42
- Save
43
- <% end %>
44
- <% end %>
45
- </div>
46
- <div class="col-sm-6">
47
- <p>
48
- Unhappy? <%= button_to 'Cancel my account', registration_path(resource_name), method: :delete %>
49
- </p>
50
- </div>
51
- </div>
@@ -1,31 +0,0 @@
1
- <%
2
- title 'Register a new account'
3
- meta_description '...'
4
- heading 'Register a new account'
5
- %>
6
-
7
- <div class="row">
8
- <div class="col-sm-4">
9
- <%= form_for resource, as: resource_name, url: registration_path(resource_name) do |f| %>
10
- <div class="form-group">
11
- <%= f.label :email %>
12
- <%= f.email_field :email, class: 'form-control', maxlength: 254, autofocus: true %>
13
- </div>
14
- <div class="form-group">
15
- <%= f.label :password %>
16
- <%= f.password_field :password, maxlength: 128, class: 'form-control',
17
- data: {
18
- 'rule-required' => 'true',
19
- 'rule-minlength' => '8',
20
- 'rule-maxlength' => '128'
21
- } %>
22
- </div>
23
- <%= button_tag type: 'submit', class: 'btn btn-primary' do %>
24
- Register
25
- <% end %>
26
- <% end %>
27
- </div>
28
- <div class="col-sm-6 col-sm-offset-2">
29
- <%= render 'devise/shared/links' %>
30
- </div>
31
- </div>