metova-dummy 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/.rspec +1 -0
- data/.travis.yml +14 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +43 -0
- data/Rakefile +8 -0
- data/bin/rspec +16 -0
- data/lib/metova/dummy.rb +2 -0
- data/lib/metova/dummy/Rakefile +6 -0
- data/lib/metova/dummy/app/assets/images/.keep +0 -0
- data/lib/metova/dummy/app/controllers/api/base_controller.rb +5 -0
- data/lib/metova/dummy/app/controllers/api/posts_controller.rb +11 -0
- data/lib/metova/dummy/app/controllers/application_controller.rb +5 -0
- data/lib/metova/dummy/app/controllers/concerns/.keep +0 -0
- data/lib/metova/dummy/app/controllers/posts_controller.rb +7 -0
- data/lib/metova/dummy/app/helpers/api/posts_helper.rb +2 -0
- data/lib/metova/dummy/app/helpers/application_helper.rb +2 -0
- data/lib/metova/dummy/app/mailers/.keep +0 -0
- data/lib/metova/dummy/app/models/.keep +0 -0
- data/lib/metova/dummy/app/models/concerns/.keep +0 -0
- data/lib/metova/dummy/app/models/post.rb +3 -0
- data/lib/metova/dummy/app/models/user.rb +3 -0
- data/lib/metova/dummy/app/views/layouts/application.html.erb +14 -0
- data/lib/metova/dummy/app/views/posts/index.html.erb +1 -0
- data/lib/metova/dummy/bin/bundle +3 -0
- data/lib/metova/dummy/bin/rails +4 -0
- data/lib/metova/dummy/bin/rake +4 -0
- data/lib/metova/dummy/bin/setup +29 -0
- data/lib/metova/dummy/config.ru +4 -0
- data/lib/metova/dummy/config/application.rb +42 -0
- data/lib/metova/dummy/config/boot.rb +5 -0
- data/lib/metova/dummy/config/database.yml +25 -0
- data/lib/metova/dummy/config/environment.rb +5 -0
- data/lib/metova/dummy/config/environments/development.rb +41 -0
- data/lib/metova/dummy/config/environments/production.rb +78 -0
- data/lib/metova/dummy/config/environments/test.rb +42 -0
- data/lib/metova/dummy/config/initializers/assets.rb +11 -0
- data/lib/metova/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/lib/metova/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/lib/metova/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/lib/metova/dummy/config/initializers/inflections.rb +16 -0
- data/lib/metova/dummy/config/initializers/mime_types.rb +4 -0
- data/lib/metova/dummy/config/initializers/session_store.rb +3 -0
- data/lib/metova/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/lib/metova/dummy/config/locales/devise.en.yml +60 -0
- data/lib/metova/dummy/config/locales/en.yml +23 -0
- data/lib/metova/dummy/config/routes.rb +9 -0
- data/lib/metova/dummy/config/secrets.yml +22 -0
- data/lib/metova/dummy/db/development.sqlite3 +0 -0
- data/lib/metova/dummy/db/migrate/20141215045143_create_users.rb +11 -0
- data/lib/metova/dummy/db/migrate/20141215051632_create_posts.rb +12 -0
- data/lib/metova/dummy/db/migrate/20150114203236_add_authentication_token_to_users.rb +5 -0
- data/lib/metova/dummy/db/migrate/20150114204523_add_devise_to_users.rb +47 -0
- data/lib/metova/dummy/db/schema.rb +47 -0
- data/lib/metova/dummy/db/test.sqlite3 +0 -0
- data/lib/metova/dummy/lib/assets/.keep +0 -0
- data/lib/metova/dummy/log/.keep +0 -0
- data/lib/metova/dummy/log/development.log +3666 -0
- data/lib/metova/dummy/log/test.log +5230 -0
- data/lib/metova/dummy/public/404.html +67 -0
- data/lib/metova/dummy/public/422.html +67 -0
- data/lib/metova/dummy/public/500.html +66 -0
- data/lib/metova/dummy/public/favicon.ico +0 -0
- data/lib/metova/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/lib/metova/dummy/tmp/cache/assets/development/sprockets/21c801a69985d525a5828db584b19c3b +0 -0
- data/lib/metova/dummy/tmp/cache/assets/development/sprockets/2a10a90c3f680c5e48529302e65abd2a +0 -0
- data/lib/metova/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/lib/metova/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/lib/metova/dummy/tmp/cache/assets/development/sprockets/3bd96718f1bc7f2c0596c18a9ab123ab +0 -0
- data/lib/metova/dummy/tmp/cache/assets/development/sprockets/3c3c5cd3a5acb564a4df63b6fa0cff91 +0 -0
- data/lib/metova/dummy/tmp/cache/assets/development/sprockets/4b8d2c77b633c59cfd0768189bed238c +0 -0
- data/lib/metova/dummy/tmp/cache/assets/development/sprockets/5abe75addfad1e35db392f815313c6f6 +0 -0
- data/lib/metova/dummy/tmp/cache/assets/development/sprockets/94113746d81fa9ed59044c097741cdf6 +0 -0
- data/lib/metova/dummy/tmp/cache/assets/development/sprockets/af10e6d86ede47104e7bf63edcd7e070 +0 -0
- data/lib/metova/dummy/tmp/cache/assets/development/sprockets/b21eae52712ebb62dac88bb3056c48a2 +0 -0
- data/lib/metova/dummy/tmp/cache/assets/development/sprockets/bb9f164b546e5b319fe29079e5baa1d6 +0 -0
- data/lib/metova/dummy/tmp/cache/assets/development/sprockets/bf50491f3512c72d845b9a7bafb652ca +0 -0
- data/lib/metova/dummy/tmp/cache/assets/development/sprockets/c5b60525d0b3d608f0a72896dfcc95d4 +0 -0
- data/lib/metova/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/lib/metova/dummy/tmp/cache/assets/development/sprockets/d1857eeae1a6800ee133d85891f86f5f +0 -0
- data/lib/metova/dummy/tmp/cache/assets/development/sprockets/d1f6ed05853c36953ac307c9eb0943f0 +0 -0
- data/lib/metova/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/lib/metova/dummy/tmp/cache/assets/development/sprockets/db0e7e6cd1b1f4e585dcbd438d59cfbf +0 -0
- data/lib/metova/dummy/tmp/cache/assets/development/sprockets/e4595638ee32f1fc075472f68fd3a7a8 +0 -0
- data/lib/metova/dummy/tmp/cache/assets/development/sprockets/e5f5734855ca1c777616f8f3e6350c33 +0 -0
- data/lib/metova/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/lib/metova/dummy/tmp/cache/assets/development/sprockets/f7f66a168e0e7976e58f0a88e90a83f4 +0 -0
- data/lib/metova/dummy/tmp/cache/assets/test/sprockets/21c801a69985d525a5828db584b19c3b +0 -0
- data/lib/metova/dummy/tmp/cache/assets/test/sprockets/3bd96718f1bc7f2c0596c18a9ab123ab +0 -0
- data/lib/metova/dummy/tmp/cache/assets/test/sprockets/5abe75addfad1e35db392f815313c6f6 +0 -0
- data/lib/metova/dummy/tmp/cache/assets/test/sprockets/bf50491f3512c72d845b9a7bafb652ca +0 -0
- data/lib/metova/dummy/tmp/cache/assets/test/sprockets/c5b60525d0b3d608f0a72896dfcc95d4 +0 -0
- data/lib/metova/dummy/tmp/cache/assets/test/sprockets/d1f6ed05853c36953ac307c9eb0943f0 +0 -0
- data/lib/metova/dummy/tmp/capybara/capybara-201501151454232553757874.html +24 -0
- data/lib/metova/dummy/tmp/capybara/capybara-201501151454432200953178.html +24 -0
- data/lib/metova/dummy/version.rb +5 -0
- data/metova-dummy.gemspec +29 -0
- data/spec/controllers/api/posts_controller_spec.rb +10 -0
- data/spec/fixtures/users.yml +5 -0
- data/spec/spec_helper.rb +29 -0
- metadata +233 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 82ae7468677db5385ed1597da58246cdc5b03bd0
|
4
|
+
data.tar.gz: 5da00d0ff9e03589519625bec762281028cb603d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: fd065b5f28bd4e43e11c439743154d4a7c3e5558b0e049d4220ade05a91824dd7dc555c4c854728c9f926df2506dd77582aa501dedd3e8db9714c9076bac9352
|
7
|
+
data.tar.gz: 8f64f199dd0a2f3ac9377930fec5a725f5e1eb7fa46dfcb9f1b29a619a7d4ca2ab43b3dae53124252a4b58f321f9d6e3f42104629cff8f3ca851091510a373d3
|
data/.gitignore
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--require spec_helper
|
data/.travis.yml
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
language: ruby
|
2
|
+
cache: bundler
|
3
|
+
rvm:
|
4
|
+
- 2.0.0
|
5
|
+
- 2.1.0
|
6
|
+
deploy:
|
7
|
+
provider: rubygems
|
8
|
+
api_key:
|
9
|
+
secure: ARM2JGEokm/TaJvIIwGgdL4s0QuMlwdVXzwtE4TwiqiSQO2yp8Eet9B0o55O3fITV2Z9UGUBF/9ymoKD2S4m/iGOARosj8q+gmgE/84fdF3glAqTtkCPsUZH8fseAH41e4XYwWkoRhwbxHBVhLn5rVGO4oJKWtFGnddacDBolFQ=
|
10
|
+
gem:
|
11
|
+
master: metova-dummy
|
12
|
+
on:
|
13
|
+
repo: metova/dummy
|
14
|
+
branch: master
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2015 Logan Serman
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# Metova Dummy
|
2
|
+
|
3
|
+
It's a pain to have to setup a testing environment when creating gems. This app includes a Rails skeleton
|
4
|
+
that can be included in other gems so that everything is already setup.
|
5
|
+
|
6
|
+
Gem functionality can just be patched into existing classes, or you can make your own. For example, to test
|
7
|
+
Devise authentication in a gem, you could just make a new controller and inherit from `Metova::Dummy::ApplicationController`.
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
class AuthenticationTestController < Metova::Dummy::ApplicationController
|
11
|
+
before_action :authenticate_user!
|
12
|
+
def secret
|
13
|
+
head :ok
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
describe AuthenticationTestController do
|
18
|
+
it 'returns a 401 when not authenticated' do
|
19
|
+
get :secret
|
20
|
+
expect(response.status).to eq 401
|
21
|
+
end
|
22
|
+
end
|
23
|
+
```
|
24
|
+
|
25
|
+
## Installation
|
26
|
+
|
27
|
+
Add this line to your gem's gemspec:
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
spec.add_development_dependency 'metova-dummy'
|
31
|
+
```
|
32
|
+
|
33
|
+
## Usage
|
34
|
+
|
35
|
+
TODO: Write usage instructions here
|
36
|
+
|
37
|
+
## Contributing
|
38
|
+
|
39
|
+
1. Fork it ( https://github.com/[my-github-username]/metova-dummy/fork )
|
40
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
41
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
42
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
43
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
data/bin/rspec
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'rspec' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('rspec-core', 'rspec')
|
data/lib/metova/dummy.rb
ADDED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Dummy</title>
|
5
|
+
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
|
6
|
+
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
|
7
|
+
<%= csrf_meta_tags %>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
|
11
|
+
<%= yield %>
|
12
|
+
|
13
|
+
</body>
|
14
|
+
</html>
|
@@ -0,0 +1 @@
|
|
1
|
+
This is a list of posts!
|
@@ -0,0 +1,29 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'pathname'
|
3
|
+
|
4
|
+
# path to your application root.
|
5
|
+
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
|
6
|
+
|
7
|
+
Dir.chdir APP_ROOT do
|
8
|
+
# This script is a starting point to setup your application.
|
9
|
+
# Add necessary setup steps to this file:
|
10
|
+
|
11
|
+
puts "== Installing dependencies =="
|
12
|
+
system "gem install bundler --conservative"
|
13
|
+
system "bundle check || bundle install"
|
14
|
+
|
15
|
+
# puts "\n== Copying sample files =="
|
16
|
+
# unless File.exist?("config/database.yml")
|
17
|
+
# system "cp config/database.yml.sample config/database.yml"
|
18
|
+
# end
|
19
|
+
|
20
|
+
puts "\n== Preparing database =="
|
21
|
+
system "bin/rake db:setup"
|
22
|
+
|
23
|
+
puts "\n== Removing old logs and tempfiles =="
|
24
|
+
system "rm -f log/*"
|
25
|
+
system "rm -rf tmp/cache"
|
26
|
+
|
27
|
+
puts "\n== Restarting application server =="
|
28
|
+
system "touch tmp/restart.txt"
|
29
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
# Pick the frameworks you want:
|
4
|
+
require "active_record/railtie"
|
5
|
+
require "action_controller/railtie"
|
6
|
+
require "action_mailer/railtie"
|
7
|
+
require "action_view/railtie"
|
8
|
+
require "sprockets/railtie"
|
9
|
+
# require "rails/test_unit/railtie"
|
10
|
+
|
11
|
+
Bundler.require(*Rails.groups)
|
12
|
+
|
13
|
+
module Metova
|
14
|
+
module Dummy
|
15
|
+
class Application < Rails::Application
|
16
|
+
# Settings in config/environments/* take precedence over those specified here.
|
17
|
+
# Application configuration should go into files in config/initializers
|
18
|
+
# -- all .rb files in that directory are automatically loaded.
|
19
|
+
|
20
|
+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
21
|
+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
22
|
+
# config.time_zone = 'Central Time (US & Canada)'
|
23
|
+
|
24
|
+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
25
|
+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
26
|
+
# config.i18n.default_locale = :de
|
27
|
+
|
28
|
+
# Do not swallow errors in after_commit/after_rollback callbacks.
|
29
|
+
config.active_record.raise_in_transactional_callbacks = true
|
30
|
+
|
31
|
+
config.generators do |g|
|
32
|
+
g.test_framework :rspec,
|
33
|
+
view_specs: false,
|
34
|
+
controller_specs: false,
|
35
|
+
helper_specs: false,
|
36
|
+
routing_specs: false,
|
37
|
+
model_specs: false
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -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
|
+
#
|
7
|
+
default: &default
|
8
|
+
adapter: sqlite3
|
9
|
+
pool: 5
|
10
|
+
timeout: 5000
|
11
|
+
|
12
|
+
development:
|
13
|
+
<<: *default
|
14
|
+
database: db/development.sqlite3
|
15
|
+
|
16
|
+
# Warning: The database defined as "test" will be erased and
|
17
|
+
# re-generated from your development database when you run "rake".
|
18
|
+
# Do not set this db to the same as development or production.
|
19
|
+
test:
|
20
|
+
<<: *default
|
21
|
+
database: db/test.sqlite3
|
22
|
+
|
23
|
+
production:
|
24
|
+
<<: *default
|
25
|
+
database: db/production.sqlite3
|
@@ -0,0 +1,41 @@
|
|
1
|
+
Rails.application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# In the development environment your application's code is reloaded on
|
5
|
+
# every request. This slows down response time but is perfect for development
|
6
|
+
# since you don't have to restart the web server when you make code changes.
|
7
|
+
config.cache_classes = false
|
8
|
+
|
9
|
+
# Do not eager load code on boot.
|
10
|
+
config.eager_load = false
|
11
|
+
|
12
|
+
# Show full error reports and disable caching.
|
13
|
+
config.consider_all_requests_local = true
|
14
|
+
config.action_controller.perform_caching = false
|
15
|
+
|
16
|
+
# Don't care if the mailer can't send.
|
17
|
+
config.action_mailer.raise_delivery_errors = false
|
18
|
+
|
19
|
+
# Print deprecation notices to the Rails logger.
|
20
|
+
config.active_support.deprecation = :log
|
21
|
+
|
22
|
+
# Raise an error on page load if there are pending migrations.
|
23
|
+
config.active_record.migration_error = :page_load
|
24
|
+
|
25
|
+
# Debug mode disables concatenation and preprocessing of assets.
|
26
|
+
# This option may cause significant delays in view rendering with a large
|
27
|
+
# number of complex assets.
|
28
|
+
config.assets.debug = true
|
29
|
+
|
30
|
+
# Asset digests allow you to set far-future HTTP expiration dates on all assets,
|
31
|
+
# yet still be able to expire them through the digest params.
|
32
|
+
config.assets.digest = true
|
33
|
+
|
34
|
+
# Adds additional error checking when serving assets at runtime.
|
35
|
+
# Checks for improperly declared sprockets dependencies.
|
36
|
+
# Raises helpful error messages.
|
37
|
+
config.assets.raise_runtime_errors = true
|
38
|
+
|
39
|
+
# Raises error for missing translations
|
40
|
+
# config.action_view.raise_on_missing_translations = true
|
41
|
+
end
|
@@ -0,0 +1,78 @@
|
|
1
|
+
Rails.application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# Code is not reloaded between requests.
|
5
|
+
config.cache_classes = true
|
6
|
+
|
7
|
+
# Eager load code on boot. This eager loads most of Rails and
|
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.
|
14
|
+
config.consider_all_requests_local = false
|
15
|
+
config.action_controller.perform_caching = true
|
16
|
+
|
17
|
+
# Enable Rack::Cache to put a simple HTTP cache in front of your application
|
18
|
+
# Add `rack-cache` to your Gemfile before enabling this.
|
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 Rails's static asset server (Apache or NGINX will already do this).
|
24
|
+
config.serve_static_assets = false
|
25
|
+
|
26
|
+
# Compress JavaScripts and CSS.
|
27
|
+
config.assets.js_compressor = :uglifier
|
28
|
+
# config.assets.css_compressor = :sass
|
29
|
+
|
30
|
+
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
31
|
+
config.assets.compile = false
|
32
|
+
|
33
|
+
# Asset digests allow you to set far-future HTTP expiration dates on all assets,
|
34
|
+
# yet still be able to expire them through the digest params.
|
35
|
+
config.assets.digest = true
|
36
|
+
|
37
|
+
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
|
38
|
+
|
39
|
+
# Specifies the header that your server uses for sending files.
|
40
|
+
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
|
41
|
+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
|
42
|
+
|
43
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
44
|
+
# config.force_ssl = true
|
45
|
+
|
46
|
+
# Use the lowest log level to ensure availability of diagnostic information
|
47
|
+
# when problems arise.
|
48
|
+
config.log_level = :debug
|
49
|
+
|
50
|
+
# Prepend all log lines with the following tags.
|
51
|
+
# config.log_tags = [ :subdomain, :uuid ]
|
52
|
+
|
53
|
+
# Use a different logger for distributed setups.
|
54
|
+
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
55
|
+
|
56
|
+
# Use a different cache store in production.
|
57
|
+
# config.cache_store = :mem_cache_store
|
58
|
+
|
59
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
60
|
+
# config.action_controller.asset_host = 'http://assets.example.com'
|
61
|
+
|
62
|
+
# Ignore bad email addresses and do not raise email delivery errors.
|
63
|
+
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
64
|
+
# config.action_mailer.raise_delivery_errors = false
|
65
|
+
|
66
|
+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
67
|
+
# the I18n.default_locale when a translation cannot be found).
|
68
|
+
config.i18n.fallbacks = true
|
69
|
+
|
70
|
+
# Send deprecation notices to registered listeners.
|
71
|
+
config.active_support.deprecation = :notify
|
72
|
+
|
73
|
+
# Use default logging formatter so that PID and timestamp are not suppressed.
|
74
|
+
config.log_formatter = ::Logger::Formatter.new
|
75
|
+
|
76
|
+
# Do not dump schema after migrations.
|
77
|
+
config.active_record.dump_schema_after_migration = false
|
78
|
+
end
|