appmap 0.39.0 → 0.41.2
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 +2 -16
- data/CHANGELOG.md +28 -2
- data/CONTRIBUTING.md +22 -0
- data/README.md +113 -51
- data/Rakefile +3 -3
- data/lib/appmap/class_map.rb +25 -8
- data/lib/appmap/config.rb +48 -28
- data/lib/appmap/event.rb +14 -4
- data/lib/appmap/hook.rb +18 -3
- data/lib/appmap/hook/method.rb +1 -1
- data/lib/appmap/rails/request_handler.rb +8 -3
- data/lib/appmap/railtie.rb +1 -5
- data/lib/appmap/version.rb +1 -1
- data/spec/abstract_controller_base_spec.rb +2 -2
- data/spec/config_spec.rb +1 -0
- data/spec/fixtures/hook/exclude.rb +15 -0
- data/spec/fixtures/hook/labels.rb +6 -0
- data/spec/fixtures/rails5_users_app/Gemfile +2 -3
- data/spec/fixtures/rails5_users_app/appmap.yml +4 -1
- data/spec/fixtures/rails5_users_app/config/application.rb +2 -0
- data/spec/fixtures/rails5_users_app/docker-compose.yml +3 -0
- data/spec/fixtures/rails6_users_app/Gemfile +2 -3
- data/spec/fixtures/rails6_users_app/appmap.yml +4 -1
- data/spec/fixtures/rails6_users_app/config/application.rb +2 -0
- data/spec/fixtures/rails6_users_app/docker-compose.yml +3 -0
- data/spec/hook_spec.rb +41 -41
- data/spec/record_sql_rails_pg_spec.rb +1 -1
- data/spec/rspec_feature_metadata_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -0
- data/test/fixtures/gem_test/appmap.yml +1 -1
- data/test/fixtures/gem_test/test/parser_test.rb +12 -0
- data/test/gem_test.rb +4 -4
- metadata +6 -69
- data/spec/abstract_controller4_base_spec.rb +0 -66
- data/spec/fixtures/rails4_users_app/.gitignore +0 -13
- data/spec/fixtures/rails4_users_app/.rbenv-gemsets +0 -2
- data/spec/fixtures/rails4_users_app/.ruby-version +0 -1
- data/spec/fixtures/rails4_users_app/Dockerfile +0 -30
- data/spec/fixtures/rails4_users_app/Dockerfile.pg +0 -3
- data/spec/fixtures/rails4_users_app/Gemfile +0 -77
- data/spec/fixtures/rails4_users_app/README.rdoc +0 -28
- data/spec/fixtures/rails4_users_app/Rakefile +0 -6
- data/spec/fixtures/rails4_users_app/app/assets/images/.keep +0 -0
- data/spec/fixtures/rails4_users_app/app/assets/javascripts/application.js +0 -16
- data/spec/fixtures/rails4_users_app/app/assets/stylesheets/application.css +0 -15
- data/spec/fixtures/rails4_users_app/app/controllers/api/users_controller.rb +0 -27
- data/spec/fixtures/rails4_users_app/app/controllers/application_controller.rb +0 -5
- data/spec/fixtures/rails4_users_app/app/controllers/concerns/.keep +0 -0
- data/spec/fixtures/rails4_users_app/app/controllers/health_controller.rb +0 -5
- data/spec/fixtures/rails4_users_app/app/controllers/users_controller.rb +0 -5
- data/spec/fixtures/rails4_users_app/app/helpers/application_helper.rb +0 -2
- data/spec/fixtures/rails4_users_app/app/mailers/.keep +0 -0
- data/spec/fixtures/rails4_users_app/app/models/.keep +0 -0
- data/spec/fixtures/rails4_users_app/app/models/concerns/.keep +0 -0
- data/spec/fixtures/rails4_users_app/app/models/user.rb +0 -18
- data/spec/fixtures/rails4_users_app/app/views/layouts/application.html.haml +0 -7
- data/spec/fixtures/rails4_users_app/app/views/users/index.html.haml +0 -7
- data/spec/fixtures/rails4_users_app/appmap.yml +0 -3
- data/spec/fixtures/rails4_users_app/bin/rails +0 -9
- data/spec/fixtures/rails4_users_app/bin/setup +0 -29
- data/spec/fixtures/rails4_users_app/bin/spring +0 -17
- data/spec/fixtures/rails4_users_app/config.ru +0 -4
- data/spec/fixtures/rails4_users_app/config/application.rb +0 -26
- data/spec/fixtures/rails4_users_app/config/boot.rb +0 -3
- data/spec/fixtures/rails4_users_app/config/database.yml +0 -18
- data/spec/fixtures/rails4_users_app/config/environment.rb +0 -5
- data/spec/fixtures/rails4_users_app/config/environments/development.rb +0 -41
- data/spec/fixtures/rails4_users_app/config/environments/production.rb +0 -79
- data/spec/fixtures/rails4_users_app/config/environments/test.rb +0 -42
- data/spec/fixtures/rails4_users_app/config/initializers/assets.rb +0 -11
- data/spec/fixtures/rails4_users_app/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/fixtures/rails4_users_app/config/initializers/cookies_serializer.rb +0 -3
- data/spec/fixtures/rails4_users_app/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/fixtures/rails4_users_app/config/initializers/inflections.rb +0 -16
- data/spec/fixtures/rails4_users_app/config/initializers/mime_types.rb +0 -4
- data/spec/fixtures/rails4_users_app/config/initializers/session_store.rb +0 -3
- data/spec/fixtures/rails4_users_app/config/initializers/to_time_preserves_timezone.rb +0 -10
- data/spec/fixtures/rails4_users_app/config/initializers/wrap_parameters.rb +0 -14
- data/spec/fixtures/rails4_users_app/config/locales/en.yml +0 -23
- data/spec/fixtures/rails4_users_app/config/routes.rb +0 -12
- data/spec/fixtures/rails4_users_app/config/secrets.yml +0 -22
- data/spec/fixtures/rails4_users_app/create_app +0 -23
- data/spec/fixtures/rails4_users_app/db/migrate/20191127112304_create_users.rb +0 -10
- data/spec/fixtures/rails4_users_app/db/schema.rb +0 -26
- data/spec/fixtures/rails4_users_app/db/seeds.rb +0 -7
- data/spec/fixtures/rails4_users_app/docker-compose.yml +0 -26
- data/spec/fixtures/rails4_users_app/lib/assets/.keep +0 -0
- data/spec/fixtures/rails4_users_app/lib/tasks/.keep +0 -0
- data/spec/fixtures/rails4_users_app/log/.keep +0 -0
- data/spec/fixtures/rails4_users_app/public/404.html +0 -67
- data/spec/fixtures/rails4_users_app/public/422.html +0 -67
- data/spec/fixtures/rails4_users_app/public/500.html +0 -66
- data/spec/fixtures/rails4_users_app/public/favicon.ico +0 -0
- data/spec/fixtures/rails4_users_app/public/robots.txt +0 -5
- data/spec/fixtures/rails4_users_app/spec/controllers/users_controller_api_spec.rb +0 -49
- data/spec/fixtures/rails4_users_app/spec/rails_helper.rb +0 -95
- data/spec/fixtures/rails4_users_app/spec/spec_helper.rb +0 -96
- data/spec/fixtures/rails4_users_app/test/fixtures/users.yml +0 -9
- data/spec/record_sql_rails4_pg_spec.rb +0 -75
- data/test/fixtures/gem_test/test/to_param_test.rb +0 -14
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
source 'https://rubygems.org'
|
|
2
|
-
git_source(:github) { |name| "https://github.com/#{name}.git" }
|
|
3
|
-
|
|
4
|
-
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
|
5
|
-
gem 'rails', '4.2.11'
|
|
6
|
-
gem 'haml-rails'
|
|
7
|
-
|
|
8
|
-
# Use postgresql as the database for Active Record
|
|
9
|
-
gem 'pg', '~> 0.15'
|
|
10
|
-
# Use SCSS for stylesheets
|
|
11
|
-
gem 'sass-rails', '~> 5.0'
|
|
12
|
-
# Use Uglifier as compressor for JavaScript assets
|
|
13
|
-
# gem 'uglifier', '>= 1.3.0'
|
|
14
|
-
# Use CoffeeScript for .coffee assets and views
|
|
15
|
-
# gem 'coffee-rails', '~> 4.1.0'
|
|
16
|
-
# See https://github.com/rails/execjs#readme for more supported runtimes
|
|
17
|
-
# gem 'therubyracer', platforms: :ruby
|
|
18
|
-
|
|
19
|
-
# Use jquery as the JavaScript library
|
|
20
|
-
# gem 'jquery-rails'
|
|
21
|
-
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
|
|
22
|
-
gem 'turbolinks'
|
|
23
|
-
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
|
24
|
-
gem 'jbuilder', '~> 2.0'
|
|
25
|
-
# bundle exec rake doc:rails generates the API under doc/api.
|
|
26
|
-
gem 'sdoc', '~> 0.4.0', group: :doc
|
|
27
|
-
|
|
28
|
-
# Use ActiveModel has_secure_password
|
|
29
|
-
gem 'bcrypt', '~> 3.1.7'
|
|
30
|
-
|
|
31
|
-
# Use Unicorn as the app server
|
|
32
|
-
# gem 'unicorn'
|
|
33
|
-
|
|
34
|
-
# Use Capistrano for deployment
|
|
35
|
-
# gem 'capistrano-rails', group: :development
|
|
36
|
-
|
|
37
|
-
appmap_path = \
|
|
38
|
-
# Support debugging inside the container with volume-mounted source
|
|
39
|
-
if File.directory?('/src/appmap-ruby')
|
|
40
|
-
'/src/appmap-ruby'
|
|
41
|
-
elsif File.exist?('../../../appmap.gemspec')
|
|
42
|
-
'../../..'
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
if appmap_path
|
|
46
|
-
# Set the branch parameter, so that 'bundle config local.appmap' will work
|
|
47
|
-
appmap_branch = Dir.chdir appmap_path do
|
|
48
|
-
`git rev-parse --abbrev-ref HEAD`.strip
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
appmap_options = \
|
|
53
|
-
if appmap_path && appmap_branch
|
|
54
|
-
{ git: appmap_path, branch: appmap_branch }
|
|
55
|
-
elsif appmap_path
|
|
56
|
-
{ path: appmap_path }
|
|
57
|
-
else
|
|
58
|
-
{}
|
|
59
|
-
end.merge(require: %w[appmap appmap/railtie])
|
|
60
|
-
|
|
61
|
-
gem 'appmap', appmap_options
|
|
62
|
-
|
|
63
|
-
group :development, :test do
|
|
64
|
-
gem 'rspec-rails'
|
|
65
|
-
gem 'database_cleaner'
|
|
66
|
-
|
|
67
|
-
gem 'pry-byebug'
|
|
68
|
-
end
|
|
69
|
-
|
|
70
|
-
group :development do
|
|
71
|
-
# Access an IRB console on exception pages or by using <%= console %> in views
|
|
72
|
-
gem 'web-console', '~> 2.0'
|
|
73
|
-
|
|
74
|
-
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
|
75
|
-
gem 'spring'
|
|
76
|
-
end
|
|
77
|
-
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
== README
|
|
2
|
-
|
|
3
|
-
This README would normally document whatever steps are necessary to get the
|
|
4
|
-
application up and running.
|
|
5
|
-
|
|
6
|
-
Things you may want to cover:
|
|
7
|
-
|
|
8
|
-
* Ruby version
|
|
9
|
-
|
|
10
|
-
* System dependencies
|
|
11
|
-
|
|
12
|
-
* Configuration
|
|
13
|
-
|
|
14
|
-
* Database creation
|
|
15
|
-
|
|
16
|
-
* Database initialization
|
|
17
|
-
|
|
18
|
-
* How to run the test suite
|
|
19
|
-
|
|
20
|
-
* Services (job queues, cache servers, search engines, etc.)
|
|
21
|
-
|
|
22
|
-
* Deployment instructions
|
|
23
|
-
|
|
24
|
-
* ...
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
Please feel free to use a different markup language if you do not plan to run
|
|
28
|
-
<tt>rake doc:app</tt>.
|
|
File without changes
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
|
2
|
-
// listed below.
|
|
3
|
-
//
|
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
|
5
|
-
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
|
6
|
-
//
|
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
|
8
|
-
// compiled file.
|
|
9
|
-
//
|
|
10
|
-
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
|
11
|
-
// about supported directives.
|
|
12
|
-
//
|
|
13
|
-
//= require jquery
|
|
14
|
-
//= require jquery_ujs
|
|
15
|
-
//= require turbolinks
|
|
16
|
-
//= require_tree .
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
|
3
|
-
* listed below.
|
|
4
|
-
*
|
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
|
6
|
-
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
|
7
|
-
*
|
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any styles
|
|
10
|
-
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
|
11
|
-
* file per style scope.
|
|
12
|
-
*
|
|
13
|
-
*= require_tree .
|
|
14
|
-
*= require_self
|
|
15
|
-
*/
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
module Api
|
|
2
|
-
class UsersController < ApplicationController
|
|
3
|
-
def index
|
|
4
|
-
@users = User.all
|
|
5
|
-
render json: @users
|
|
6
|
-
end
|
|
7
|
-
|
|
8
|
-
def create
|
|
9
|
-
@user = build_user(params.slice(:login).to_unsafe_h)
|
|
10
|
-
unless @user.valid?
|
|
11
|
-
error = {
|
|
12
|
-
code: 'invalid',
|
|
13
|
-
target: 'User',
|
|
14
|
-
message: @user.errors.full_messages.join(', '),
|
|
15
|
-
details: @user.errors.map { |k, v| { code: 'invalid', target: k, message: Array(v).join(', ') } }
|
|
16
|
-
}
|
|
17
|
-
return render json: error, status: :unprocessable_entity
|
|
18
|
-
end
|
|
19
|
-
@user.save
|
|
20
|
-
render json: @user, status: :created
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
def build_user(params)
|
|
24
|
-
User.new(params)
|
|
25
|
-
end
|
|
26
|
-
end
|
|
27
|
-
end
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
class User < ActiveRecord::Base
|
|
2
|
-
has_secure_password validations: false
|
|
3
|
-
validates_presence_of :login
|
|
4
|
-
validates_confirmation_of :password, if: -> { password_provided? }
|
|
5
|
-
|
|
6
|
-
def authenticate(unencrypted)
|
|
7
|
-
# Just be extra sure that empty passwords aren't accepted
|
|
8
|
-
return false if unencrypted.blank? || password.blank?
|
|
9
|
-
|
|
10
|
-
super
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
protected
|
|
14
|
-
|
|
15
|
-
def password_provided?
|
|
16
|
-
!(password.blank? && password_confirmation.blank?)
|
|
17
|
-
end
|
|
18
|
-
end
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
begin
|
|
3
|
-
load File.expand_path('../spring', __FILE__)
|
|
4
|
-
rescue LoadError => e
|
|
5
|
-
raise unless e.message.include?('spring')
|
|
6
|
-
end
|
|
7
|
-
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
|
8
|
-
require_relative '../config/boot'
|
|
9
|
-
require 'rails/commands'
|
|
@@ -1,29 +0,0 @@
|
|
|
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
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
|
|
3
|
-
# This file loads Spring without using Bundler, in order to be fast.
|
|
4
|
-
# It gets overwritten when you run the `spring binstub` command.
|
|
5
|
-
|
|
6
|
-
unless defined?(Spring)
|
|
7
|
-
require 'rubygems'
|
|
8
|
-
require 'bundler'
|
|
9
|
-
|
|
10
|
-
lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read)
|
|
11
|
-
spring = lockfile.specs.detect { |spec| spec.name == 'spring' }
|
|
12
|
-
if spring
|
|
13
|
-
Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
|
|
14
|
-
gem 'spring', spring.version
|
|
15
|
-
require 'spring/binstub'
|
|
16
|
-
end
|
|
17
|
-
end
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
require File.expand_path('../boot', __FILE__)
|
|
2
|
-
|
|
3
|
-
require 'rails/all'
|
|
4
|
-
|
|
5
|
-
# Require the gems listed in Gemfile, including any gems
|
|
6
|
-
# you've limited to :test, :development, or :production.
|
|
7
|
-
Bundler.require(*Rails.groups)
|
|
8
|
-
|
|
9
|
-
module Users
|
|
10
|
-
class Application < Rails::Application
|
|
11
|
-
# Settings in config/environments/* take precedence over those specified here.
|
|
12
|
-
# Application configuration should go into files in config/initializers
|
|
13
|
-
# -- all .rb files in that directory are automatically loaded.
|
|
14
|
-
|
|
15
|
-
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
|
16
|
-
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
|
17
|
-
# config.time_zone = 'Central Time (US & Canada)'
|
|
18
|
-
|
|
19
|
-
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
|
20
|
-
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
|
21
|
-
# config.i18n.default_locale = :de
|
|
22
|
-
|
|
23
|
-
# Do not swallow errors in after_commit/after_rollback callbacks.
|
|
24
|
-
config.active_record.raise_in_transactional_callbacks = true
|
|
25
|
-
end
|
|
26
|
-
end
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
default: &default
|
|
2
|
-
host: <%= ENV['PGHOST'] || 'pg' %>
|
|
3
|
-
port: <%= ENV['PGPORT'] || 5432 %>
|
|
4
|
-
user: postgres
|
|
5
|
-
adapter: postgresql
|
|
6
|
-
encoding: unicode
|
|
7
|
-
# For details on connection pooling, see Rails configuration guide
|
|
8
|
-
# http://guides.rubyonrails.org/configuring.html#database-pooling
|
|
9
|
-
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
|
10
|
-
|
|
11
|
-
development:
|
|
12
|
-
<<: *default
|
|
13
|
-
database: app4_development
|
|
14
|
-
test:
|
|
15
|
-
<<: *default
|
|
16
|
-
database: app4_test
|
|
17
|
-
production:
|
|
18
|
-
<<: *default
|
|
@@ -1,41 +0,0 @@
|
|
|
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
|
|
@@ -1,79 +0,0 @@
|
|
|
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 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?
|
|
26
|
-
|
|
27
|
-
# Compress JavaScripts and CSS.
|
|
28
|
-
config.assets.js_compressor = :uglifier
|
|
29
|
-
# config.assets.css_compressor = :sass
|
|
30
|
-
|
|
31
|
-
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
|
32
|
-
config.assets.compile = false
|
|
33
|
-
|
|
34
|
-
# Asset digests allow you to set far-future HTTP expiration dates on all assets,
|
|
35
|
-
# yet still be able to expire them through the digest params.
|
|
36
|
-
config.assets.digest = true
|
|
37
|
-
|
|
38
|
-
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
|
|
39
|
-
|
|
40
|
-
# Specifies the header that your server uses for sending files.
|
|
41
|
-
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
|
|
42
|
-
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
|
|
43
|
-
|
|
44
|
-
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
|
45
|
-
# config.force_ssl = true
|
|
46
|
-
|
|
47
|
-
# Use the lowest log level to ensure availability of diagnostic information
|
|
48
|
-
# when problems arise.
|
|
49
|
-
config.log_level = :debug
|
|
50
|
-
|
|
51
|
-
# Prepend all log lines with the following tags.
|
|
52
|
-
# config.log_tags = [ :subdomain, :uuid ]
|
|
53
|
-
|
|
54
|
-
# Use a different logger for distributed setups.
|
|
55
|
-
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
|
56
|
-
|
|
57
|
-
# Use a different cache store in production.
|
|
58
|
-
# config.cache_store = :mem_cache_store
|
|
59
|
-
|
|
60
|
-
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
|
61
|
-
# config.action_controller.asset_host = 'http://assets.example.com'
|
|
62
|
-
|
|
63
|
-
# Ignore bad email addresses and do not raise email delivery errors.
|
|
64
|
-
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
|
65
|
-
# config.action_mailer.raise_delivery_errors = false
|
|
66
|
-
|
|
67
|
-
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
|
68
|
-
# the I18n.default_locale when a translation cannot be found).
|
|
69
|
-
config.i18n.fallbacks = true
|
|
70
|
-
|
|
71
|
-
# Send deprecation notices to registered listeners.
|
|
72
|
-
config.active_support.deprecation = :notify
|
|
73
|
-
|
|
74
|
-
# Use default logging formatter so that PID and timestamp are not suppressed.
|
|
75
|
-
config.log_formatter = ::Logger::Formatter.new
|
|
76
|
-
|
|
77
|
-
# Do not dump schema after migrations.
|
|
78
|
-
config.active_record.dump_schema_after_migration = false
|
|
79
|
-
end
|