ruby_badger 4.2.0 → 4.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/Gemfile.lock +116 -107
- data/README.md +2 -6
- data/lib/ruby_badger/version.rb +1 -1
- data/ruby_badger.gemspec +6 -6
- data/spec/dummy/README.rdoc +248 -15
- data/spec/dummy/Rakefile +2 -1
- data/spec/dummy/app/assets/javascripts/application.js +4 -5
- data/spec/dummy/app/assets/stylesheets/application.css +4 -6
- data/spec/dummy/app/controllers/application_controller.rb +1 -3
- data/spec/dummy/app/controllers/public_controller.rb +7 -0
- data/spec/dummy/app/{assets/images/.keep → mailers/.gitkeep} +0 -0
- data/spec/dummy/app/{controllers/concerns/.keep → models/.gitkeep} +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +2 -2
- data/spec/dummy/config/application.rb +39 -4
- data/spec/dummy/config/boot.rb +4 -1
- data/spec/dummy/config/database.yml +8 -8
- data/spec/dummy/config/environment.rb +3 -3
- data/spec/dummy/config/environments/development.rb +18 -22
- data/spec/dummy/config/environments/production.rb +34 -46
- data/spec/dummy/config/environments/test.rb +14 -19
- data/spec/dummy/config/initializers/inflections.rb +5 -6
- data/spec/dummy/config/initializers/mime_types.rb +1 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +6 -1
- data/spec/dummy/config/initializers/wrap_parameters.rb +6 -6
- data/spec/dummy/config/locales/en.yml +2 -20
- data/spec/dummy/config.ru +2 -2
- data/spec/dummy/{app/mailers/.keep → lib/assets/.gitkeep} +0 -0
- data/spec/dummy/{app/models/.keep → log/.gitkeep} +0 -0
- data/spec/dummy/public/404.html +13 -54
- data/spec/dummy/public/422.html +13 -54
- data/spec/dummy/public/500.html +12 -53
- data/spec/dummy/script/rails +6 -0
- metadata +39 -106
- data/spec/dummy/.gitignore +0 -17
- data/spec/dummy/Gemfile +0 -45
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/bin/bundle +0 -3
- data/spec/dummy/bin/rails +0 -4
- data/spec/dummy/bin/rake +0 -4
- data/spec/dummy/bin/setup +0 -29
- data/spec/dummy/config/initializers/assets.rb +0 -11
- data/spec/dummy/config/initializers/cookies_serializer.rb +0 -3
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/dummy/config/secrets.yml +0 -22
- data/spec/dummy/db/seeds.rb +0 -7
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/lib/tasks/.keep +0 -0
- data/spec/dummy/log/.keep +0 -0
- data/spec/dummy/public/robots.txt +0 -5
- data/spec/dummy/test/controllers/.keep +0 -0
- data/spec/dummy/test/fixtures/.keep +0 -0
- data/spec/dummy/test/helpers/.keep +0 -0
- data/spec/dummy/test/integration/.keep +0 -0
- data/spec/dummy/test/mailers/.keep +0 -0
- data/spec/dummy/test/models/.keep +0 -0
- data/spec/dummy/test/test_helper.rb +0 -10
- data/spec/dummy/vendor/assets/javascripts/.keep +0 -0
- data/spec/dummy/vendor/assets/stylesheets/.keep +0 -0
File without changes
|
File without changes
|
@@ -2,8 +2,8 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<title>Dummy</title>
|
5
|
-
<%= stylesheet_link_tag
|
6
|
-
<%= javascript_include_tag
|
5
|
+
<%= stylesheet_link_tag "application", :media => "all" %>
|
6
|
+
<%= javascript_include_tag "application" %>
|
7
7
|
<%= csrf_meta_tags %>
|
8
8
|
</head>
|
9
9
|
<body>
|
@@ -1,17 +1,28 @@
|
|
1
1
|
require File.expand_path('../boot', __FILE__)
|
2
2
|
|
3
|
+
# Pick the frameworks you want:
|
3
4
|
require 'rails/all'
|
4
5
|
|
5
|
-
# Require the gems listed in Gemfile, including any gems
|
6
|
-
# you've limited to :test, :development, or :production.
|
7
6
|
Bundler.require(*Rails.groups)
|
8
7
|
|
8
|
+
require "ruby_badger"
|
9
|
+
|
9
10
|
module Dummy
|
10
11
|
class Application < Rails::Application
|
11
12
|
# Settings in config/environments/* take precedence over those specified here.
|
12
13
|
# Application configuration should go into files in config/initializers
|
13
14
|
# -- all .rb files in that directory are automatically loaded.
|
14
15
|
|
16
|
+
# Custom directories with classes and modules you want to be autoloadable.
|
17
|
+
# config.autoload_paths += %W(#{config.root}/extras)
|
18
|
+
|
19
|
+
# Only load the plugins named here, in the order given (default is alphabetical).
|
20
|
+
# :all can be used as a placeholder for all plugins not explicitly named.
|
21
|
+
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
22
|
+
|
23
|
+
# Activate observers that should always be running.
|
24
|
+
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
25
|
+
|
15
26
|
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
16
27
|
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
17
28
|
# config.time_zone = 'Central Time (US & Canada)'
|
@@ -20,7 +31,31 @@ module Dummy
|
|
20
31
|
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
21
32
|
# config.i18n.default_locale = :de
|
22
33
|
|
23
|
-
#
|
24
|
-
config.
|
34
|
+
# Configure the default encoding used in templates for Ruby 1.9.
|
35
|
+
config.encoding = "utf-8"
|
36
|
+
|
37
|
+
# Configure sensitive parameters which will be filtered from the log file.
|
38
|
+
config.filter_parameters += [:password]
|
39
|
+
|
40
|
+
# Enable escaping HTML in JSON.
|
41
|
+
config.active_support.escape_html_entities_in_json = true
|
42
|
+
|
43
|
+
# Use SQL instead of Active Record's schema dumper when creating the database.
|
44
|
+
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
45
|
+
# like if you have constraints or database-specific column types
|
46
|
+
# config.active_record.schema_format = :sql
|
47
|
+
|
48
|
+
# Enforce whitelist mode for mass assignment.
|
49
|
+
# This will create an empty whitelist of attributes available for mass-assignment for all models
|
50
|
+
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
|
51
|
+
# parameters by using an attr_accessible or attr_protected declaration.
|
52
|
+
config.active_record.whitelist_attributes = true
|
53
|
+
|
54
|
+
# Enable the asset pipeline
|
55
|
+
config.assets.enabled = true
|
56
|
+
|
57
|
+
# Version of your assets, change this if you want to expire all your assets
|
58
|
+
config.assets.version = '1.0'
|
25
59
|
end
|
26
60
|
end
|
61
|
+
|
data/spec/dummy/config/boot.rb
CHANGED
@@ -3,23 +3,23 @@
|
|
3
3
|
#
|
4
4
|
# Ensure the SQLite 3 gem is defined in your Gemfile
|
5
5
|
# gem 'sqlite3'
|
6
|
-
|
7
|
-
default: &default
|
6
|
+
development:
|
8
7
|
adapter: sqlite3
|
8
|
+
database: db/development.sqlite3
|
9
9
|
pool: 5
|
10
10
|
timeout: 5000
|
11
11
|
|
12
|
-
development:
|
13
|
-
<<: *default
|
14
|
-
database: db/development.sqlite3
|
15
|
-
|
16
12
|
# Warning: The database defined as "test" will be erased and
|
17
13
|
# re-generated from your development database when you run "rake".
|
18
14
|
# Do not set this db to the same as development or production.
|
19
15
|
test:
|
20
|
-
|
16
|
+
adapter: sqlite3
|
21
17
|
database: db/test.sqlite3
|
18
|
+
pool: 5
|
19
|
+
timeout: 5000
|
22
20
|
|
23
21
|
production:
|
24
|
-
|
22
|
+
adapter: sqlite3
|
25
23
|
database: db/production.sqlite3
|
24
|
+
pool: 5
|
25
|
+
timeout: 5000
|
@@ -1,41 +1,37 @@
|
|
1
|
-
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
3
3
|
|
4
4
|
# In the development environment your application's code is reloaded on
|
5
5
|
# every request. This slows down response time but is perfect for development
|
6
6
|
# since you don't have to restart the web server when you make code changes.
|
7
7
|
config.cache_classes = false
|
8
8
|
|
9
|
-
#
|
10
|
-
config.
|
9
|
+
# Log error messages when you accidentally call methods on nil.
|
10
|
+
config.whiny_nils = true
|
11
11
|
|
12
|
-
# Show full error reports and disable caching
|
12
|
+
# Show full error reports and disable caching
|
13
13
|
config.consider_all_requests_local = true
|
14
14
|
config.action_controller.perform_caching = false
|
15
15
|
|
16
|
-
# Don't care if the mailer can't send
|
16
|
+
# Don't care if the mailer can't send
|
17
17
|
config.action_mailer.raise_delivery_errors = false
|
18
18
|
|
19
|
-
# Print deprecation notices to the Rails logger
|
19
|
+
# Print deprecation notices to the Rails logger
|
20
20
|
config.active_support.deprecation = :log
|
21
21
|
|
22
|
-
#
|
23
|
-
config.
|
22
|
+
# Only use best-standards-support built into browsers
|
23
|
+
config.action_dispatch.best_standards_support = :builtin
|
24
24
|
|
25
|
-
#
|
26
|
-
|
27
|
-
# number of complex assets.
|
28
|
-
config.assets.debug = true
|
25
|
+
# Raise exception on mass assignment protection for Active Record models
|
26
|
+
config.active_record.mass_assignment_sanitizer = :strict
|
29
27
|
|
30
|
-
#
|
31
|
-
#
|
32
|
-
config.
|
28
|
+
# Log the query plan for queries taking more than this (works
|
29
|
+
# with SQLite, MySQL, and PostgreSQL)
|
30
|
+
config.active_record.auto_explain_threshold_in_seconds = 0.5
|
33
31
|
|
34
|
-
#
|
35
|
-
|
36
|
-
# Raises helpful error messages.
|
37
|
-
config.assets.raise_runtime_errors = true
|
32
|
+
# Do not compress assets
|
33
|
+
config.assets.compress = false
|
38
34
|
|
39
|
-
#
|
40
|
-
|
35
|
+
# Expands the lines which load the assets
|
36
|
+
config.assets.debug = true
|
41
37
|
end
|
@@ -1,79 +1,67 @@
|
|
1
|
-
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
3
3
|
|
4
|
-
# Code is not reloaded between requests
|
4
|
+
# Code is not reloaded between requests
|
5
5
|
config.cache_classes = true
|
6
6
|
|
7
|
-
#
|
8
|
-
# your application in memory, allowing both threaded web servers
|
9
|
-
# and those relying on copy on write to perform better.
|
10
|
-
# Rake tasks automatically ignore this option for performance.
|
11
|
-
config.eager_load = true
|
12
|
-
|
13
|
-
# Full error reports are disabled and caching is turned on.
|
7
|
+
# Full error reports are disabled and caching is turned on
|
14
8
|
config.consider_all_requests_local = false
|
15
9
|
config.action_controller.perform_caching = true
|
16
10
|
|
17
|
-
#
|
18
|
-
|
19
|
-
# For large-scale production use, consider using a caching reverse proxy like
|
20
|
-
# NGINX, varnish or squid.
|
21
|
-
# config.action_dispatch.rack_cache = true
|
22
|
-
|
23
|
-
# Disable serving static files from the `/public` folder by default since
|
24
|
-
# Apache or NGINX already handles this.
|
25
|
-
config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
|
11
|
+
# Disable Rails's static asset server (Apache or nginx will already do this)
|
12
|
+
config.serve_static_assets = false
|
26
13
|
|
27
|
-
# Compress JavaScripts and CSS
|
28
|
-
config.assets.
|
29
|
-
# config.assets.css_compressor = :sass
|
14
|
+
# Compress JavaScripts and CSS
|
15
|
+
config.assets.compress = true
|
30
16
|
|
31
|
-
#
|
17
|
+
# Don't fallback to assets pipeline if a precompiled asset is missed
|
32
18
|
config.assets.compile = false
|
33
19
|
|
34
|
-
#
|
35
|
-
# yet still be able to expire them through the digest params.
|
20
|
+
# Generate digests for assets URLs
|
36
21
|
config.assets.digest = true
|
37
22
|
|
38
|
-
#
|
23
|
+
# Defaults to nil and saved in location specified by config.assets.prefix
|
24
|
+
# config.assets.manifest = YOUR_PATH
|
39
25
|
|
40
|
-
# Specifies the header that your server uses for sending files
|
41
|
-
# config.action_dispatch.x_sendfile_header =
|
42
|
-
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for
|
26
|
+
# Specifies the header that your server uses for sending files
|
27
|
+
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
28
|
+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
43
29
|
|
44
30
|
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
45
31
|
# config.force_ssl = true
|
46
32
|
|
47
|
-
#
|
48
|
-
#
|
49
|
-
config.log_level = :debug
|
33
|
+
# See everything in the log (default is :info)
|
34
|
+
# config.log_level = :debug
|
50
35
|
|
51
|
-
# Prepend all log lines with the following tags
|
36
|
+
# Prepend all log lines with the following tags
|
52
37
|
# config.log_tags = [ :subdomain, :uuid ]
|
53
38
|
|
54
|
-
# Use a different logger for distributed setups
|
39
|
+
# Use a different logger for distributed setups
|
55
40
|
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
56
41
|
|
57
|
-
# Use a different cache store in production
|
42
|
+
# Use a different cache store in production
|
58
43
|
# config.cache_store = :mem_cache_store
|
59
44
|
|
60
|
-
# Enable serving of images, stylesheets, and JavaScripts from an asset server
|
61
|
-
# config.action_controller.asset_host =
|
45
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server
|
46
|
+
# config.action_controller.asset_host = "http://assets.example.com"
|
47
|
+
|
48
|
+
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
|
49
|
+
# config.assets.precompile += %w( search.js )
|
62
50
|
|
63
|
-
#
|
64
|
-
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
51
|
+
# Disable delivery errors, bad email addresses will be ignored
|
65
52
|
# config.action_mailer.raise_delivery_errors = false
|
66
53
|
|
54
|
+
# Enable threaded mode
|
55
|
+
# config.threadsafe!
|
56
|
+
|
67
57
|
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
68
|
-
# the I18n.default_locale when a translation
|
58
|
+
# the I18n.default_locale when a translation can not be found)
|
69
59
|
config.i18n.fallbacks = true
|
70
60
|
|
71
|
-
# Send deprecation notices to registered listeners
|
61
|
+
# Send deprecation notices to registered listeners
|
72
62
|
config.active_support.deprecation = :notify
|
73
63
|
|
74
|
-
#
|
75
|
-
|
76
|
-
|
77
|
-
# Do not dump schema after migrations.
|
78
|
-
config.active_record.dump_schema_after_migration = false
|
64
|
+
# Log the query plan for queries taking more than this (works
|
65
|
+
# with SQLite, MySQL, and PostgreSQL)
|
66
|
+
# config.active_record.auto_explain_threshold_in_seconds = 0.5
|
79
67
|
end
|
@@ -1,5 +1,5 @@
|
|
1
|
-
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
3
3
|
|
4
4
|
# The test environment is used exclusively to run your application's
|
5
5
|
# test suite. You never need to work with it otherwise. Remember that
|
@@ -7,36 +7,31 @@ Rails.application.configure do
|
|
7
7
|
# and recreated between test runs. Don't rely on the data there!
|
8
8
|
config.cache_classes = true
|
9
9
|
|
10
|
-
#
|
11
|
-
|
12
|
-
|
13
|
-
config.eager_load = false
|
10
|
+
# Configure static asset server for tests with Cache-Control for performance
|
11
|
+
config.serve_static_assets = true
|
12
|
+
config.static_cache_control = "public, max-age=3600"
|
14
13
|
|
15
|
-
#
|
16
|
-
config.
|
17
|
-
config.static_cache_control = 'public, max-age=3600'
|
14
|
+
# Log error messages when you accidentally call methods on nil
|
15
|
+
config.whiny_nils = true
|
18
16
|
|
19
|
-
# Show full error reports and disable caching
|
17
|
+
# Show full error reports and disable caching
|
20
18
|
config.consider_all_requests_local = true
|
21
19
|
config.action_controller.perform_caching = false
|
22
20
|
|
23
|
-
# Raise exceptions instead of rendering exception templates
|
21
|
+
# Raise exceptions instead of rendering exception templates
|
24
22
|
config.action_dispatch.show_exceptions = false
|
25
23
|
|
26
|
-
# Disable request forgery protection in test environment
|
27
|
-
config.action_controller.allow_forgery_protection
|
24
|
+
# Disable request forgery protection in test environment
|
25
|
+
config.action_controller.allow_forgery_protection = false
|
28
26
|
|
29
27
|
# Tell Action Mailer not to deliver emails to the real world.
|
30
28
|
# The :test delivery method accumulates sent emails in the
|
31
29
|
# ActionMailer::Base.deliveries array.
|
32
30
|
config.action_mailer.delivery_method = :test
|
33
31
|
|
34
|
-
#
|
35
|
-
config.
|
32
|
+
# Raise exception on mass assignment protection for Active Record models
|
33
|
+
config.active_record.mass_assignment_sanitizer = :strict
|
36
34
|
|
37
|
-
# Print deprecation notices to the stderr
|
35
|
+
# Print deprecation notices to the stderr
|
38
36
|
config.active_support.deprecation = :stderr
|
39
|
-
|
40
|
-
# Raises error for missing translations
|
41
|
-
# config.action_view.raise_on_missing_translations = true
|
42
37
|
end
|
@@ -1,16 +1,15 @@
|
|
1
1
|
# Be sure to restart your server when you modify this file.
|
2
2
|
|
3
|
-
# Add new inflection rules using the following format
|
4
|
-
#
|
5
|
-
#
|
6
|
-
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
3
|
+
# Add new inflection rules using the following format
|
4
|
+
# (all these examples are active by default):
|
5
|
+
# ActiveSupport::Inflector.inflections do |inflect|
|
7
6
|
# inflect.plural /^(ox)$/i, '\1en'
|
8
7
|
# inflect.singular /^(ox)en/i, '\1'
|
9
8
|
# inflect.irregular 'person', 'people'
|
10
9
|
# inflect.uncountable %w( fish sheep )
|
11
10
|
# end
|
12
|
-
|
11
|
+
#
|
13
12
|
# These inflection rules are supported but not enabled by default:
|
14
|
-
# ActiveSupport::Inflector.inflections
|
13
|
+
# ActiveSupport::Inflector.inflections do |inflect|
|
15
14
|
# inflect.acronym 'RESTful'
|
16
15
|
# end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
# Make sure the secret is at least 30 characters and all random,
|
6
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
+
Dummy::Application.config.secret_token = '610b95690072e7a2c0251bf885d70d9b814393b37c28d0bf3ce293e0cf8cc8207774cc044557737c7668c483e3ab050f2a45697030f1dd644fa7fdafdbc68fe0'
|
@@ -1,3 +1,8 @@
|
|
1
1
|
# Be sure to restart your server when you modify this file.
|
2
2
|
|
3
|
-
|
3
|
+
Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
|
4
|
+
|
5
|
+
# Use the database for sessions instead of the cookie-based default,
|
6
|
+
# which shouldn't be used to store highly confidential information
|
7
|
+
# (create the session table with "rails generate session_migration")
|
8
|
+
# Dummy::Application.config.session_store :active_record_store
|
@@ -1,14 +1,14 @@
|
|
1
1
|
# Be sure to restart your server when you modify this file.
|
2
|
-
|
2
|
+
#
|
3
3
|
# This file contains settings for ActionController::ParamsWrapper which
|
4
4
|
# is enabled by default.
|
5
5
|
|
6
6
|
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
7
|
ActiveSupport.on_load(:action_controller) do
|
8
|
-
wrap_parameters format: [:json]
|
8
|
+
wrap_parameters format: [:json]
|
9
9
|
end
|
10
10
|
|
11
|
-
#
|
12
|
-
|
13
|
-
|
14
|
-
|
11
|
+
# Disable root element in JSON by default.
|
12
|
+
ActiveSupport.on_load(:active_record) do
|
13
|
+
self.include_root_in_json = false
|
14
|
+
end
|
@@ -1,23 +1,5 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
# than English, add the necessary files in this directory.
|
4
|
-
#
|
5
|
-
# To use the locales, use `I18n.t`:
|
6
|
-
#
|
7
|
-
# I18n.t 'hello'
|
8
|
-
#
|
9
|
-
# In views, this is aliased to just `t`:
|
10
|
-
#
|
11
|
-
# <%= t('hello') %>
|
12
|
-
#
|
13
|
-
# To use a different locale, set it with `I18n.locale`:
|
14
|
-
#
|
15
|
-
# I18n.locale = :es
|
16
|
-
#
|
17
|
-
# This would use the information in config/locales/es.yml.
|
18
|
-
#
|
19
|
-
# To learn more, please read the Rails Internationalization guide
|
20
|
-
# available at http://guides.rubyonrails.org/i18n.html.
|
1
|
+
# Sample localization file for English. Add more files in this directory for other locales.
|
2
|
+
# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
|
21
3
|
|
22
4
|
en:
|
23
5
|
hello: "Hello world"
|
data/spec/dummy/config.ru
CHANGED
File without changes
|
File without changes
|
data/spec/dummy/public/404.html
CHANGED
@@ -2,66 +2,25 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
-
<
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
width: 95%;
|
17
|
-
max-width: 33em;
|
18
|
-
margin: 4em auto 0;
|
19
|
-
}
|
20
|
-
|
21
|
-
div.dialog > div {
|
22
|
-
border: 1px solid #CCC;
|
23
|
-
border-right-color: #999;
|
24
|
-
border-left-color: #999;
|
25
|
-
border-bottom-color: #BBB;
|
26
|
-
border-top: #B00100 solid 4px;
|
27
|
-
border-top-left-radius: 9px;
|
28
|
-
border-top-right-radius: 9px;
|
29
|
-
background-color: white;
|
30
|
-
padding: 7px 12% 0;
|
31
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
-
}
|
33
|
-
|
34
|
-
h1 {
|
35
|
-
font-size: 100%;
|
36
|
-
color: #730E15;
|
37
|
-
line-height: 1.5em;
|
38
|
-
}
|
39
|
-
|
40
|
-
div.dialog > p {
|
41
|
-
margin: 0 0 1em;
|
42
|
-
padding: 1em;
|
43
|
-
background-color: #F7F7F7;
|
44
|
-
border: 1px solid #CCC;
|
45
|
-
border-right-color: #999;
|
46
|
-
border-left-color: #999;
|
47
|
-
border-bottom-color: #999;
|
48
|
-
border-bottom-left-radius: 4px;
|
49
|
-
border-bottom-right-radius: 4px;
|
50
|
-
border-top-color: #DADADA;
|
51
|
-
color: #666;
|
52
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
-
}
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
54
16
|
</style>
|
55
17
|
</head>
|
56
18
|
|
57
19
|
<body>
|
58
20
|
<!-- This file lives in public/404.html -->
|
59
21
|
<div class="dialog">
|
60
|
-
<
|
61
|
-
|
62
|
-
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
-
</div>
|
64
|
-
<p>If you are the application owner check the logs for more information.</p>
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
65
24
|
</div>
|
66
25
|
</body>
|
67
26
|
</html>
|
data/spec/dummy/public/422.html
CHANGED
@@ -2,66 +2,25 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<title>The change you wanted was rejected (422)</title>
|
5
|
-
<
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
width: 95%;
|
17
|
-
max-width: 33em;
|
18
|
-
margin: 4em auto 0;
|
19
|
-
}
|
20
|
-
|
21
|
-
div.dialog > div {
|
22
|
-
border: 1px solid #CCC;
|
23
|
-
border-right-color: #999;
|
24
|
-
border-left-color: #999;
|
25
|
-
border-bottom-color: #BBB;
|
26
|
-
border-top: #B00100 solid 4px;
|
27
|
-
border-top-left-radius: 9px;
|
28
|
-
border-top-right-radius: 9px;
|
29
|
-
background-color: white;
|
30
|
-
padding: 7px 12% 0;
|
31
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
-
}
|
33
|
-
|
34
|
-
h1 {
|
35
|
-
font-size: 100%;
|
36
|
-
color: #730E15;
|
37
|
-
line-height: 1.5em;
|
38
|
-
}
|
39
|
-
|
40
|
-
div.dialog > p {
|
41
|
-
margin: 0 0 1em;
|
42
|
-
padding: 1em;
|
43
|
-
background-color: #F7F7F7;
|
44
|
-
border: 1px solid #CCC;
|
45
|
-
border-right-color: #999;
|
46
|
-
border-left-color: #999;
|
47
|
-
border-bottom-color: #999;
|
48
|
-
border-bottom-left-radius: 4px;
|
49
|
-
border-bottom-right-radius: 4px;
|
50
|
-
border-top-color: #DADADA;
|
51
|
-
color: #666;
|
52
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
-
}
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
54
16
|
</style>
|
55
17
|
</head>
|
56
18
|
|
57
19
|
<body>
|
58
20
|
<!-- This file lives in public/422.html -->
|
59
21
|
<div class="dialog">
|
60
|
-
<
|
61
|
-
|
62
|
-
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
-
</div>
|
64
|
-
<p>If you are the application owner check the logs for more information.</p>
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
65
24
|
</div>
|
66
25
|
</body>
|
67
26
|
</html>
|