From 84f1206c8f7c9d9367f7e0188ddfada6c10d0e00 Mon Sep 17 00:00:00 2001 From: Greg Bowman Date: Fri, 26 May 2023 13:15:14 -0400 Subject: [PATCH] upgrade for rails 6 --- Gemfile | 4 +- spec/rails_5.0_app/.gitignore | 17 -- spec/rails_5.0_app/Rakefile | 6 - spec/rails_5.0_app/app/assets/images/.keep | 0 .../app/assets/javascripts/application.js | 13 - .../app/assets/stylesheets/application.css | 15 -- .../app/controllers/application_controller.rb | 5 - .../app/controllers/concerns/.keep | 0 .../app/controllers/home_controller.rb | 4 - .../app/helpers/application_helper.rb | 2 - spec/rails_5.0_app/app/mailers/.keep | 0 spec/rails_5.0_app/app/models/.keep | 0 spec/rails_5.0_app/app/models/concerns/.keep | 0 spec/rails_5.0_app/app/models/user.rb | 10 - .../views/devise/confirmations/new.html.erb | 12 - .../mailer/confirmation_instructions.html.erb | 5 - .../reset_password_instructions.html.erb | 8 - .../mailer/unlock_instructions.html.erb | 7 - .../app/views/devise/passwords/edit.html.erb | 16 -- .../app/views/devise/passwords/new.html.erb | 12 - .../views/devise/registrations/edit.html.erb | 29 -- .../views/devise/registrations/new.html.erb | 18 -- .../app/views/devise/sessions/new.html.erb | 17 -- .../app/views/devise/shared/_links.erb | 25 -- .../app/views/devise/unlocks/new.html.erb | 12 - .../app/views/home/index.html.erb | 10 - .../app/views/layouts/application.html.erb | 17 -- spec/rails_5.0_app/bin/bundle | 3 - spec/rails_5.0_app/bin/rails | 8 - spec/rails_5.0_app/bin/rake | 8 - spec/rails_5.0_app/bin/setup | 24 -- spec/rails_5.0_app/bin/spring | 15 -- spec/rails_5.0_app/config.ru | 4 - spec/rails_5.0_app/config/application.rb | 27 -- spec/rails_5.0_app/config/boot.rb | 3 - spec/rails_5.0_app/config/database.yml | 0 spec/rails_5.0_app/config/environment.rb | 5 - .../config/environments/development.rb | 41 --- .../config/environments/production.rb | 79 ------ .../rails_5.0_app/config/environments/test.rb | 38 --- .../config/initializers/assets.rb | 11 - .../initializers/backtrace_silencers.rb | 7 - .../config/initializers/cookies_serializer.rb | 3 - .../config/initializers/devise.rb | 254 ------------------ .../initializers/filter_parameter_logging.rb | 4 - .../config/initializers/inflections.rb | 16 -- .../config/initializers/mime_types.rb | 4 - .../config/initializers/session_store.rb | 1 - .../config/initializers/wrap_parameters.rb | 14 - spec/rails_5.0_app/config/locales/en.yml | 23 -- spec/rails_5.0_app/config/mongoid.yml | 13 - spec/rails_5.0_app/config/routes.rb | 4 - spec/rails_5.0_app/config/secrets.yml | 22 -- spec/rails_5.0_app/db/seeds.rb | 7 - spec/rails_5.0_app/lib/assets/.keep | 0 spec/rails_5.0_app/lib/tasks/.keep | 0 spec/rails_5.0_app/log/.keep | 0 spec/rails_5.0_app/public/404.html | 67 ----- spec/rails_5.0_app/public/422.html | 67 ----- spec/rails_5.0_app/public/500.html | 66 ----- spec/rails_5.0_app/public/favicon.ico | 0 spec/rails_5.0_app/public/robots.txt | 5 - 62 files changed, 2 insertions(+), 1105 deletions(-) delete mode 100644 spec/rails_5.0_app/.gitignore delete mode 100644 spec/rails_5.0_app/Rakefile delete mode 100644 spec/rails_5.0_app/app/assets/images/.keep delete mode 100644 spec/rails_5.0_app/app/assets/javascripts/application.js delete mode 100644 spec/rails_5.0_app/app/assets/stylesheets/application.css delete mode 100644 spec/rails_5.0_app/app/controllers/application_controller.rb delete mode 100644 spec/rails_5.0_app/app/controllers/concerns/.keep delete mode 100644 spec/rails_5.0_app/app/controllers/home_controller.rb delete mode 100644 spec/rails_5.0_app/app/helpers/application_helper.rb delete mode 100644 spec/rails_5.0_app/app/mailers/.keep delete mode 100644 spec/rails_5.0_app/app/models/.keep delete mode 100644 spec/rails_5.0_app/app/models/concerns/.keep delete mode 100644 spec/rails_5.0_app/app/models/user.rb delete mode 100644 spec/rails_5.0_app/app/views/devise/confirmations/new.html.erb delete mode 100644 spec/rails_5.0_app/app/views/devise/mailer/confirmation_instructions.html.erb delete mode 100644 spec/rails_5.0_app/app/views/devise/mailer/reset_password_instructions.html.erb delete mode 100644 spec/rails_5.0_app/app/views/devise/mailer/unlock_instructions.html.erb delete mode 100644 spec/rails_5.0_app/app/views/devise/passwords/edit.html.erb delete mode 100644 spec/rails_5.0_app/app/views/devise/passwords/new.html.erb delete mode 100644 spec/rails_5.0_app/app/views/devise/registrations/edit.html.erb delete mode 100644 spec/rails_5.0_app/app/views/devise/registrations/new.html.erb delete mode 100644 spec/rails_5.0_app/app/views/devise/sessions/new.html.erb delete mode 100644 spec/rails_5.0_app/app/views/devise/shared/_links.erb delete mode 100644 spec/rails_5.0_app/app/views/devise/unlocks/new.html.erb delete mode 100644 spec/rails_5.0_app/app/views/home/index.html.erb delete mode 100644 spec/rails_5.0_app/app/views/layouts/application.html.erb delete mode 100755 spec/rails_5.0_app/bin/bundle delete mode 100755 spec/rails_5.0_app/bin/rails delete mode 100755 spec/rails_5.0_app/bin/rake delete mode 100755 spec/rails_5.0_app/bin/setup delete mode 100755 spec/rails_5.0_app/bin/spring delete mode 100644 spec/rails_5.0_app/config.ru delete mode 100644 spec/rails_5.0_app/config/application.rb delete mode 100644 spec/rails_5.0_app/config/boot.rb delete mode 100644 spec/rails_5.0_app/config/database.yml delete mode 100644 spec/rails_5.0_app/config/environment.rb delete mode 100644 spec/rails_5.0_app/config/environments/development.rb delete mode 100644 spec/rails_5.0_app/config/environments/production.rb delete mode 100644 spec/rails_5.0_app/config/environments/test.rb delete mode 100644 spec/rails_5.0_app/config/initializers/assets.rb delete mode 100644 spec/rails_5.0_app/config/initializers/backtrace_silencers.rb delete mode 100644 spec/rails_5.0_app/config/initializers/cookies_serializer.rb delete mode 100644 spec/rails_5.0_app/config/initializers/devise.rb delete mode 100644 spec/rails_5.0_app/config/initializers/filter_parameter_logging.rb delete mode 100644 spec/rails_5.0_app/config/initializers/inflections.rb delete mode 100644 spec/rails_5.0_app/config/initializers/mime_types.rb delete mode 100644 spec/rails_5.0_app/config/initializers/session_store.rb delete mode 100644 spec/rails_5.0_app/config/initializers/wrap_parameters.rb delete mode 100644 spec/rails_5.0_app/config/locales/en.yml delete mode 100644 spec/rails_5.0_app/config/mongoid.yml delete mode 100644 spec/rails_5.0_app/config/routes.rb delete mode 100644 spec/rails_5.0_app/config/secrets.yml delete mode 100644 spec/rails_5.0_app/db/seeds.rb delete mode 100644 spec/rails_5.0_app/lib/assets/.keep delete mode 100644 spec/rails_5.0_app/lib/tasks/.keep delete mode 100644 spec/rails_5.0_app/log/.keep delete mode 100644 spec/rails_5.0_app/public/404.html delete mode 100644 spec/rails_5.0_app/public/422.html delete mode 100644 spec/rails_5.0_app/public/500.html delete mode 100644 spec/rails_5.0_app/public/favicon.ico delete mode 100644 spec/rails_5.0_app/public/robots.txt diff --git a/Gemfile b/Gemfile index dd58fa2..e2846a0 100644 --- a/Gemfile +++ b/Gemfile @@ -10,7 +10,7 @@ group :development, :test do gem 'test-unit' gem 'rspec-rails' - gem 'rails', '5.0.2' + gem 'rails', '6.1.7' - gem 'mongoid', '6.1.0' + gem 'mongoid', '7.5.1' end diff --git a/spec/rails_5.0_app/.gitignore b/spec/rails_5.0_app/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/spec/rails_5.0_app/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/spec/rails_5.0_app/Rakefile b/spec/rails_5.0_app/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/spec/rails_5.0_app/Rakefile +++ /dev/null @@ -1,6 +0,0 @@ -# Add your own tasks in files placed in lib/tasks ending in .rake, -# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. - -require File.expand_path('../config/application', __FILE__) - -Rails.application.load_tasks diff --git a/spec/rails_5.0_app/app/assets/images/.keep b/spec/rails_5.0_app/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/spec/rails_5.0_app/app/assets/javascripts/application.js b/spec/rails_5.0_app/app/assets/javascripts/application.js deleted file mode 100644 index 8913b40..0000000 --- a/spec/rails_5.0_app/app/assets/javascripts/application.js +++ /dev/null @@ -1,13 +0,0 @@ -// This is a manifest file that'll be compiled into application.js, which will include all the files -// listed below. -// -// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, -// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path. -// -// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the -// compiled file. -// -// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require_tree . diff --git a/spec/rails_5.0_app/app/assets/stylesheets/application.css b/spec/rails_5.0_app/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/spec/rails_5.0_app/app/assets/stylesheets/application.css +++ /dev/null @@ -1,15 +0,0 @@ -/* - * This is a manifest file that'll be compiled into application.css, which will include all the files - * listed below. - * - * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, - * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path. - * - * You're free to add application-wide styles to this file and they'll appear at the bottom of the - * compiled file so the styles you add here take precedence over styles defined in any styles - * defined in the other CSS/SCSS files in this directory. It is generally better to create a new - * file per style scope. - * - *= require_tree . - *= require_self - */ diff --git a/spec/rails_5.0_app/app/controllers/application_controller.rb b/spec/rails_5.0_app/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/spec/rails_5.0_app/app/controllers/application_controller.rb +++ /dev/null @@ -1,5 +0,0 @@ -class ApplicationController < ActionController::Base - # Prevent CSRF attacks by raising an exception. - # For APIs, you may want to use :null_session instead. - protect_from_forgery with: :exception -end diff --git a/spec/rails_5.0_app/app/controllers/concerns/.keep b/spec/rails_5.0_app/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/spec/rails_5.0_app/app/controllers/home_controller.rb b/spec/rails_5.0_app/app/controllers/home_controller.rb deleted file mode 100644 index 9ec3adc..0000000 --- a/spec/rails_5.0_app/app/controllers/home_controller.rb +++ /dev/null @@ -1,4 +0,0 @@ -class HomeController < ApplicationController - def index - end -end \ No newline at end of file diff --git a/spec/rails_5.0_app/app/helpers/application_helper.rb b/spec/rails_5.0_app/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/spec/rails_5.0_app/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/spec/rails_5.0_app/app/mailers/.keep b/spec/rails_5.0_app/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/spec/rails_5.0_app/app/models/.keep b/spec/rails_5.0_app/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/spec/rails_5.0_app/app/models/concerns/.keep b/spec/rails_5.0_app/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/spec/rails_5.0_app/app/models/user.rb b/spec/rails_5.0_app/app/models/user.rb deleted file mode 100644 index c2c2bdf..0000000 --- a/spec/rails_5.0_app/app/models/user.rb +++ /dev/null @@ -1,10 +0,0 @@ -class User - include Mongoid::Document - include Mongoid::Timestamps - - # Database Authenticatable - field :email, type: String - field :encrypted_password, type: String, default: '' - - devise :database_authenticatable, :registerable -end diff --git a/spec/rails_5.0_app/app/views/devise/confirmations/new.html.erb b/spec/rails_5.0_app/app/views/devise/confirmations/new.html.erb deleted file mode 100644 index 9c27eb7..0000000 --- a/spec/rails_5.0_app/app/views/devise/confirmations/new.html.erb +++ /dev/null @@ -1,12 +0,0 @@ -

Resend confirmation instructions

- -<%= form_for(resource, :as => resource_name, :url => confirmation_path(resource_name), :html => { :method => :post }) do |f| %> - <%= devise_error_messages! %> - -
<%= f.label :email %>
- <%= f.email_field :email, :autofocus => true %>
- -
<%= f.submit "Resend confirmation instructions" %>
-<% end %> - -<%= render "devise/shared/links" %> diff --git a/spec/rails_5.0_app/app/views/devise/mailer/confirmation_instructions.html.erb b/spec/rails_5.0_app/app/views/devise/mailer/confirmation_instructions.html.erb deleted file mode 100644 index 36670f9..0000000 --- a/spec/rails_5.0_app/app/views/devise/mailer/confirmation_instructions.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -

Welcome <%= @email %>!

- -

You can confirm your account email through the link below:

- -

<%= link_to 'Confirm my account', confirmation_url(@resource, :confirmation_token => @token) %>

diff --git a/spec/rails_5.0_app/app/views/devise/mailer/reset_password_instructions.html.erb b/spec/rails_5.0_app/app/views/devise/mailer/reset_password_instructions.html.erb deleted file mode 100644 index 93de6d0..0000000 --- a/spec/rails_5.0_app/app/views/devise/mailer/reset_password_instructions.html.erb +++ /dev/null @@ -1,8 +0,0 @@ -

Hello <%= @resource.email %>!

- -

Someone has requested a link to change your password. You can do this through the link below.

- -

<%= link_to 'Change my password', edit_password_url(@resource, :reset_password_token => @token) %>

- -

If you didn't request this, please ignore this email.

-

Your password won't change until you access the link above and create a new one.

diff --git a/spec/rails_5.0_app/app/views/devise/mailer/unlock_instructions.html.erb b/spec/rails_5.0_app/app/views/devise/mailer/unlock_instructions.html.erb deleted file mode 100644 index f59615f..0000000 --- a/spec/rails_5.0_app/app/views/devise/mailer/unlock_instructions.html.erb +++ /dev/null @@ -1,7 +0,0 @@ -

Hello <%= @resource.email %>!

- -

Your account has been locked due to an excessive number of unsuccessful sign in attempts.

- -

Click the link below to unlock your account:

- -

<%= link_to 'Unlock my account', unlock_url(@resource, :unlock_token => @token) %>

diff --git a/spec/rails_5.0_app/app/views/devise/passwords/edit.html.erb b/spec/rails_5.0_app/app/views/devise/passwords/edit.html.erb deleted file mode 100644 index 34a4960..0000000 --- a/spec/rails_5.0_app/app/views/devise/passwords/edit.html.erb +++ /dev/null @@ -1,16 +0,0 @@ -

Change your password

- -<%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f| %> - <%= devise_error_messages! %> - <%= f.hidden_field :reset_password_token %> - -
<%= f.label :password, "New password" %>
- <%= f.password_field :password, :autofocus => true %>
- -
<%= f.label :password_confirmation, "Confirm new password" %>
- <%= f.password_field :password_confirmation %>
- -
<%= f.submit "Change my password" %>
-<% end %> - -<%= render "devise/shared/links" %> diff --git a/spec/rails_5.0_app/app/views/devise/passwords/new.html.erb b/spec/rails_5.0_app/app/views/devise/passwords/new.html.erb deleted file mode 100644 index 5a400df..0000000 --- a/spec/rails_5.0_app/app/views/devise/passwords/new.html.erb +++ /dev/null @@ -1,12 +0,0 @@ -

Forgot your password?

- -<%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f| %> - <%= devise_error_messages! %> - -
<%= f.label :email %>
- <%= f.email_field :email, :autofocus => true %>
- -
<%= f.submit "Send me reset password instructions" %>
-<% end %> - -<%= render "devise/shared/links" %> diff --git a/spec/rails_5.0_app/app/views/devise/registrations/edit.html.erb b/spec/rails_5.0_app/app/views/devise/registrations/edit.html.erb deleted file mode 100644 index 986db40..0000000 --- a/spec/rails_5.0_app/app/views/devise/registrations/edit.html.erb +++ /dev/null @@ -1,29 +0,0 @@ -

Edit <%= resource_name.to_s.humanize %>

- -<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %> - <%= devise_error_messages! %> - -
<%= f.label :email %>
- <%= f.email_field :email, :autofocus => true %>
- - <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %> -
Currently waiting confirmation for: <%= resource.unconfirmed_email %>
- <% end %> - -
<%= f.label :password %> (leave blank if you don't want to change it)
- <%= f.password_field :password, :autocomplete => "off" %>
- -
<%= f.label :password_confirmation %>
- <%= f.password_field :password_confirmation %>
- -
<%= f.label :current_password %> (we need your current password to confirm your changes)
- <%= f.password_field :current_password %>
- -
<%= f.submit "Update" %>
-<% end %> - -

Cancel my account

- -

Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), :data => { :confirm => "Are you sure?" }, :method => :delete %>

- -<%= link_to "Back", :back %> diff --git a/spec/rails_5.0_app/app/views/devise/registrations/new.html.erb b/spec/rails_5.0_app/app/views/devise/registrations/new.html.erb deleted file mode 100644 index 3f189d4..0000000 --- a/spec/rails_5.0_app/app/views/devise/registrations/new.html.erb +++ /dev/null @@ -1,18 +0,0 @@ -

Sign up

- -<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %> - <%= devise_error_messages! %> - -
<%= f.label :email %>
- <%= f.email_field :email, :autofocus => true %>
- -
<%= f.label :password %>
- <%= f.password_field :password %>
- -
<%= f.label :password_confirmation %>
- <%= f.password_field :password_confirmation %>
- -
<%= f.submit "Sign up" %>
-<% end %> - -<%= render "devise/shared/links" %> diff --git a/spec/rails_5.0_app/app/views/devise/sessions/new.html.erb b/spec/rails_5.0_app/app/views/devise/sessions/new.html.erb deleted file mode 100644 index f9bc2c1..0000000 --- a/spec/rails_5.0_app/app/views/devise/sessions/new.html.erb +++ /dev/null @@ -1,17 +0,0 @@ -

Sign in

- -<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %> -
<%= f.label :email %>
- <%= f.email_field :email, :autofocus => true %>
- -
<%= f.label :password %>
- <%= f.password_field :password %>
- - <% if devise_mapping.rememberable? -%> -
<%= f.check_box :remember_me %> <%= f.label :remember_me %>
- <% end -%> - -
<%= f.submit "Sign in" %>
-<% end %> - -<%= render "devise/shared/links" %> diff --git a/spec/rails_5.0_app/app/views/devise/shared/_links.erb b/spec/rails_5.0_app/app/views/devise/shared/_links.erb deleted file mode 100644 index d84bdde..0000000 --- a/spec/rails_5.0_app/app/views/devise/shared/_links.erb +++ /dev/null @@ -1,25 +0,0 @@ -<%- if controller_name != 'sessions' %> - <%= link_to "Sign in", new_session_path(resource_name) %>
-<% end -%> - -<%- if devise_mapping.registerable? && controller_name != 'registrations' %> - <%= link_to "Sign up", new_registration_path(resource_name) %>
-<% end -%> - -<%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %> - <%= link_to "Forgot your password?", new_password_path(resource_name) %>
-<% end -%> - -<%- if devise_mapping.confirmable? && controller_name != 'confirmations' %> - <%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %>
-<% end -%> - -<%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %> - <%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %>
-<% end -%> - -<%- if devise_mapping.omniauthable? %> - <%- resource_class.omniauth_providers.each do |provider| %> - <%= link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider) %>
- <% end -%> -<% end -%> diff --git a/spec/rails_5.0_app/app/views/devise/unlocks/new.html.erb b/spec/rails_5.0_app/app/views/devise/unlocks/new.html.erb deleted file mode 100644 index 020787f..0000000 --- a/spec/rails_5.0_app/app/views/devise/unlocks/new.html.erb +++ /dev/null @@ -1,12 +0,0 @@ -

Resend unlock instructions

- -<%= form_for(resource, :as => resource_name, :url => unlock_path(resource_name), :html => { :method => :post }) do |f| %> - <%= devise_error_messages! %> - -
<%= f.label :email %>
- <%= f.email_field :email, :autofocus => true %>
- -
<%= f.submit "Resend unlock instructions" %>
-<% end %> - -<%= render "devise/shared/links" %> diff --git a/spec/rails_5.0_app/app/views/home/index.html.erb b/spec/rails_5.0_app/app/views/home/index.html.erb deleted file mode 100644 index 49ec8d9..0000000 --- a/spec/rails_5.0_app/app/views/home/index.html.erb +++ /dev/null @@ -1,10 +0,0 @@ -You are logged -<% if user_signed_in? %> - in as <%= current_user.email %>. -
- - -
-<% else %> - out. <%= link_to "Sign in", new_user_session_path %> -<% end %> \ No newline at end of file diff --git a/spec/rails_5.0_app/app/views/layouts/application.html.erb b/spec/rails_5.0_app/app/views/layouts/application.html.erb deleted file mode 100644 index dba5019..0000000 --- a/spec/rails_5.0_app/app/views/layouts/application.html.erb +++ /dev/null @@ -1,17 +0,0 @@ - - - - Rails5 App - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= notice %> -<%= alert %> - -<%= yield %> - - - diff --git a/spec/rails_5.0_app/bin/bundle b/spec/rails_5.0_app/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/spec/rails_5.0_app/bin/bundle +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env ruby -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) -load Gem.bin_path('bundler', 'bundle') diff --git a/spec/rails_5.0_app/bin/rails b/spec/rails_5.0_app/bin/rails deleted file mode 100755 index 4d608ed..0000000 --- a/spec/rails_5.0_app/bin/rails +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path("../spring", __FILE__) -rescue LoadError -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/spec/rails_5.0_app/bin/rake b/spec/rails_5.0_app/bin/rake deleted file mode 100755 index 8017a02..0000000 --- a/spec/rails_5.0_app/bin/rake +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path("../spring", __FILE__) -rescue LoadError -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/spec/rails_5.0_app/bin/setup b/spec/rails_5.0_app/bin/setup deleted file mode 100755 index 4219246..0000000 --- a/spec/rails_5.0_app/bin/setup +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/spec/rails_5.0_app/bin/spring b/spec/rails_5.0_app/bin/spring deleted file mode 100755 index 7b45d37..0000000 --- a/spec/rails_5.0_app/bin/spring +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require "rubygems" - require "bundler" - - if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m) - Gem.paths = { "GEM_PATH" => [Bundler.bundle_path.to_s, *Gem.path].uniq } - gem "spring", match[1] - require "spring/binstub" - end -end diff --git a/spec/rails_5.0_app/config.ru b/spec/rails_5.0_app/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/spec/rails_5.0_app/config.ru +++ /dev/null @@ -1,4 +0,0 @@ -# This file is used by Rack-based servers to start the application. - -require ::File.expand_path('../config/environment', __FILE__) -run Rails.application diff --git a/spec/rails_5.0_app/config/application.rb b/spec/rails_5.0_app/config/application.rb deleted file mode 100644 index afbede4..0000000 --- a/spec/rails_5.0_app/config/application.rb +++ /dev/null @@ -1,27 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'action_controller/railtie' -require 'action_mailer/railtie' -require 'sprockets/railtie' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module Rails50App - class Application < Rails::Application - # Settings in config/environments/* take precedence over those specified here. - # Application configuration should go into files in config/initializers - # -- all .rb files in that directory are automatically loaded. - - # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. - # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. - # config.time_zone = 'Central Time (US & Canada)' - - # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. - # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] - # config.i18n.default_locale = :de - - # Do not swallow errors in after_commit/after_rollback callbacks. - end -end diff --git a/spec/rails_5.0_app/config/boot.rb b/spec/rails_5.0_app/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/spec/rails_5.0_app/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/spec/rails_5.0_app/config/database.yml b/spec/rails_5.0_app/config/database.yml deleted file mode 100644 index e69de29..0000000 diff --git a/spec/rails_5.0_app/config/environment.rb b/spec/rails_5.0_app/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/spec/rails_5.0_app/config/environment.rb +++ /dev/null @@ -1,5 +0,0 @@ -# Load the Rails application. -require File.expand_path('../application', __FILE__) - -# Initialize the Rails application. -Rails.application.initialize! diff --git a/spec/rails_5.0_app/config/environments/development.rb b/spec/rails_5.0_app/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/spec/rails_5.0_app/config/environments/development.rb +++ /dev/null @@ -1,41 +0,0 @@ -Rails.application.configure do - # Settings specified here will take precedence over those in config/application.rb. - - # In the development environment your application's code is reloaded on - # every request. This slows down response time but is perfect for development - # since you don't have to restart the web server when you make code changes. - config.cache_classes = false - - # Do not eager load code on boot. - config.eager_load = false - - # Show full error reports and disable caching. - config.consider_all_requests_local = true - config.action_controller.perform_caching = false - - # Don't care if the mailer can't send. - config.action_mailer.raise_delivery_errors = false - - # Print deprecation notices to the Rails logger. - config.active_support.deprecation = :log - - # Raise an error on page load if there are pending migrations. - config.active_record.migration_error = :page_load - - # Debug mode disables concatenation and preprocessing of assets. - # This option may cause significant delays in view rendering with a large - # number of complex assets. - config.assets.debug = true - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # Adds additional error checking when serving assets at runtime. - # Checks for improperly declared sprockets dependencies. - # Raises helpful error messages. - config.assets.raise_runtime_errors = true - - # Raises error for missing translations - # config.action_view.raise_on_missing_translations = true -end diff --git a/spec/rails_5.0_app/config/environments/production.rb b/spec/rails_5.0_app/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/spec/rails_5.0_app/config/environments/production.rb +++ /dev/null @@ -1,79 +0,0 @@ -Rails.application.configure do - # Settings specified here will take precedence over those in config/application.rb. - - # Code is not reloaded between requests. - config.cache_classes = true - - # Eager load code on boot. This eager loads most of Rails and - # your application in memory, allowing both threaded web servers - # and those relying on copy on write to perform better. - # Rake tasks automatically ignore this option for performance. - config.eager_load = true - - # Full error reports are disabled and caching is turned on. - config.consider_all_requests_local = false - config.action_controller.perform_caching = true - - # Enable Rack::Cache to put a simple HTTP cache in front of your application - # Add `rack-cache` to your Gemfile before enabling this. - # For large-scale production use, consider using a caching reverse proxy like - # NGINX, varnish or squid. - # config.action_dispatch.rack_cache = true - - # Disable serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # Compress JavaScripts and CSS. - config.assets.js_compressor = :uglifier - # config.assets.css_compressor = :sass - - # Do not fallback to assets pipeline if a precompiled asset is missed. - config.assets.compile = false - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # Specifies the header that your server uses for sending files. - # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache - # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX - - # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. - # config.force_ssl = true - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # Prepend all log lines with the following tags. - # config.log_tags = [ :subdomain, :uuid ] - - # Use a different logger for distributed setups. - # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new) - - # Use a different cache store in production. - # config.cache_store = :mem_cache_store - - # Enable serving of images, stylesheets, and JavaScripts from an asset server. - # config.action_controller.asset_host = 'http://assets.example.com' - - # Ignore bad email addresses and do not raise email delivery errors. - # Set this to true and configure the email server for immediate delivery to raise delivery errors. - # config.action_mailer.raise_delivery_errors = false - - # Enable locale fallbacks for I18n (makes lookups for any locale fall back to - # the I18n.default_locale when a translation cannot be found). - config.i18n.fallbacks = true - - # Send deprecation notices to registered listeners. - config.active_support.deprecation = :notify - - # Use default logging formatter so that PID and timestamp are not suppressed. - config.log_formatter = ::Logger::Formatter.new - - # Do not dump schema after migrations. - config.active_record.dump_schema_after_migration = false -end diff --git a/spec/rails_5.0_app/config/environments/test.rb b/spec/rails_5.0_app/config/environments/test.rb deleted file mode 100644 index a6c04ba..0000000 --- a/spec/rails_5.0_app/config/environments/test.rb +++ /dev/null @@ -1,38 +0,0 @@ -Rails.application.configure do - # Settings specified here will take precedence over those in config/application.rb. - - # The test environment is used exclusively to run your application's - # test suite. You never need to work with it otherwise. Remember that - # your test database is "scratch space" for the test suite and is wiped - # and recreated between test runs. Don't rely on the data there! - config.cache_classes = true - - # Do not eager load code on boot. This avoids loading your whole application - # just for the purpose of running a single test. If you are using a tool that - # preloads Rails for running tests, you may have to set it to true. - config.eager_load = false - - # Show full error reports and disable caching. - config.consider_all_requests_local = true - config.action_controller.perform_caching = false - - # Raise exceptions instead of rendering exception templates. - config.action_dispatch.show_exceptions = false - - # Disable request forgery protection in test environment. - config.action_controller.allow_forgery_protection = false - - # Tell Action Mailer not to deliver emails to the real world. - # The :test delivery method accumulates sent emails in the - # ActionMailer::Base.deliveries array. - config.action_mailer.delivery_method = :test - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # Print deprecation notices to the stderr. - config.active_support.deprecation = :stderr - - # Raises error for missing translations - # config.action_view.raise_on_missing_translations = true -end diff --git a/spec/rails_5.0_app/config/initializers/assets.rb b/spec/rails_5.0_app/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/spec/rails_5.0_app/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/spec/rails_5.0_app/config/initializers/backtrace_silencers.rb b/spec/rails_5.0_app/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/spec/rails_5.0_app/config/initializers/backtrace_silencers.rb +++ /dev/null @@ -1,7 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. -# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } - -# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code. -# Rails.backtrace_cleaner.remove_silencers! diff --git a/spec/rails_5.0_app/config/initializers/cookies_serializer.rb b/spec/rails_5.0_app/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/spec/rails_5.0_app/config/initializers/cookies_serializer.rb +++ /dev/null @@ -1,3 +0,0 @@ -# Be sure to restart your server when you modify this file. - -Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/spec/rails_5.0_app/config/initializers/devise.rb b/spec/rails_5.0_app/config/initializers/devise.rb deleted file mode 100644 index 0e56ae3..0000000 --- a/spec/rails_5.0_app/config/initializers/devise.rb +++ /dev/null @@ -1,254 +0,0 @@ -# Use this hook to configure devise mailer, warden hooks and so forth. -# Many of these configuration options can be set straight in your model. -Devise.setup do |config| - # The secret key used by Devise. Devise uses this key to generate - # random tokens. Changing this key will render invalid all existing - # confirmation, reset password and unlock tokens in the database. - # config.secret_key = '8520db904cf1def8752b3f9e5e0e2e1e88f2a5545d894ad073e93b6da6bad1228d09cd3ab5b9566a55b74d3bea699d87c17414c52a54c0644bb6810a5bbca3e2' - - # ==> Mailer Configuration - # Configure the e-mail address which will be shown in Devise::Mailer, - # note that it will be overwritten if you use your own mailer class - # with default "from" parameter. - config.mailer_sender = 'please-change-me-at-config-initializers-devise@example.com' - - # Configure the class responsible to send e-mails. - # config.mailer = 'Devise::Mailer' - - # ==> ORM configuration - # Load and configure the ORM. Supports :active_record (default) and - # :mongoid (bson_ext recommended) by default. Other ORMs may be - # available as additional gems. - require 'devise/orm/mongoid' - - # ==> Configuration for any authentication mechanism - # Configure which keys are used when authenticating a user. The default is - # just :email. You can configure it to use [:username, :subdomain], so for - # authenticating a user, both parameters are required. Remember that those - # parameters are used only when authenticating and not when retrieving from - # session. If you need permissions, you should implement that in a before filter. - # You can also supply a hash where the value is a boolean determining whether - # or not authentication should be aborted when the value is not present. - # config.authentication_keys = [ :email ] - - # Configure parameters from the request object used for authentication. Each entry - # given should be a request method and it will automatically be passed to the - # find_for_authentication method and considered in your model lookup. For instance, - # if you set :request_keys to [:subdomain], :subdomain will be used on authentication. - # The same considerations mentioned for authentication_keys also apply to request_keys. - # config.request_keys = [] - - # Configure which authentication keys should be case-insensitive. - # These keys will be downcased upon creating or modifying a user and when used - # to authenticate or find a user. Default is :email. - config.case_insensitive_keys = [ :email ] - - # Configure which authentication keys should have whitespace stripped. - # These keys will have whitespace before and after removed upon creating or - # modifying a user and when used to authenticate or find a user. Default is :email. - config.strip_whitespace_keys = [ :email ] - - # Tell if authentication through request.params is enabled. True by default. - # It can be set to an array that will enable params authentication only for the - # given strategies, for example, `config.params_authenticatable = [:database]` will - # enable it only for database (email + password) authentication. - # config.params_authenticatable = true - - # Tell if authentication through HTTP Auth is enabled. False by default. - # It can be set to an array that will enable http authentication only for the - # given strategies, for example, `config.http_authenticatable = [:database]` will - # enable it only for database authentication. The supported strategies are: - # :database = Support basic authentication with authentication key + password - # config.http_authenticatable = false - - # If http headers should be returned for AJAX requests. True by default. - # config.http_authenticatable_on_xhr = true - - # The realm used in Http Basic Authentication. 'Application' by default. - # config.http_authentication_realm = 'Application' - - # It will change confirmation, password recovery and other workflows - # to behave the same regardless if the e-mail provided was right or wrong. - # Does not affect registerable. - # config.paranoid = true - - # By default Devise will store the user in session. You can skip storage for - # particular strategies by setting this option. - # Notice that if you are skipping storage for all authentication paths, you - # may want to disable generating routes to Devise's sessions controller by - # passing :skip => :sessions to `devise_for` in your config/routes.rb - config.skip_session_storage = [:http_auth] - - # By default, Devise cleans up the CSRF token on authentication to - # avoid CSRF token fixation attacks. This means that, when using AJAX - # requests for sign in and sign up, you need to get a new CSRF token - # from the server. You can disable this option at your own risk. - # config.clean_up_csrf_token_on_authentication = true - - # ==> Configuration for :database_authenticatable - # For bcrypt, this is the cost for hashing the password and defaults to 10. If - # using other encryptors, it sets how many times you want the password re-encrypted. - # - # Limiting the stretches to just one in testing will increase the performance of - # your test suite dramatically. However, it is STRONGLY RECOMMENDED to not use - # a value less than 10 in other environments. - config.stretches = Rails.env.test? ? 1 : 10 - - # Setup a pepper to generate the encrypted password. - # config.pepper = '30efc0523d0953dad5356bac16efa34f7d10176e193a6dcbd69ed1bd459dfcb4b3bdcec895d62519bcd6c5f6104070a13875933ab7439c1e3735341c9ee595df' - - # ==> Configuration for :confirmable - # A period that the user is allowed to access the website even without - # confirming their account. For instance, if set to 2.days, the user will be - # able to access the website for two days without confirming their account, - # access will be blocked just in the third day. Default is 0.days, meaning - # the user cannot access the website without confirming their account. - # config.allow_unconfirmed_access_for = 2.days - - # A period that the user is allowed to confirm their account before their - # token becomes invalid. For example, if set to 3.days, the user can confirm - # their account within 3 days after the mail was sent, but on the fourth day - # their account can't be confirmed with the token any more. - # Default is nil, meaning there is no restriction on how long a user can take - # before confirming their account. - # config.confirm_within = 3.days - - # If true, requires any email changes to be confirmed (exactly the same way as - # initial account confirmation) to be applied. Requires additional unconfirmed_email - # db field (see migrations). Until confirmed new email is stored in - # unconfirmed email column, and copied to email column on successful confirmation. - config.reconfirmable = true - - # Defines which key will be used when confirming an account - # config.confirmation_keys = [ :email ] - - # ==> Configuration for :rememberable - # The time the user will be remembered without asking for credentials again. - # config.remember_for = 2.weeks - - # If true, extends the user's remember period when remembered via cookie. - # config.extend_remember_period = false - - # Options to be passed to the created cookie. For instance, you can set - # :secure => true in order to force SSL only cookies. - # config.rememberable_options = {} - - # ==> Configuration for :validatable - # Range for password length. - config.password_length = 8..128 - - # Email regex used to validate email formats. It simply asserts that - # one (and only one) @ exists in the given string. This is mainly - # to give user feedback and not to assert the e-mail validity. - # config.email_regexp = /\A[^@]+@[^@]+\z/ - - # ==> Configuration for :timeoutable - # The time you want to timeout the user session without activity. After this - # time the user will be asked for credentials again. Default is 30 minutes. - # config.timeout_in = 30.minutes - - # If true, expires auth token on session timeout. - # config.expire_auth_token_on_timeout = false - - # ==> Configuration for :lockable - # Defines which strategy will be used to lock an account. - # :failed_attempts = Locks an account after a number of failed attempts to sign in. - # :none = No lock strategy. You should handle locking by yourself. - # config.lock_strategy = :failed_attempts - - # Defines which key will be used when locking and unlocking an account - # config.unlock_keys = [ :email ] - - # Defines which strategy will be used to unlock an account. - # :email = Sends an unlock link to the user email - # :time = Re-enables login after a certain amount of time (see :unlock_in below) - # :both = Enables both strategies - # :none = No unlock strategy. You should handle unlocking by yourself. - # config.unlock_strategy = :both - - # Number of authentication tries before locking an account if lock_strategy - # is failed attempts. - # config.maximum_attempts = 20 - - # Time interval to unlock the account if :time is enabled as unlock_strategy. - # config.unlock_in = 1.hour - - # Warn on the last attempt before the account is locked. - # config.last_attempt_warning = false - - # ==> Configuration for :recoverable - # - # Defines which key will be used when recovering the password for an account - # config.reset_password_keys = [ :email ] - - # Time interval you can reset your password with a reset password key. - # Don't put a too small interval or your users won't have the time to - # change their passwords. - config.reset_password_within = 6.hours - - # ==> Configuration for :encryptable - # Allow you to use another encryption algorithm besides bcrypt (default). You can use - # :sha1, :sha512 or encryptors from others authentication tools as :clearance_sha1, - # :authlogic_sha512 (then you should set stretches above to 20 for default behavior) - # and :restful_authentication_sha1 (then you should set stretches to 10, and copy - # REST_AUTH_SITE_KEY to pepper). - # - # Require the `devise-encryptable` gem when using anything other than bcrypt - # config.encryptor = :sha512 - - # ==> Scopes configuration - # Turn scoped views on. Before rendering "sessions/new", it will first check for - # "users/sessions/new". It's turned off by default because it's slower if you - # are using only default views. - # config.scoped_views = false - - # Configure the default scope given to Warden. By default it's the first - # devise role declared in your routes (usually :user). - # config.default_scope = :user - - # Set this configuration to false if you want /users/sign_out to sign out - # only the current scope. By default, Devise signs out all scopes. - # config.sign_out_all_scopes = true - - # ==> Navigation configuration - # Lists the formats that should be treated as navigational. Formats like - # :html, should redirect to the sign in page when the user does not have - # access, but formats like :xml or :json, should return 401. - # - # If you have any extra navigational formats, like :iphone or :mobile, you - # should add them to the navigational formats lists. - # - # The "*/*" below is required to match Internet Explorer requests. - # config.navigational_formats = ['*/*', :html] - - # The default HTTP method used to sign out a resource. Default is :delete. - config.sign_out_via = :delete - - # ==> OmniAuth - # Add a new OmniAuth provider. Check the wiki for more information on setting - # up on your models and hooks. - # config.omniauth :github, 'APP_ID', 'APP_SECRET', :scope => 'user,public_repo' - - # ==> Warden configuration - # If you want to use other strategies, that are not supported by Devise, or - # change the failure app, you can configure them inside the config.warden block. - # - # config.warden do |manager| - # manager.intercept_401 = false - # manager.default_strategies(:scope => :user).unshift :some_external_strategy - # end - - # ==> Mountable engine configurations - # When using Devise inside an engine, let's call it `MyEngine`, and this engine - # is mountable, there are some extra configurations to be taken into account. - # The following options are available, assuming the engine is mounted as: - # - # mount MyEngine, at: '/my_engine' - # - # The router that invoked `devise_for`, in the example above, would be: - # config.router_name = :my_engine - # - # When using omniauth, Devise cannot automatically set Omniauth path, - # so you need to do it manually. For the users scope, it would be: - # config.omniauth_path_prefix = '/my_engine/users/auth' -end diff --git a/spec/rails_5.0_app/config/initializers/filter_parameter_logging.rb b/spec/rails_5.0_app/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/spec/rails_5.0_app/config/initializers/filter_parameter_logging.rb +++ /dev/null @@ -1,4 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Configure sensitive parameters which will be filtered from the log file. -Rails.application.config.filter_parameters += [:password] diff --git a/spec/rails_5.0_app/config/initializers/inflections.rb b/spec/rails_5.0_app/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/spec/rails_5.0_app/config/initializers/inflections.rb +++ /dev/null @@ -1,16 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Add new inflection rules using the following format. Inflections -# are locale specific, and you may define rules for as many different -# locales as you wish. All of these examples are active by default: -# ActiveSupport::Inflector.inflections(:en) do |inflect| -# inflect.plural /^(ox)$/i, '\1en' -# inflect.singular /^(ox)en/i, '\1' -# inflect.irregular 'person', 'people' -# inflect.uncountable %w( fish sheep ) -# end - -# These inflection rules are supported but not enabled by default: -# ActiveSupport::Inflector.inflections(:en) do |inflect| -# inflect.acronym 'RESTful' -# end diff --git a/spec/rails_5.0_app/config/initializers/mime_types.rb b/spec/rails_5.0_app/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/spec/rails_5.0_app/config/initializers/mime_types.rb +++ /dev/null @@ -1,4 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Add new mime types for use in respond_to blocks: -# Mime::Type.register "text/richtext", :rtf diff --git a/spec/rails_5.0_app/config/initializers/session_store.rb b/spec/rails_5.0_app/config/initializers/session_store.rb deleted file mode 100644 index bf3a367..0000000 --- a/spec/rails_5.0_app/config/initializers/session_store.rb +++ /dev/null @@ -1 +0,0 @@ -Rails.application.config.session_store :mongoid_store diff --git a/spec/rails_5.0_app/config/initializers/wrap_parameters.rb b/spec/rails_5.0_app/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/spec/rails_5.0_app/config/initializers/wrap_parameters.rb +++ /dev/null @@ -1,14 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# This file contains settings for ActionController::ParamsWrapper which -# is enabled by default. - -# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. -ActiveSupport.on_load(:action_controller) do - wrap_parameters format: [:json] if respond_to?(:wrap_parameters) -end - -# To enable root element in JSON for ActiveRecord objects. -# ActiveSupport.on_load(:active_record) do -# self.include_root_in_json = true -# end diff --git a/spec/rails_5.0_app/config/locales/en.yml b/spec/rails_5.0_app/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/spec/rails_5.0_app/config/locales/en.yml +++ /dev/null @@ -1,23 +0,0 @@ -# Files in the config/locales directory are used for internationalization -# and are automatically loaded by Rails. If you want to use locales other -# than English, add the necessary files in this directory. -# -# To use the locales, use `I18n.t`: -# -# I18n.t 'hello' -# -# In views, this is aliased to just `t`: -# -# <%= t('hello') %> -# -# To use a different locale, set it with `I18n.locale`: -# -# I18n.locale = :es -# -# This would use the information in config/locales/es.yml. -# -# To learn more, please read the Rails Internationalization guide -# available at http://guides.rubyonrails.org/i18n.html. - -en: - hello: "Hello world" diff --git a/spec/rails_5.0_app/config/mongoid.yml b/spec/rails_5.0_app/config/mongoid.yml deleted file mode 100644 index d46153f..0000000 --- a/spec/rails_5.0_app/config/mongoid.yml +++ /dev/null @@ -1,13 +0,0 @@ -development: - clients: - default: - database: rails50_app_development - hosts: - - 127.0.0.1:27017 - -test: - clients: - default: - database: rails50_app_test - hosts: - - 127.0.0.1:27017 diff --git a/spec/rails_5.0_app/config/routes.rb b/spec/rails_5.0_app/config/routes.rb deleted file mode 100644 index 92cbd65..0000000 --- a/spec/rails_5.0_app/config/routes.rb +++ /dev/null @@ -1,4 +0,0 @@ -Rails.application.routes.draw do - devise_for :users - root :to => "home#index" -end diff --git a/spec/rails_5.0_app/config/secrets.yml b/spec/rails_5.0_app/config/secrets.yml deleted file mode 100644 index 438056c..0000000 --- a/spec/rails_5.0_app/config/secrets.yml +++ /dev/null @@ -1,22 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Your secret key is used for verifying the integrity of signed cookies. -# If you change this key, all old signed cookies will become invalid! - -# Make sure the secret is at least 30 characters and all random, -# no regular words or you'll be exposed to dictionary attacks. -# You can use `rake secret` to generate a secure secret key. - -# Make sure the secrets in this file are kept private -# if you're sharing your code publicly. - -development: - secret_key_base: f572c56330979d77b1f486dfc2cc38990a79eade97da6680e956c0b57967abc3b87759491959283d95f8377a56d30401f8ddac4575c5e1148150a16f09be7c1d - -test: - secret_key_base: cc274453aa400d96444af8c114d32dada6359a8703c7e390e84149f007e1d16aee99b9a6de1a294db718a57317baa54bd57a0bca424bc30d8d15b521c2ccec5d - -# Do not keep production secrets in the repository, -# instead read values from the environment. -production: - secret_key_base: <%= ENV["SECRET_KEY_BASE"] %> diff --git a/spec/rails_5.0_app/db/seeds.rb b/spec/rails_5.0_app/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/spec/rails_5.0_app/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/spec/rails_5.0_app/lib/assets/.keep b/spec/rails_5.0_app/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/spec/rails_5.0_app/lib/tasks/.keep b/spec/rails_5.0_app/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/spec/rails_5.0_app/log/.keep b/spec/rails_5.0_app/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/spec/rails_5.0_app/public/404.html b/spec/rails_5.0_app/public/404.html deleted file mode 100644 index b612547..0000000 --- a/spec/rails_5.0_app/public/404.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - The page you were looking for doesn't exist (404) - - - - - - -
-
-

The page you were looking for doesn't exist.

-

You may have mistyped the address or the page may have moved.

-
-

If you are the application owner check the logs for more information.

-
- - diff --git a/spec/rails_5.0_app/public/422.html b/spec/rails_5.0_app/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/spec/rails_5.0_app/public/422.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - The change you wanted was rejected (422) - - - - - - -
-
-

The change you wanted was rejected.

-

Maybe you tried to change something you didn't have access to.

-
-

If you are the application owner check the logs for more information.

-
- - diff --git a/spec/rails_5.0_app/public/500.html b/spec/rails_5.0_app/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/spec/rails_5.0_app/public/500.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - We're sorry, but something went wrong (500) - - - - - - -
-
-

We're sorry, but something went wrong.

-
-

If you are the application owner check the logs for more information.

-
- - diff --git a/spec/rails_5.0_app/public/favicon.ico b/spec/rails_5.0_app/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/spec/rails_5.0_app/public/robots.txt b/spec/rails_5.0_app/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/spec/rails_5.0_app/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: /