Commit 044d5d53 authored by dgt's avatar dgt Committed by azul

Update: Add some new Rails 5.2 config params

parent 90660898
source 'https://rubygems.org'
# ensure github urls use https rather than insecure git protocol.
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?('/')
"https://github.com/#{repo_name}.git"
end
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
##
# Core components
......@@ -24,7 +21,9 @@ gem 'rake', '~> 10.0', require: false
# Application preloader for faster start time
gem 'spring', group: :development
# translating strings for the user interface
# reduces boot times through caching; required in config/boot.rb
gem 'bootsnap', '>= 1.1.0', require: false
# locking in to latest major to fix API
gem 'i18n', '~> 0.7'
......@@ -170,6 +169,7 @@ group :production do
# runs independendly - so no version restriction for now
# TODO: check if we want this or nodejs
gem 'therubyracer'
# gem 'mini_racer', platforms: :ruby # new default in Rails 5.2
end
group :production, :development do
......@@ -193,6 +193,8 @@ group :test, :development do
gem 'byebug'
end
gem 'web-console', group: :development
group :test, :ci do
##
## TESTS
......
......@@ -68,6 +68,9 @@ GEM
public_suffix (>= 2.0.2, < 4.0)
arel (9.0.0)
bcrypt (3.1.12)
bindex (0.7.0)
bootsnap (1.4.4)
msgpack (~> 1.0)
builder (3.2.3)
bundler-audit (0.6.1)
bundler (>= 1.2.0, < 3)
......@@ -128,8 +131,8 @@ GEM
i18n (0.9.5)
concurrent-ruby (~> 1.0)
innertube (1.1.0)
joiner (0.3.4)
activerecord (>= 4.1.0)
joiner (0.4.2)
activerecord (>= 5.2.beta1)
json (1.8.6)
libv8 (3.16.14.19)
loofah (2.2.3)
......@@ -151,6 +154,7 @@ GEM
mini_mime (1.0.1)
mini_portile2 (2.4.0)
minitest (5.10.3)
msgpack (1.2.10)
mysql2 (0.5.2)
nio4r (2.3.1)
nokogiri (1.10.3)
......@@ -232,7 +236,7 @@ GEM
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.4.0)
sqlite3 (1.4.1)
sys-uname (0.9.0)
ffi (>= 1.0.0)
temple (0.8.1)
......@@ -262,6 +266,11 @@ GEM
activesupport
validates_email_format_of (1.6.3)
i18n
web-console (3.7.0)
actionview (>= 5.0)
activemodel (>= 5.0)
bindex (>= 0.4.0)
railties (>= 5.0)
websocket-driver (0.7.0)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.3)
......@@ -283,6 +292,7 @@ DEPENDENCIES
acts-as-taggable-on (~> 6.0)
acts_as_list (~> 0.4)
bcrypt (~> 3.1.7)
bootsnap (>= 1.1.0)
bundler-audit
byebug
capybara
......@@ -323,6 +333,7 @@ DEPENDENCIES
uglifier (>= 1.3.0)
utf8-cleaner
validates_email_format_of (~> 1.6)
web-console
whenever
will_paginate (~> 3.1)
zip-zip
......
......@@ -18,6 +18,15 @@ module Crabgrass
# config.load_defaults 5.2
# Rails 5.2 migration
#
# TODO: remove to use the new default
# Rails now embeds the expiry information also in encrypted
# or signed cookies value.
# This new embed information make those cookies incompatible with
# versions of Rails older than 5.2.
config.action_dispatch.use_authenticated_cookie_encryption = false
config.autoload_paths << "#{Rails.root}/lib"
config.autoload_paths << "#{Rails.root}/app/models"
......
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
require 'bundler/setup' # Set up gems listed in the Gemfile.
require 'bootsnap/setup' # Speed up boot time by caching expensive operations.
......@@ -13,6 +13,9 @@ Crabgrass::Application.configure do
config.action_mailer.raise_delivery_errors = false
config.log_level = Conf.log_level || :debug
# Highlight code that triggered database queries in logs.
config.active_record.verbose_query_logs = true
config.action_mailer.default_url_options = { host: 'localhost' }
## FIXME: when reloading plugins is enabled, SearchFilter.filters will be
## empty after the first request.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment