Update rails to version 4.1.0
This commit is contained in:
parent
8dd6863ed5
commit
0cabaea043
6
Gemfile
6
Gemfile
|
@ -1,7 +1,7 @@
|
||||||
source 'https://rubygems.org'
|
source 'https://rubygems.org'
|
||||||
ruby '2.1.1'
|
ruby '2.1.1'
|
||||||
|
|
||||||
gem 'rails', '~> 4.0.4'
|
gem 'rails', '~> 4.1.0'
|
||||||
|
|
||||||
gem 'arel'
|
gem 'arel'
|
||||||
gem 'devise'
|
gem 'devise'
|
||||||
|
@ -23,6 +23,10 @@ group :assets do
|
||||||
gem 'uglifier'
|
gem 'uglifier'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
group :development do
|
||||||
|
gem 'spring'
|
||||||
|
end
|
||||||
|
|
||||||
group :development, :test do
|
group :development, :test do
|
||||||
gem 'pry'
|
gem 'pry'
|
||||||
end
|
end
|
||||||
|
|
75
Gemfile.lock
75
Gemfile.lock
|
@ -1,35 +1,37 @@
|
||||||
GEM
|
GEM
|
||||||
remote: https://rubygems.org/
|
remote: https://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
actionmailer (4.0.4)
|
actionmailer (4.1.0)
|
||||||
actionpack (= 4.0.4)
|
actionpack (= 4.1.0)
|
||||||
|
actionview (= 4.1.0)
|
||||||
mail (~> 2.5.4)
|
mail (~> 2.5.4)
|
||||||
actionpack (4.0.4)
|
actionpack (4.1.0)
|
||||||
activesupport (= 4.0.4)
|
actionview (= 4.1.0)
|
||||||
builder (~> 3.1.0)
|
activesupport (= 4.1.0)
|
||||||
erubis (~> 2.7.0)
|
|
||||||
rack (~> 1.5.2)
|
rack (~> 1.5.2)
|
||||||
rack-test (~> 0.6.2)
|
rack-test (~> 0.6.2)
|
||||||
activemodel (4.0.4)
|
actionview (4.1.0)
|
||||||
activesupport (= 4.0.4)
|
activesupport (= 4.1.0)
|
||||||
builder (~> 3.1.0)
|
builder (~> 3.1)
|
||||||
activerecord (4.0.4)
|
erubis (~> 2.7.0)
|
||||||
activemodel (= 4.0.4)
|
activemodel (4.1.0)
|
||||||
activerecord-deprecated_finders (~> 1.0.2)
|
activesupport (= 4.1.0)
|
||||||
activesupport (= 4.0.4)
|
builder (~> 3.1)
|
||||||
arel (~> 4.0.0)
|
activerecord (4.1.0)
|
||||||
activerecord-deprecated_finders (1.0.3)
|
activemodel (= 4.1.0)
|
||||||
activesupport (4.0.4)
|
activesupport (= 4.1.0)
|
||||||
|
arel (~> 5.0.0)
|
||||||
|
activesupport (4.1.0)
|
||||||
i18n (~> 0.6, >= 0.6.9)
|
i18n (~> 0.6, >= 0.6.9)
|
||||||
minitest (~> 4.2)
|
json (~> 1.7, >= 1.7.7)
|
||||||
multi_json (~> 1.3)
|
minitest (~> 5.1)
|
||||||
thread_safe (~> 0.1)
|
thread_safe (~> 0.1)
|
||||||
tzinfo (~> 0.3.37)
|
tzinfo (~> 1.1)
|
||||||
addressable (2.3.6)
|
addressable (2.3.6)
|
||||||
arel (4.0.2)
|
arel (5.0.0)
|
||||||
ast (1.1.0)
|
ast (1.1.0)
|
||||||
bcrypt (3.1.7)
|
bcrypt (3.1.7)
|
||||||
builder (3.1.4)
|
builder (3.2.2)
|
||||||
coderay (1.1.0)
|
coderay (1.1.0)
|
||||||
coffee-rails (4.0.1)
|
coffee-rails (4.0.1)
|
||||||
coffee-script (>= 2.2.0)
|
coffee-script (>= 2.2.0)
|
||||||
|
@ -80,7 +82,7 @@ GEM
|
||||||
method_source (0.8.2)
|
method_source (0.8.2)
|
||||||
mime-types (1.25.1)
|
mime-types (1.25.1)
|
||||||
mini_portile (0.5.3)
|
mini_portile (0.5.3)
|
||||||
minitest (4.7.5)
|
minitest (5.3.2)
|
||||||
multi_json (1.9.2)
|
multi_json (1.9.2)
|
||||||
nested_form (0.3.2)
|
nested_form (0.3.2)
|
||||||
nokogiri (1.6.1)
|
nokogiri (1.6.1)
|
||||||
|
@ -104,14 +106,16 @@ GEM
|
||||||
rack (~> 1.3)
|
rack (~> 1.3)
|
||||||
rack-test (0.6.2)
|
rack-test (0.6.2)
|
||||||
rack (>= 1.0)
|
rack (>= 1.0)
|
||||||
rails (4.0.4)
|
rails (4.1.0)
|
||||||
actionmailer (= 4.0.4)
|
actionmailer (= 4.1.0)
|
||||||
actionpack (= 4.0.4)
|
actionpack (= 4.1.0)
|
||||||
activerecord (= 4.0.4)
|
actionview (= 4.1.0)
|
||||||
activesupport (= 4.0.4)
|
activemodel (= 4.1.0)
|
||||||
|
activerecord (= 4.1.0)
|
||||||
|
activesupport (= 4.1.0)
|
||||||
bundler (>= 1.3.0, < 2.0)
|
bundler (>= 1.3.0, < 2.0)
|
||||||
railties (= 4.0.4)
|
railties (= 4.1.0)
|
||||||
sprockets-rails (~> 2.0.0)
|
sprockets-rails (~> 2.0)
|
||||||
rails_12factor (0.0.2)
|
rails_12factor (0.0.2)
|
||||||
rails_serve_static_assets
|
rails_serve_static_assets
|
||||||
rails_stdout_logging
|
rails_stdout_logging
|
||||||
|
@ -131,9 +135,9 @@ GEM
|
||||||
sass-rails (~> 4.0)
|
sass-rails (~> 4.0)
|
||||||
rails_serve_static_assets (0.0.2)
|
rails_serve_static_assets (0.0.2)
|
||||||
rails_stdout_logging (0.0.3)
|
rails_stdout_logging (0.0.3)
|
||||||
railties (4.0.4)
|
railties (4.1.0)
|
||||||
actionpack (= 4.0.4)
|
actionpack (= 4.1.0)
|
||||||
activesupport (= 4.0.4)
|
activesupport (= 4.1.0)
|
||||||
rake (>= 0.8.7)
|
rake (>= 0.8.7)
|
||||||
thor (>= 0.18.1, < 2.0)
|
thor (>= 0.18.1, < 2.0)
|
||||||
rainbow (2.0.0)
|
rainbow (2.0.0)
|
||||||
|
@ -160,6 +164,7 @@ GEM
|
||||||
simplecov-html (~> 0.8.0)
|
simplecov-html (~> 0.8.0)
|
||||||
simplecov-html (0.8.0)
|
simplecov-html (0.8.0)
|
||||||
slop (3.5.0)
|
slop (3.5.0)
|
||||||
|
spring (1.1.2)
|
||||||
sprockets (2.11.0)
|
sprockets (2.11.0)
|
||||||
hike (~> 1.2)
|
hike (~> 1.2)
|
||||||
multi_json (~> 1.0)
|
multi_json (~> 1.0)
|
||||||
|
@ -179,7 +184,8 @@ GEM
|
||||||
treetop (1.4.15)
|
treetop (1.4.15)
|
||||||
polyglot
|
polyglot
|
||||||
polyglot (>= 0.3.1)
|
polyglot (>= 0.3.1)
|
||||||
tzinfo (0.3.39)
|
tzinfo (1.1.0)
|
||||||
|
thread_safe (~> 0.1)
|
||||||
uglifier (2.5.0)
|
uglifier (2.5.0)
|
||||||
execjs (>= 0.3.0)
|
execjs (>= 0.3.0)
|
||||||
json (>= 1.8.0)
|
json (>= 1.8.0)
|
||||||
|
@ -206,12 +212,13 @@ DEPENDENCIES
|
||||||
pg
|
pg
|
||||||
pry
|
pry
|
||||||
puma
|
puma
|
||||||
rails (~> 4.0.4)
|
rails (~> 4.1.0)
|
||||||
rails_12factor
|
rails_12factor
|
||||||
rails_admin
|
rails_admin
|
||||||
rubocop
|
rubocop
|
||||||
sass-rails
|
sass-rails
|
||||||
simplecov
|
simplecov
|
||||||
|
spring
|
||||||
sqlite3
|
sqlite3
|
||||||
uglifier
|
uglifier
|
||||||
validates_formatting_of
|
validates_formatting_of
|
||||||
|
|
2
Rakefile
2
Rakefile
|
@ -3,4 +3,4 @@
|
||||||
|
|
||||||
require File.expand_path('../config/application', __FILE__)
|
require File.expand_path('../config/application', __FILE__)
|
||||||
|
|
||||||
AdoptAThing::Application.load_tasks
|
Rails.application.load_tasks
|
||||||
|
|
|
@ -5,8 +5,10 @@
|
||||||
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
||||||
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
* or vendor/assets/stylesheets of plugins, if any, 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 top of the
|
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
||||||
* compiled file, but it's generally better to create a new file per style scope.
|
* 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_self
|
*= require_self
|
||||||
*= require_tree .
|
*= require_tree .
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
|
begin
|
||||||
|
load File.expand_path("../spring", __FILE__)
|
||||||
|
rescue LoadError
|
||||||
|
end
|
||||||
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
||||||
require_relative '../config/boot'
|
require_relative '../config/boot'
|
||||||
require 'rails/commands'
|
require 'rails/commands'
|
||||||
|
|
4
bin/rake
4
bin/rake
|
@ -1,4 +1,8 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
|
begin
|
||||||
|
load File.expand_path("../spring", __FILE__)
|
||||||
|
rescue LoadError
|
||||||
|
end
|
||||||
require_relative '../config/boot'
|
require_relative '../config/boot'
|
||||||
require 'rake'
|
require 'rake'
|
||||||
Rake.application.run
|
Rake.application.run
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
#!/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)
|
||||||
|
ENV["GEM_PATH"] = ([Bundler.bundle_path.to_s] + Gem.path).join(File::PATH_SEPARATOR)
|
||||||
|
ENV["GEM_HOME"] = ""
|
||||||
|
Gem.paths = ENV
|
||||||
|
|
||||||
|
gem "spring", match[1]
|
||||||
|
require "spring/binstub"
|
||||||
|
end
|
||||||
|
end
|
|
@ -4,7 +4,7 @@ require 'rails/all'
|
||||||
|
|
||||||
# Require the gems listed in Gemfile, including any gems
|
# Require the gems listed in Gemfile, including any gems
|
||||||
# you've limited to :test, :development, or :production.
|
# you've limited to :test, :development, or :production.
|
||||||
Bundler.require(:default, Rails.env)
|
Bundler.require(*Rails.groups)
|
||||||
|
|
||||||
module AdoptAThing
|
module AdoptAThing
|
||||||
class Application < Rails::Application
|
class Application < Rails::Application
|
||||||
|
|
|
@ -2,4 +2,4 @@
|
||||||
require File.expand_path('../application', __FILE__)
|
require File.expand_path('../application', __FILE__)
|
||||||
|
|
||||||
# Initialize the Rails application.
|
# Initialize the Rails application.
|
||||||
AdoptAThing::Application.initialize!
|
Rails.application.initialize!
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
AdoptAThing::Application.configure do
|
Rails.application.configure do
|
||||||
# Settings specified here will take precedence over those in config/application.rb.
|
# Settings specified here will take precedence over those in config/application.rb.
|
||||||
|
|
||||||
# In the development environment your application's code is reloaded on
|
# In the development environment your application's code is reloaded on
|
||||||
|
@ -20,11 +20,19 @@ AdoptAThing::Application.configure do
|
||||||
# Print deprecation notices to the Rails logger.
|
# Print deprecation notices to the Rails logger.
|
||||||
config.active_support.deprecation = :log
|
config.active_support.deprecation = :log
|
||||||
|
|
||||||
# Raise an error on page load if there are pending migrations
|
# Raise an error on page load if there are pending migrations.
|
||||||
config.active_record.migration_error = :page_load
|
config.active_record.migration_error = :page_load
|
||||||
|
|
||||||
# Debug mode disables concatenation and preprocessing of assets.
|
# Debug mode disables concatenation and preprocessing of assets.
|
||||||
# This option may cause significant delays in view rendering with a large
|
# This option may cause significant delays in view rendering with a large
|
||||||
# number of complex assets.
|
# number of complex assets.
|
||||||
config.assets.debug = true
|
config.assets.debug = 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
|
end
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
AdoptAThing::Application.configure do
|
Rails.application.configure do
|
||||||
# Settings specified here will take precedence over those in config/application.rb.
|
# Settings specified here will take precedence over those in config/application.rb.
|
||||||
|
|
||||||
# Code is not reloaded between requests.
|
# Code is not reloaded between requests.
|
||||||
config.cache_classes = true
|
config.cache_classes = true
|
||||||
|
|
||||||
# Eager load code on boot. This eager loads most of Rails and
|
# Eager load code on boot. This eager loads most of Rails and
|
||||||
# your application in memory, allowing both thread web servers
|
# your application in memory, allowing both threaded web servers
|
||||||
# and those relying on copy on write to perform better.
|
# and those relying on copy on write to perform better.
|
||||||
# Rake tasks automatically ignore this option for performance.
|
# Rake tasks automatically ignore this option for performance.
|
||||||
config.eager_load = true
|
config.eager_load = true
|
||||||
|
@ -68,7 +68,7 @@ AdoptAThing::Application.configure do
|
||||||
config.action_mailer.default_url_options = {host: 'adoptahydrant.org'}
|
config.action_mailer.default_url_options = {host: 'adoptahydrant.org'}
|
||||||
|
|
||||||
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
||||||
# the I18n.default_locale when a translation can not be found).
|
# the I18n.default_locale when a translation cannot be found).
|
||||||
config.i18n.fallbacks = true
|
config.i18n.fallbacks = true
|
||||||
|
|
||||||
# Send deprecation notices to registered listeners.
|
# Send deprecation notices to registered listeners.
|
||||||
|
@ -79,6 +79,9 @@ AdoptAThing::Application.configure do
|
||||||
|
|
||||||
# Use default logging formatter so that PID and timestamp are not suppressed.
|
# Use default logging formatter so that PID and timestamp are not suppressed.
|
||||||
config.log_formatter = ::Logger::Formatter.new
|
config.log_formatter = ::Logger::Formatter.new
|
||||||
|
|
||||||
|
# Do not dump schema after migrations.
|
||||||
|
config.active_record.dump_schema_after_migration = false
|
||||||
end
|
end
|
||||||
|
|
||||||
ActionMailer::Base.smtp_settings = {
|
ActionMailer::Base.smtp_settings = {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
AdoptAThing::Application.configure do
|
Rails.application.configure do
|
||||||
# Settings specified here will take precedence over those in config/application.rb.
|
# Settings specified here will take precedence over those in config/application.rb.
|
||||||
|
|
||||||
# The test environment is used exclusively to run your application's
|
# The test environment is used exclusively to run your application's
|
||||||
|
@ -34,4 +34,7 @@ AdoptAThing::Application.configure do
|
||||||
|
|
||||||
# Print deprecation notices to the stderr.
|
# Print deprecation notices to the stderr.
|
||||||
config.active_support.deprecation = :stderr
|
config.active_support.deprecation = :stderr
|
||||||
|
|
||||||
|
# Raises error for missing translations
|
||||||
|
# config.action_view.raise_on_missing_translations = true
|
||||||
end
|
end
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
# Be sure to restart your server when you modify this file.
|
||||||
|
|
||||||
|
Rails.application.config.action_dispatch.cookies_serializer = :json
|
|
@ -2,4 +2,3 @@
|
||||||
|
|
||||||
# Add new mime types for use in respond_to blocks:
|
# Add new mime types for use in respond_to blocks:
|
||||||
# Mime::Type.register "text/richtext", :rtf
|
# Mime::Type.register "text/richtext", :rtf
|
||||||
# Mime::Type.register_alias "text/html", :iphone
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# Be sure to restart your server when you modify this file.
|
# Be sure to restart your server when you modify this file.
|
||||||
|
|
||||||
AdoptAThing::Application.config.session_store :cookie_store, key: '_adopt-a-thing_session'
|
Rails.application.config.session_store :cookie_store, key: '_adopt-a-hydrant_session'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
AdoptAThing::Application.routes.draw do
|
Rails.application.routes.draw do
|
||||||
devise_for :users, controllers: {
|
devise_for :users, controllers: {
|
||||||
passwords: 'passwords',
|
passwords: 'passwords',
|
||||||
registrations: 'users',
|
registrations: 'users',
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
# 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: 0e16faa4e63cf660f77d2b01b3eea1cf05d92cc2550dd5c6bcdd6c428cacd9ed82cf420376130716e8ce890490cfdb9d30241f12d0043ef1c2356e0ee22c031b
|
||||||
|
|
||||||
|
test:
|
||||||
|
secret_key_base: de935ed2ec52cc94165a0542fd3fc2aefc5eb56557b31d6333adb15fe413a2ae89b02ffd402b7fc2279dcd9fbcb45f6c4c764937665f0c61abbbf2bf5c70e967
|
||||||
|
|
||||||
|
# Do not keep production secrets in the repository,
|
||||||
|
# instead read values from the environment.
|
||||||
|
production:
|
||||||
|
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
|
@ -2,17 +2,23 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>The page you were looking for doesn't exist (404)</title>
|
<title>The page you were looking for doesn't exist (404)</title>
|
||||||
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
background-color: #EFEFEF;
|
background-color: #EFEFEF;
|
||||||
color: #2E2F30;
|
color: #2E2F30;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-family: arial, sans-serif;
|
font-family: arial, sans-serif;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.dialog {
|
div.dialog {
|
||||||
width: 25em;
|
width: 95%;
|
||||||
margin: 4em auto 0 auto;
|
max-width: 33em;
|
||||||
|
margin: 4em auto 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.dialog > div {
|
||||||
border: 1px solid #CCC;
|
border: 1px solid #CCC;
|
||||||
border-right-color: #999;
|
border-right-color: #999;
|
||||||
border-left-color: #999;
|
border-left-color: #999;
|
||||||
|
@ -21,7 +27,8 @@
|
||||||
border-top-left-radius: 9px;
|
border-top-left-radius: 9px;
|
||||||
border-top-right-radius: 9px;
|
border-top-right-radius: 9px;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
padding: 7px 4em 0 4em;
|
padding: 7px 12% 0;
|
||||||
|
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
|
@ -30,19 +37,19 @@
|
||||||
line-height: 1.5em;
|
line-height: 1.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
body > p {
|
div.dialog > p {
|
||||||
width: 33em;
|
margin: 0 0 1em;
|
||||||
margin: 0 auto 1em;
|
padding: 1em;
|
||||||
padding: 1em 0;
|
|
||||||
background-color: #F7F7F7;
|
background-color: #F7F7F7;
|
||||||
border: 1px solid #CCC;
|
border: 1px solid #CCC;
|
||||||
border-right-color: #999;
|
border-right-color: #999;
|
||||||
|
border-left-color: #999;
|
||||||
border-bottom-color: #999;
|
border-bottom-color: #999;
|
||||||
border-bottom-left-radius: 4px;
|
border-bottom-left-radius: 4px;
|
||||||
border-bottom-right-radius: 4px;
|
border-bottom-right-radius: 4px;
|
||||||
border-top-color: #DADADA;
|
border-top-color: #DADADA;
|
||||||
color: #666;
|
color: #666;
|
||||||
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
@ -50,9 +57,11 @@
|
||||||
<body>
|
<body>
|
||||||
<!-- This file lives in public/404.html -->
|
<!-- This file lives in public/404.html -->
|
||||||
<div class="dialog">
|
<div class="dialog">
|
||||||
<h1>The page you were looking for doesn't exist.</h1>
|
<div>
|
||||||
<p>You may have mistyped the address or the page may have moved.</p>
|
<h1>The page you were looking for doesn't exist.</h1>
|
||||||
|
<p>You may have mistyped the address or the page may have moved.</p>
|
||||||
|
</div>
|
||||||
|
<p>If you are the application owner check the logs for more information.</p>
|
||||||
</div>
|
</div>
|
||||||
<p>If you are the application owner check the logs for more information.</p>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -2,17 +2,23 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>The change you wanted was rejected (422)</title>
|
<title>The change you wanted was rejected (422)</title>
|
||||||
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
background-color: #EFEFEF;
|
background-color: #EFEFEF;
|
||||||
color: #2E2F30;
|
color: #2E2F30;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-family: arial, sans-serif;
|
font-family: arial, sans-serif;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.dialog {
|
div.dialog {
|
||||||
width: 25em;
|
width: 95%;
|
||||||
margin: 4em auto 0 auto;
|
max-width: 33em;
|
||||||
|
margin: 4em auto 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.dialog > div {
|
||||||
border: 1px solid #CCC;
|
border: 1px solid #CCC;
|
||||||
border-right-color: #999;
|
border-right-color: #999;
|
||||||
border-left-color: #999;
|
border-left-color: #999;
|
||||||
|
@ -21,7 +27,8 @@
|
||||||
border-top-left-radius: 9px;
|
border-top-left-radius: 9px;
|
||||||
border-top-right-radius: 9px;
|
border-top-right-radius: 9px;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
padding: 7px 4em 0 4em;
|
padding: 7px 12% 0;
|
||||||
|
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
|
@ -30,19 +37,19 @@
|
||||||
line-height: 1.5em;
|
line-height: 1.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
body > p {
|
div.dialog > p {
|
||||||
width: 33em;
|
margin: 0 0 1em;
|
||||||
margin: 0 auto 1em;
|
padding: 1em;
|
||||||
padding: 1em 0;
|
|
||||||
background-color: #F7F7F7;
|
background-color: #F7F7F7;
|
||||||
border: 1px solid #CCC;
|
border: 1px solid #CCC;
|
||||||
border-right-color: #999;
|
border-right-color: #999;
|
||||||
|
border-left-color: #999;
|
||||||
border-bottom-color: #999;
|
border-bottom-color: #999;
|
||||||
border-bottom-left-radius: 4px;
|
border-bottom-left-radius: 4px;
|
||||||
border-bottom-right-radius: 4px;
|
border-bottom-right-radius: 4px;
|
||||||
border-top-color: #DADADA;
|
border-top-color: #DADADA;
|
||||||
color: #666;
|
color: #666;
|
||||||
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
@ -50,9 +57,11 @@
|
||||||
<body>
|
<body>
|
||||||
<!-- This file lives in public/422.html -->
|
<!-- This file lives in public/422.html -->
|
||||||
<div class="dialog">
|
<div class="dialog">
|
||||||
<h1>The change you wanted was rejected.</h1>
|
<div>
|
||||||
<p>Maybe you tried to change something you didn't have access to.</p>
|
<h1>The change you wanted was rejected.</h1>
|
||||||
|
<p>Maybe you tried to change something you didn't have access to.</p>
|
||||||
|
</div>
|
||||||
|
<p>If you are the application owner check the logs for more information.</p>
|
||||||
</div>
|
</div>
|
||||||
<p>If you are the application owner check the logs for more information.</p>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -2,17 +2,23 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>We're sorry, but something went wrong (500)</title>
|
<title>We're sorry, but something went wrong (500)</title>
|
||||||
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
background-color: #EFEFEF;
|
background-color: #EFEFEF;
|
||||||
color: #2E2F30;
|
color: #2E2F30;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-family: arial, sans-serif;
|
font-family: arial, sans-serif;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.dialog {
|
div.dialog {
|
||||||
width: 25em;
|
width: 95%;
|
||||||
margin: 4em auto 0 auto;
|
max-width: 33em;
|
||||||
|
margin: 4em auto 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.dialog > div {
|
||||||
border: 1px solid #CCC;
|
border: 1px solid #CCC;
|
||||||
border-right-color: #999;
|
border-right-color: #999;
|
||||||
border-left-color: #999;
|
border-left-color: #999;
|
||||||
|
@ -21,7 +27,8 @@
|
||||||
border-top-left-radius: 9px;
|
border-top-left-radius: 9px;
|
||||||
border-top-right-radius: 9px;
|
border-top-right-radius: 9px;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
padding: 7px 4em 0 4em;
|
padding: 7px 12% 0;
|
||||||
|
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
|
@ -30,19 +37,19 @@
|
||||||
line-height: 1.5em;
|
line-height: 1.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
body > p {
|
div.dialog > p {
|
||||||
width: 33em;
|
margin: 0 0 1em;
|
||||||
margin: 0 auto 1em;
|
padding: 1em;
|
||||||
padding: 1em 0;
|
|
||||||
background-color: #F7F7F7;
|
background-color: #F7F7F7;
|
||||||
border: 1px solid #CCC;
|
border: 1px solid #CCC;
|
||||||
border-right-color: #999;
|
border-right-color: #999;
|
||||||
|
border-left-color: #999;
|
||||||
border-bottom-color: #999;
|
border-bottom-color: #999;
|
||||||
border-bottom-left-radius: 4px;
|
border-bottom-left-radius: 4px;
|
||||||
border-bottom-right-radius: 4px;
|
border-bottom-right-radius: 4px;
|
||||||
border-top-color: #DADADA;
|
border-top-color: #DADADA;
|
||||||
color: #666;
|
color: #666;
|
||||||
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
@ -50,8 +57,10 @@
|
||||||
<body>
|
<body>
|
||||||
<!-- This file lives in public/500.html -->
|
<!-- This file lives in public/500.html -->
|
||||||
<div class="dialog">
|
<div class="dialog">
|
||||||
<h1>We're sorry, but something went wrong.</h1>
|
<div>
|
||||||
|
<h1>We're sorry, but something went wrong.</h1>
|
||||||
|
</div>
|
||||||
|
<p>If you are the application owner check the logs for more information.</p>
|
||||||
</div>
|
</div>
|
||||||
<p>If you are the application owner check the logs for more information.</p>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
|
# 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:
|
# To ban all spiders from the entire site uncomment the next two lines:
|
||||||
# User-agent: *
|
# User-agent: *
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
ENV['RAILS_ENV'] = 'test'
|
ENV['RAILS_ENV'] ||= 'test'
|
||||||
|
|
||||||
require 'simplecov'
|
require 'simplecov'
|
||||||
require 'coveralls'
|
require 'coveralls'
|
||||||
|
|
Loading…
Reference in New Issue