liquid-rails 0.1.4 → 0.2.0.beta1
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 +4 -4
- data/.travis.yml +3 -8
- data/CHANGELOG.md +8 -0
- data/Gemfile +2 -1
- data/Rakefile +4 -3
- data/gemfiles/{rails_32.gemfile → rails_50.gemfile} +2 -2
- data/gemfiles/{rails_40.gemfile → rails_51.gemfile} +2 -1
- data/gemfiles/{rails_41.gemfile → rails_52.gemfile} +2 -1
- data/lib/liquid-rails.rb +1 -1
- data/lib/liquid-rails/file_system.rb +29 -4
- data/lib/liquid-rails/railtie.rb +1 -6
- data/lib/liquid-rails/rspec/drop_example_group.rb +2 -2
- data/lib/liquid-rails/rspec/filter_example_group.rb +2 -2
- data/lib/liquid-rails/rspec/tag_example_group.rb +2 -2
- data/lib/liquid-rails/rspec/view_controller_context.rb +4 -4
- data/lib/liquid-rails/tags/paginate_tag.rb +1 -1
- data/lib/liquid-rails/template_handler.rb +15 -5
- data/lib/liquid-rails/version.rb +1 -1
- data/liquid-rails.gemspec +3 -3
- data/spec/dummy/Rakefile +2 -2
- data/spec/dummy/app/assets/config/manifest.js +3 -0
- data/spec/dummy/app/controllers/home_controller.rb +8 -4
- data/spec/dummy/app/controllers/pages_controller.rb +2 -2
- data/spec/dummy/app/views/foospace/bar/{_partial.liquid → _partial.html.liquid} +0 -0
- data/spec/dummy/app/views/foospace/bar/{index_partial.liquid → index_partial.html.liquid} +0 -0
- data/spec/dummy/app/views/home/{_html_liquid_partial.liquid → _html_liquid_partial.html.liquid} +0 -0
- data/spec/dummy/app/views/home/{_partial.liquid → _partial.html.liquid} +0 -0
- data/spec/dummy/app/views/home/{erb_with_html_liquid_partial.erb → erb_with_html_liquid_partial.html.erb} +0 -0
- data/spec/dummy/app/views/home/{index.liquid → index.html.liquid} +0 -0
- data/spec/dummy/app/views/home/{index_partial.liquid → index_partial.html.liquid} +0 -0
- data/spec/dummy/app/views/home/{index_partial_with_full_path.liquid → index_partial_with_full_path.html.liquid} +0 -0
- data/spec/dummy/app/views/home/{index_with_filter.liquid → index_with_filter.html.liquid} +0 -0
- data/spec/dummy/app/views/home/{index_with_layout.liquid → index_with_layout.html.liquid} +0 -0
- data/spec/dummy/app/views/home/index_with_rss.rss.liquid +17 -0
- data/spec/dummy/app/views/layouts/{application.liquid → application.html.liquid} +0 -0
- data/spec/dummy/app/views/pages/{index_without_filter.liquid → index_without_filter.html.liquid} +0 -0
- data/spec/dummy/app/views/shared/{_partial.liquid → _partial.html.liquid} +0 -0
- data/spec/dummy/config.ru +2 -1
- data/spec/dummy/config/application.rb +11 -11
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +1 -1
- data/spec/dummy/config/environments/development.rb +34 -5
- data/spec/dummy/config/environments/production.rb +37 -26
- data/spec/dummy/config/environments/test.rb +6 -3
- data/spec/dummy/config/initializers/application_controller_renderer.rb +6 -0
- data/spec/dummy/config/initializers/assets.rb +14 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/spec/dummy/config/initializers/mime_types.rb +0 -1
- data/spec/dummy/config/initializers/new_framework_defaults.rb +30 -0
- data/spec/dummy/config/initializers/session_store.rb +1 -1
- data/spec/dummy/config/initializers/wrap_parameters.rb +2 -2
- data/spec/dummy/config/puma.rb +56 -0
- data/spec/dummy/config/routes.rb +4 -2
- data/spec/dummy/config/secrets.yml +31 -0
- data/spec/dummy/config/spring.rb +6 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/package.json +5 -0
- data/spec/dummy/public/404.html +20 -11
- data/spec/dummy/public/422.html +20 -11
- data/spec/dummy/public/500.html +19 -10
- data/spec/dummy/public/robots.txt +1 -0
- data/spec/dummy/vendor/theme/foospace/bar/_partial.html.liquid +1 -0
- data/spec/dummy/vendor/theme/home/_partial.html.liquid +1 -0
- data/spec/dummy/vendor/theme/shared/_partial.html.liquid +1 -0
- data/spec/lib/liquid-rails/filters/misc_filter_spec.rb +4 -4
- data/spec/lib/liquid-rails/filters/translate_filter_spec.rb +5 -5
- data/spec/lib/liquid-rails/tags/paginate_tag_spec.rb +5 -7
- data/spec/lib/liquid-rails/template_handler_spec.rb +81 -33
- metadata +68 -45
- data/gemfiles/rails_42.gemfile +0 -12
- data/spec/dummy/config/initializers/secret_token.rb +0 -17
@@ -0,0 +1,25 @@
|
|
1
|
+
# SQLite version 3.x
|
2
|
+
# gem install sqlite3
|
3
|
+
#
|
4
|
+
# Ensure the SQLite 3 gem is defined in your Gemfile
|
5
|
+
# gem 'sqlite3'
|
6
|
+
development:
|
7
|
+
adapter: sqlite3
|
8
|
+
database: db/development.sqlite3
|
9
|
+
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
10
|
+
timeout: 5000
|
11
|
+
|
12
|
+
# Warning: The database defined as "test" will be erased and
|
13
|
+
# re-generated from your development database when you run "rake".
|
14
|
+
# Do not set this db to the same as development or production.
|
15
|
+
test:
|
16
|
+
adapter: sqlite3
|
17
|
+
database: db/test.sqlite3
|
18
|
+
pool: 5
|
19
|
+
timeout: 5000
|
20
|
+
|
21
|
+
production:
|
22
|
+
adapter: sqlite3
|
23
|
+
database: db/production.sqlite3
|
24
|
+
pool: 5
|
25
|
+
timeout: 5000
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
Rails.application.configure do
|
2
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
|
@@ -9,21 +9,50 @@ Dummy::Application.configure do
|
|
9
9
|
# Do not eager load code on boot.
|
10
10
|
config.eager_load = false
|
11
11
|
|
12
|
-
# Show full error reports
|
13
|
-
config.consider_all_requests_local
|
14
|
-
|
12
|
+
# Show full error reports.
|
13
|
+
config.consider_all_requests_local = true
|
14
|
+
|
15
|
+
# Enable/disable caching. By default caching is disabled.
|
16
|
+
if Rails.root.join('tmp/caching-dev.txt').exist?
|
17
|
+
config.action_controller.perform_caching = true
|
18
|
+
|
19
|
+
config.cache_store = :memory_store
|
20
|
+
config.public_file_server.headers = {
|
21
|
+
'Cache-Control' => "public, max-age=#{2.days.to_i}"
|
22
|
+
}
|
23
|
+
else
|
24
|
+
config.action_controller.perform_caching = false
|
25
|
+
|
26
|
+
config.cache_store = :null_store
|
27
|
+
end
|
28
|
+
|
29
|
+
if config.respond_to?(:active_storage)
|
30
|
+
# Store uploaded files on the local file system (see config/storage.yml for options)
|
31
|
+
config.active_storage.service = :local
|
32
|
+
end
|
15
33
|
|
16
34
|
# Don't care if the mailer can't send.
|
17
35
|
# config.action_mailer.raise_delivery_errors = false
|
18
36
|
|
37
|
+
if config.action_mailer.respond_to?(:perform_caching)
|
38
|
+
config.action_mailer.perform_caching = false
|
39
|
+
end
|
40
|
+
|
19
41
|
# Print deprecation notices to the Rails logger.
|
20
42
|
config.active_support.deprecation = :log
|
21
43
|
|
22
|
-
# Raise an error on page load if there are pending migrations
|
44
|
+
# Raise an error on page load if there are pending migrations.
|
23
45
|
# config.active_record.migration_error = :page_load
|
24
46
|
|
25
47
|
# Debug mode disables concatenation and preprocessing of assets.
|
26
48
|
# This option may cause significant delays in view rendering with a large
|
27
49
|
# number of complex assets.
|
28
50
|
config.assets.debug = true
|
51
|
+
|
52
|
+
# Suppress logger output for asset requests.
|
53
|
+
config.assets.quiet = true
|
54
|
+
|
55
|
+
# Use an evented file watcher to asynchronously detect changes in source code,
|
56
|
+
# routes, locales, etc. This feature depends on the listen gem.
|
57
|
+
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
|
29
58
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
Rails.application.configure do
|
2
2
|
# Settings specified here will take precedence over those in config/application.rb.
|
3
3
|
|
4
4
|
# Code is not reloaded between requests.
|
@@ -14,13 +14,14 @@ Dummy::Application.configure do
|
|
14
14
|
config.consider_all_requests_local = false
|
15
15
|
config.action_controller.perform_caching = true
|
16
16
|
|
17
|
-
#
|
18
|
-
#
|
19
|
-
#
|
20
|
-
|
17
|
+
# Attempt to read encrypted secrets from `config/secrets.yml.enc`.
|
18
|
+
# Requires an encryption key in `ENV["RAILS_MASTER_KEY"]` or
|
19
|
+
# `config/secrets.yml.key`.
|
20
|
+
config.read_encrypted_secrets = true
|
21
21
|
|
22
|
-
# Disable
|
23
|
-
|
22
|
+
# Disable serving static files from the `/public` folder by default since
|
23
|
+
# Apache or NGINX already handles this.
|
24
|
+
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
|
24
25
|
|
25
26
|
# Compress JavaScripts and CSS.
|
26
27
|
config.assets.js_compressor = :uglifier
|
@@ -29,37 +30,37 @@ Dummy::Application.configure do
|
|
29
30
|
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
30
31
|
config.assets.compile = false
|
31
32
|
|
32
|
-
#
|
33
|
-
config.assets.digest = true
|
33
|
+
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
|
34
34
|
|
35
|
-
#
|
36
|
-
config.
|
35
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
36
|
+
# config.action_controller.asset_host = 'http://assets.example.com'
|
37
37
|
|
38
38
|
# Specifies the header that your server uses for sending files.
|
39
39
|
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
40
40
|
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
41
41
|
|
42
|
+
# Mount Action Cable outside main process or domain
|
43
|
+
# config.action_cable.mount_path = nil
|
44
|
+
# config.action_cable.url = 'wss://example.com/cable'
|
45
|
+
# config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
|
46
|
+
|
42
47
|
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
43
48
|
# config.force_ssl = true
|
44
49
|
|
45
|
-
#
|
46
|
-
|
50
|
+
# Use the lowest log level to ensure availability of diagnostic information
|
51
|
+
# when problems arise.
|
52
|
+
config.log_level = :debug
|
47
53
|
|
48
54
|
# Prepend all log lines with the following tags.
|
49
|
-
|
50
|
-
|
51
|
-
# Use a different logger for distributed setups.
|
52
|
-
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
55
|
+
config.log_tags = [ :request_id ]
|
53
56
|
|
54
57
|
# Use a different cache store in production.
|
55
58
|
# config.cache_store = :mem_cache_store
|
56
59
|
|
57
|
-
#
|
58
|
-
# config.
|
59
|
-
|
60
|
-
|
61
|
-
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
62
|
-
# config.assets.precompile += %w( search.js )
|
60
|
+
# Use a real queuing backend for Active Job (and separate queues per environment)
|
61
|
+
# config.active_job.queue_adapter = :resque
|
62
|
+
# config.active_job.queue_name_prefix = "railsdiff_#{Rails.env}"
|
63
|
+
config.action_mailer.perform_caching = false
|
63
64
|
|
64
65
|
# Ignore bad email addresses and do not raise email delivery errors.
|
65
66
|
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
@@ -72,9 +73,19 @@ Dummy::Application.configure do
|
|
72
73
|
# Send deprecation notices to registered listeners.
|
73
74
|
config.active_support.deprecation = :notify
|
74
75
|
|
75
|
-
# Disable automatic flushing of the log to improve performance.
|
76
|
-
# config.autoflush_log = false
|
77
|
-
|
78
76
|
# Use default logging formatter so that PID and timestamp are not suppressed.
|
79
77
|
config.log_formatter = ::Logger::Formatter.new
|
78
|
+
|
79
|
+
# Use a different logger for distributed setups.
|
80
|
+
# require 'syslog/logger'
|
81
|
+
# config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
|
82
|
+
|
83
|
+
if ENV["RAILS_LOG_TO_STDOUT"].present?
|
84
|
+
logger = ActiveSupport::Logger.new(STDOUT)
|
85
|
+
logger.formatter = config.log_formatter
|
86
|
+
config.logger = ActiveSupport::TaggedLogging.new(logger)
|
87
|
+
end
|
88
|
+
|
89
|
+
# Do not dump schema after migrations.
|
90
|
+
config.active_record.dump_schema_after_migration = false
|
80
91
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
Rails.application.configure do
|
2
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
|
@@ -13,8 +13,10 @@ Dummy::Application.configure do
|
|
13
13
|
config.eager_load = false
|
14
14
|
|
15
15
|
# Configure static asset server for tests with Cache-Control for performance.
|
16
|
-
config.
|
17
|
-
config.
|
16
|
+
config.public_file_server.enabled = true
|
17
|
+
config.public_file_server.headers = {
|
18
|
+
'Cache-Control' => "public, max-age=#{1.hour.to_i}"
|
19
|
+
}
|
18
20
|
|
19
21
|
# Show full error reports and disable caching.
|
20
22
|
config.consider_all_requests_local = true
|
@@ -25,6 +27,7 @@ Dummy::Application.configure do
|
|
25
27
|
|
26
28
|
# Disable request forgery protection in test environment.
|
27
29
|
config.action_controller.allow_forgery_protection = false
|
30
|
+
config.action_mailer.perform_caching = false
|
28
31
|
|
29
32
|
# Tell Action Mailer not to deliver emails to the real world.
|
30
33
|
# The :test delivery method accumulates sent emails in the
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Version of your assets, change this if you want to expire all your assets.
|
4
|
+
Rails.application.config.assets.version = '1.0'
|
5
|
+
|
6
|
+
# Add additional assets to the asset load path.
|
7
|
+
# Rails.application.config.assets.paths << Emoji.images_path
|
8
|
+
# Add Yarn node_modules folder to the asset load path.
|
9
|
+
Rails.application.config.assets.paths << Rails.root.join('node_modules')
|
10
|
+
|
11
|
+
# Precompile additional assets.
|
12
|
+
# application.js, application.css, and all non-JS/CSS in the app/assets
|
13
|
+
# folder are already added.
|
14
|
+
# Rails.application.config.assets.precompile += %w( admin.js admin.css )
|
@@ -0,0 +1,30 @@
|
|
1
|
+
if Rails.version.start_with?('5.0')
|
2
|
+
# Be sure to restart your server when you modify this file.
|
3
|
+
#
|
4
|
+
# This file contains migration options to ease your Rails 5.0 upgrade.
|
5
|
+
#
|
6
|
+
# Read the Guide for Upgrading Ruby on Rails for more info on each option.
|
7
|
+
|
8
|
+
Rails.application.config.raise_on_unfiltered_parameters = true
|
9
|
+
|
10
|
+
# Enable per-form CSRF tokens. Previous versions had false.
|
11
|
+
# Rails.application.config.action_controller.per_form_csrf_tokens = true
|
12
|
+
|
13
|
+
# Enable origin-checking CSRF mitigation. Previous versions had false.
|
14
|
+
# Rails.application.config.action_controller.forgery_protection_origin_check = true
|
15
|
+
|
16
|
+
# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`.
|
17
|
+
# Previous versions had false.
|
18
|
+
ActiveSupport.to_time_preserves_timezone = true
|
19
|
+
|
20
|
+
# Require `belongs_to` associations by default. Previous versions had false.
|
21
|
+
# Rails.application.config.active_record.belongs_to_required_by_default = true
|
22
|
+
|
23
|
+
# Do not halt callback chains when a callback returns false. Previous versions had true.
|
24
|
+
if ActiveSupport.respond_to?(:halt_callback_chains_on_return_false=)
|
25
|
+
ActiveSupport.halt_callback_chains_on_return_false = false
|
26
|
+
end
|
27
|
+
|
28
|
+
# Configure SSL options to enable HSTS with subdomains. Previous versions had false.
|
29
|
+
Rails.application.config.ssl_options = { hsts: { subdomains: true } }
|
30
|
+
end
|
@@ -5,10 +5,10 @@
|
|
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
11
|
# To enable root element in JSON for ActiveRecord objects.
|
12
12
|
# ActiveSupport.on_load(:active_record) do
|
13
|
-
#
|
13
|
+
# self.include_root_in_json = true
|
14
14
|
# end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# Puma can serve each request in a thread from an internal thread pool.
|
2
|
+
# The `threads` method setting takes two numbers: a minimum and maximum.
|
3
|
+
# Any libraries that use thread pools should be configured to match
|
4
|
+
# the maximum value specified for Puma. Default is set to 5 threads for minimum
|
5
|
+
# and maximum; this matches the default thread size of Active Record.
|
6
|
+
#
|
7
|
+
threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
|
8
|
+
threads threads_count, threads_count
|
9
|
+
|
10
|
+
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
|
11
|
+
#
|
12
|
+
port ENV.fetch("PORT") { 3000 }
|
13
|
+
|
14
|
+
# Specifies the `environment` that Puma will run in.
|
15
|
+
#
|
16
|
+
environment ENV.fetch("RAILS_ENV") { "development" }
|
17
|
+
|
18
|
+
# Specifies the number of `workers` to boot in clustered mode.
|
19
|
+
# Workers are forked webserver processes. If using threads and workers together
|
20
|
+
# the concurrency of the application would be max `threads` * `workers`.
|
21
|
+
# Workers do not work on JRuby or Windows (both of which do not support
|
22
|
+
# processes).
|
23
|
+
#
|
24
|
+
# workers ENV.fetch("WEB_CONCURRENCY") { 2 }
|
25
|
+
|
26
|
+
# Use the `preload_app!` method when specifying a `workers` number.
|
27
|
+
# This directive tells Puma to first boot the application and load code
|
28
|
+
# before forking the application. This takes advantage of Copy On Write
|
29
|
+
# process behavior so workers use less memory. If you use this option
|
30
|
+
# you need to make sure to reconnect any threads in the `on_worker_boot`
|
31
|
+
# block.
|
32
|
+
#
|
33
|
+
# preload_app!
|
34
|
+
|
35
|
+
# If you are preloading your application and using Active Record, it's
|
36
|
+
# recommended that you close any connections to the database before workers
|
37
|
+
# are forked to prevent connection leakage.
|
38
|
+
#
|
39
|
+
# before_fork do
|
40
|
+
# ActiveRecord::Base.connection_pool.disconnect! if defined?(ActiveRecord)
|
41
|
+
# end
|
42
|
+
|
43
|
+
# The code in the `on_worker_boot` will be called if you are using
|
44
|
+
# clustered mode by specifying a number of `workers`. After each worker
|
45
|
+
# process is booted, this block will be run. If you are using the `preload_app!`
|
46
|
+
# option, you will want to use this block to reconnect to any threads
|
47
|
+
# or connections that may have been created at application boot, as Ruby
|
48
|
+
# cannot share connections between processes.
|
49
|
+
#
|
50
|
+
# on_worker_boot do
|
51
|
+
# ActiveRecord::Base.establish_connection if defined?(ActiveRecord)
|
52
|
+
# end
|
53
|
+
#
|
54
|
+
|
55
|
+
# Allow puma to be restarted by `rails restart` command.
|
56
|
+
plugin :tmp_restart
|
data/spec/dummy/config/routes.rb
CHANGED
@@ -8,7 +8,9 @@ Rails.application.routes.draw do
|
|
8
8
|
get '/index_partial', to: 'home#index_partial'
|
9
9
|
get '/index_partial_with_full_path', to: 'home#index_partial_with_full_path'
|
10
10
|
|
11
|
-
get
|
11
|
+
get '/index_with_rss', to: 'home#index_with_rss', defaults: { format: 'rss' }
|
12
12
|
|
13
|
-
get
|
13
|
+
get '/erb_with_html_liquid_partial', to: 'home#erb_with_html_liquid_partial'
|
14
|
+
|
15
|
+
get '/foospace/bar/index_partial', to: 'foospace/bar#index_partial'
|
14
16
|
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rails secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure the secrets in this file are kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
|
13
|
+
# Shared secrets are available across all environments.
|
14
|
+
|
15
|
+
# shared:
|
16
|
+
# api_key: a1B2c3D4e5F6
|
17
|
+
|
18
|
+
# Environmental secrets are only available for that specific environment.
|
19
|
+
|
20
|
+
development:
|
21
|
+
secret_key_base: your-secret-token
|
22
|
+
|
23
|
+
test:
|
24
|
+
secret_key_base: your-secret-token
|
25
|
+
|
26
|
+
# Do not keep production secrets in the unencrypted secrets file.
|
27
|
+
# Instead, either read values from the environment.
|
28
|
+
# Or, use `bin/rails secrets:setup` to configure encrypted secrets
|
29
|
+
# and move the `production:` environment over there.
|
30
|
+
production:
|
31
|
+
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
File without changes
|
data/spec/dummy/public/404.html
CHANGED
@@ -2,17 +2,23 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
5
6
|
<style>
|
6
7
|
body {
|
7
8
|
background-color: #EFEFEF;
|
8
9
|
color: #2E2F30;
|
9
10
|
text-align: center;
|
10
11
|
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
11
13
|
}
|
12
14
|
|
13
15
|
div.dialog {
|
14
|
-
width:
|
15
|
-
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
16
22
|
border: 1px solid #CCC;
|
17
23
|
border-right-color: #999;
|
18
24
|
border-left-color: #999;
|
@@ -21,7 +27,8 @@
|
|
21
27
|
border-top-left-radius: 9px;
|
22
28
|
border-top-right-radius: 9px;
|
23
29
|
background-color: white;
|
24
|
-
padding: 7px
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
25
32
|
}
|
26
33
|
|
27
34
|
h1 {
|
@@ -30,19 +37,19 @@
|
|
30
37
|
line-height: 1.5em;
|
31
38
|
}
|
32
39
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
padding: 1em 0;
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
37
43
|
background-color: #F7F7F7;
|
38
44
|
border: 1px solid #CCC;
|
39
45
|
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
40
47
|
border-bottom-color: #999;
|
41
48
|
border-bottom-left-radius: 4px;
|
42
49
|
border-bottom-right-radius: 4px;
|
43
50
|
border-top-color: #DADADA;
|
44
51
|
color: #666;
|
45
|
-
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
46
53
|
}
|
47
54
|
</style>
|
48
55
|
</head>
|
@@ -50,9 +57,11 @@
|
|
50
57
|
<body>
|
51
58
|
<!-- This file lives in public/404.html -->
|
52
59
|
<div class="dialog">
|
53
|
-
<
|
54
|
-
|
60
|
+
<div>
|
61
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
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>
|
55
65
|
</div>
|
56
|
-
<p>If you are the application owner check the logs for more information.</p>
|
57
66
|
</body>
|
58
67
|
</html>
|