Update to rails 6.1.3.2
This commit is contained in:
parent
c3cc8ea541
commit
a71b8af4d1
16 changed files with 309 additions and 103 deletions
4
Gemfile
4
Gemfile
|
@ -1,7 +1,7 @@
|
||||||
source "https://rubygems.org"
|
source "https://rubygems.org"
|
||||||
|
|
||||||
# Require rails
|
# Require rails
|
||||||
gem "rails", "6.0.3.7"
|
gem "rails", "6.1.3.2"
|
||||||
|
|
||||||
# Require json for multi_json
|
# Require json for multi_json
|
||||||
gem "json"
|
gem "json"
|
||||||
|
@ -40,7 +40,7 @@ gem "active_record_union"
|
||||||
gem "bootstrap", "~> 4.5.0"
|
gem "bootstrap", "~> 4.5.0"
|
||||||
gem "bootstrap_form", "~> 4.0"
|
gem "bootstrap_form", "~> 4.0"
|
||||||
gem "cancancan"
|
gem "cancancan"
|
||||||
gem "composite_primary_keys", "~> 12.0.0"
|
gem "composite_primary_keys", "~> 13.0.0"
|
||||||
gem "config"
|
gem "config"
|
||||||
gem "delayed_job_active_record"
|
gem "delayed_job_active_record"
|
||||||
gem "http_accept_language", "~> 2.1.1"
|
gem "http_accept_language", "~> 2.1.1"
|
||||||
|
|
133
Gemfile.lock
133
Gemfile.lock
|
@ -3,67 +3,71 @@ GEM
|
||||||
specs:
|
specs:
|
||||||
aasm (5.2.0)
|
aasm (5.2.0)
|
||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
actioncable (6.0.3.7)
|
actioncable (6.1.3.2)
|
||||||
actionpack (= 6.0.3.7)
|
actionpack (= 6.1.3.2)
|
||||||
|
activesupport (= 6.1.3.2)
|
||||||
nio4r (~> 2.0)
|
nio4r (~> 2.0)
|
||||||
websocket-driver (>= 0.6.1)
|
websocket-driver (>= 0.6.1)
|
||||||
actionmailbox (6.0.3.7)
|
actionmailbox (6.1.3.2)
|
||||||
actionpack (= 6.0.3.7)
|
actionpack (= 6.1.3.2)
|
||||||
activejob (= 6.0.3.7)
|
activejob (= 6.1.3.2)
|
||||||
activerecord (= 6.0.3.7)
|
activerecord (= 6.1.3.2)
|
||||||
activestorage (= 6.0.3.7)
|
activestorage (= 6.1.3.2)
|
||||||
activesupport (= 6.0.3.7)
|
activesupport (= 6.1.3.2)
|
||||||
mail (>= 2.7.1)
|
mail (>= 2.7.1)
|
||||||
actionmailer (6.0.3.7)
|
actionmailer (6.1.3.2)
|
||||||
actionpack (= 6.0.3.7)
|
actionpack (= 6.1.3.2)
|
||||||
actionview (= 6.0.3.7)
|
actionview (= 6.1.3.2)
|
||||||
activejob (= 6.0.3.7)
|
activejob (= 6.1.3.2)
|
||||||
|
activesupport (= 6.1.3.2)
|
||||||
mail (~> 2.5, >= 2.5.4)
|
mail (~> 2.5, >= 2.5.4)
|
||||||
rails-dom-testing (~> 2.0)
|
rails-dom-testing (~> 2.0)
|
||||||
actionpack (6.0.3.7)
|
actionpack (6.1.3.2)
|
||||||
actionview (= 6.0.3.7)
|
actionview (= 6.1.3.2)
|
||||||
activesupport (= 6.0.3.7)
|
activesupport (= 6.1.3.2)
|
||||||
rack (~> 2.0, >= 2.0.8)
|
rack (~> 2.0, >= 2.0.9)
|
||||||
rack-test (>= 0.6.3)
|
rack-test (>= 0.6.3)
|
||||||
rails-dom-testing (~> 2.0)
|
rails-dom-testing (~> 2.0)
|
||||||
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
||||||
actionpack-page_caching (1.2.3)
|
actionpack-page_caching (1.2.3)
|
||||||
actionpack (>= 5.0.0)
|
actionpack (>= 5.0.0)
|
||||||
actiontext (6.0.3.7)
|
actiontext (6.1.3.2)
|
||||||
actionpack (= 6.0.3.7)
|
actionpack (= 6.1.3.2)
|
||||||
activerecord (= 6.0.3.7)
|
activerecord (= 6.1.3.2)
|
||||||
activestorage (= 6.0.3.7)
|
activestorage (= 6.1.3.2)
|
||||||
activesupport (= 6.0.3.7)
|
activesupport (= 6.1.3.2)
|
||||||
nokogiri (>= 1.8.5)
|
nokogiri (>= 1.8.5)
|
||||||
actionview (6.0.3.7)
|
actionview (6.1.3.2)
|
||||||
activesupport (= 6.0.3.7)
|
activesupport (= 6.1.3.2)
|
||||||
builder (~> 3.1)
|
builder (~> 3.1)
|
||||||
erubi (~> 1.4)
|
erubi (~> 1.4)
|
||||||
rails-dom-testing (~> 2.0)
|
rails-dom-testing (~> 2.0)
|
||||||
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
||||||
active_record_union (1.3.0)
|
active_record_union (1.3.0)
|
||||||
activerecord (>= 4.0)
|
activerecord (>= 4.0)
|
||||||
activejob (6.0.3.7)
|
activejob (6.1.3.2)
|
||||||
activesupport (= 6.0.3.7)
|
activesupport (= 6.1.3.2)
|
||||||
globalid (>= 0.3.6)
|
globalid (>= 0.3.6)
|
||||||
activemodel (6.0.3.7)
|
activemodel (6.1.3.2)
|
||||||
activesupport (= 6.0.3.7)
|
activesupport (= 6.1.3.2)
|
||||||
activerecord (6.0.3.7)
|
activerecord (6.1.3.2)
|
||||||
activemodel (= 6.0.3.7)
|
activemodel (= 6.1.3.2)
|
||||||
activesupport (= 6.0.3.7)
|
activesupport (= 6.1.3.2)
|
||||||
activerecord-import (1.0.8)
|
activerecord-import (1.0.8)
|
||||||
activerecord (>= 3.2)
|
activerecord (>= 3.2)
|
||||||
activestorage (6.0.3.7)
|
activestorage (6.1.3.2)
|
||||||
actionpack (= 6.0.3.7)
|
actionpack (= 6.1.3.2)
|
||||||
activejob (= 6.0.3.7)
|
activejob (= 6.1.3.2)
|
||||||
activerecord (= 6.0.3.7)
|
activerecord (= 6.1.3.2)
|
||||||
|
activesupport (= 6.1.3.2)
|
||||||
marcel (~> 1.0.0)
|
marcel (~> 1.0.0)
|
||||||
activesupport (6.0.3.7)
|
mini_mime (~> 1.0.2)
|
||||||
|
activesupport (6.1.3.2)
|
||||||
concurrent-ruby (~> 1.0, >= 1.0.2)
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
||||||
i18n (>= 0.7, < 2)
|
i18n (>= 1.6, < 2)
|
||||||
minitest (~> 5.1)
|
minitest (>= 5.1)
|
||||||
tzinfo (~> 1.1)
|
tzinfo (~> 2.0)
|
||||||
zeitwerk (~> 2.2, >= 2.2.2)
|
zeitwerk (~> 2.3)
|
||||||
addressable (2.7.0)
|
addressable (2.7.0)
|
||||||
public_suffix (>= 2.0.2, < 5.0)
|
public_suffix (>= 2.0.2, < 5.0)
|
||||||
annotate (3.1.1)
|
annotate (3.1.1)
|
||||||
|
@ -129,8 +133,8 @@ GEM
|
||||||
xpath (~> 3.2)
|
xpath (~> 3.2)
|
||||||
childprocess (3.0.0)
|
childprocess (3.0.0)
|
||||||
coderay (1.1.3)
|
coderay (1.1.3)
|
||||||
composite_primary_keys (12.0.10)
|
composite_primary_keys (13.0.0)
|
||||||
activerecord (~> 6.0.0)
|
activerecord (~> 6.1.0)
|
||||||
concurrent-ruby (1.1.8)
|
concurrent-ruby (1.1.8)
|
||||||
config (3.1.0)
|
config (3.1.0)
|
||||||
deep_merge (~> 1.2, >= 1.2.1)
|
deep_merge (~> 1.2, >= 1.2.1)
|
||||||
|
@ -263,7 +267,7 @@ GEM
|
||||||
maxminddb (0.1.22)
|
maxminddb (0.1.22)
|
||||||
method_source (1.0.0)
|
method_source (1.0.0)
|
||||||
mini_magick (4.11.0)
|
mini_magick (4.11.0)
|
||||||
mini_mime (1.1.0)
|
mini_mime (1.0.3)
|
||||||
mini_portile2 (2.5.1)
|
mini_portile2 (2.5.1)
|
||||||
minitest (5.14.4)
|
minitest (5.14.4)
|
||||||
msgpack (1.4.2)
|
msgpack (1.4.2)
|
||||||
|
@ -344,20 +348,20 @@ GEM
|
||||||
rack-test (1.1.0)
|
rack-test (1.1.0)
|
||||||
rack (>= 1.0, < 3)
|
rack (>= 1.0, < 3)
|
||||||
rack-uri_sanitizer (0.0.2)
|
rack-uri_sanitizer (0.0.2)
|
||||||
rails (6.0.3.7)
|
rails (6.1.3.2)
|
||||||
actioncable (= 6.0.3.7)
|
actioncable (= 6.1.3.2)
|
||||||
actionmailbox (= 6.0.3.7)
|
actionmailbox (= 6.1.3.2)
|
||||||
actionmailer (= 6.0.3.7)
|
actionmailer (= 6.1.3.2)
|
||||||
actionpack (= 6.0.3.7)
|
actionpack (= 6.1.3.2)
|
||||||
actiontext (= 6.0.3.7)
|
actiontext (= 6.1.3.2)
|
||||||
actionview (= 6.0.3.7)
|
actionview (= 6.1.3.2)
|
||||||
activejob (= 6.0.3.7)
|
activejob (= 6.1.3.2)
|
||||||
activemodel (= 6.0.3.7)
|
activemodel (= 6.1.3.2)
|
||||||
activerecord (= 6.0.3.7)
|
activerecord (= 6.1.3.2)
|
||||||
activestorage (= 6.0.3.7)
|
activestorage (= 6.1.3.2)
|
||||||
activesupport (= 6.0.3.7)
|
activesupport (= 6.1.3.2)
|
||||||
bundler (>= 1.3.0)
|
bundler (>= 1.15.0)
|
||||||
railties (= 6.0.3.7)
|
railties (= 6.1.3.2)
|
||||||
sprockets-rails (>= 2.0.0)
|
sprockets-rails (>= 2.0.0)
|
||||||
rails-controller-testing (1.0.5)
|
rails-controller-testing (1.0.5)
|
||||||
actionpack (>= 5.0.1.rc1)
|
actionpack (>= 5.0.1.rc1)
|
||||||
|
@ -371,12 +375,12 @@ GEM
|
||||||
rails-i18n (6.0.0)
|
rails-i18n (6.0.0)
|
||||||
i18n (>= 0.7, < 2)
|
i18n (>= 0.7, < 2)
|
||||||
railties (>= 6.0.0, < 7)
|
railties (>= 6.0.0, < 7)
|
||||||
railties (6.0.3.7)
|
railties (6.1.3.2)
|
||||||
actionpack (= 6.0.3.7)
|
actionpack (= 6.1.3.2)
|
||||||
activesupport (= 6.0.3.7)
|
activesupport (= 6.1.3.2)
|
||||||
method_source
|
method_source
|
||||||
rake (>= 0.8.7)
|
rake (>= 0.8.7)
|
||||||
thor (>= 0.20.3, < 2.0)
|
thor (~> 1.0)
|
||||||
rainbow (3.0.0)
|
rainbow (3.0.0)
|
||||||
rake (13.0.3)
|
rake (13.0.3)
|
||||||
rb-fsevent (0.11.0)
|
rb-fsevent (0.11.0)
|
||||||
|
@ -448,10 +452,9 @@ GEM
|
||||||
strong_migrations (0.7.6)
|
strong_migrations (0.7.6)
|
||||||
activerecord (>= 5)
|
activerecord (>= 5)
|
||||||
thor (1.1.0)
|
thor (1.1.0)
|
||||||
thread_safe (0.3.6)
|
|
||||||
tilt (2.0.10)
|
tilt (2.0.10)
|
||||||
tzinfo (1.2.9)
|
tzinfo (2.0.4)
|
||||||
thread_safe (~> 0.1)
|
concurrent-ruby (~> 1.0)
|
||||||
uglifier (4.2.0)
|
uglifier (4.2.0)
|
||||||
execjs (>= 0.3.0, < 3)
|
execjs (>= 0.3.0, < 3)
|
||||||
unicode-display_width (2.0.0)
|
unicode-display_width (2.0.0)
|
||||||
|
@ -491,7 +494,7 @@ DEPENDENCIES
|
||||||
cancancan
|
cancancan
|
||||||
canonical-rails
|
canonical-rails
|
||||||
capybara (>= 2.15)
|
capybara (>= 2.15)
|
||||||
composite_primary_keys (~> 12.0.0)
|
composite_primary_keys (~> 13.0.0)
|
||||||
config
|
config
|
||||||
dalli
|
dalli
|
||||||
debug_inspector
|
debug_inspector
|
||||||
|
@ -533,7 +536,7 @@ DEPENDENCIES
|
||||||
r2 (~> 0.2.7)
|
r2 (~> 0.2.7)
|
||||||
rack-cors
|
rack-cors
|
||||||
rack-uri_sanitizer
|
rack-uri_sanitizer
|
||||||
rails (= 6.0.3.7)
|
rails (= 6.1.3.2)
|
||||||
rails-controller-testing
|
rails-controller-testing
|
||||||
rails-i18n (~> 6.0.0)
|
rails-i18n (~> 6.0.0)
|
||||||
rinku (>= 2.0.6)
|
rinku (>= 2.0.6)
|
||||||
|
|
|
@ -9,8 +9,8 @@ def system!(*args)
|
||||||
end
|
end
|
||||||
|
|
||||||
FileUtils.chdir APP_ROOT do
|
FileUtils.chdir APP_ROOT do
|
||||||
# This script is a way to setup or update your development environment automatically.
|
# This script is a way to set up or update your development environment automatically.
|
||||||
# This script is idempotent, so that you can run it at anytime and get an expectable outcome.
|
# This script is idempotent, so that you can run it at any time and get an expectable outcome.
|
||||||
# Add necessary setup steps to this file.
|
# Add necessary setup steps to this file.
|
||||||
|
|
||||||
puts "== Installing dependencies =="
|
puts "== Installing dependencies =="
|
||||||
|
@ -18,7 +18,7 @@ FileUtils.chdir APP_ROOT do
|
||||||
system("bundle check") || system!("bundle install")
|
system("bundle check") || system!("bundle install")
|
||||||
|
|
||||||
# Install JavaScript dependencies
|
# Install JavaScript dependencies
|
||||||
# system('bin/yarn')
|
system! "bin/yarn"
|
||||||
|
|
||||||
# puts "\n== Copying sample files =="
|
# puts "\n== Copying sample files =="
|
||||||
# unless File.exist?('config/database.yml')
|
# unless File.exist?('config/database.yml')
|
||||||
|
|
12
bin/yarn
12
bin/yarn
|
@ -1,9 +1,17 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
APP_ROOT = File.expand_path("..", __dir__)
|
APP_ROOT = File.expand_path("..", __dir__)
|
||||||
Dir.chdir(APP_ROOT) do
|
Dir.chdir(APP_ROOT) do
|
||||||
exec "yarnpkg", *ARGV
|
yarn = ENV["PATH"].split(File::PATH_SEPARATOR)
|
||||||
rescue Errno::ENOENT
|
.reject { |dir| File.expand_path(dir) == __dir__ }
|
||||||
|
.product(["yarnpkg", "yarn", "yarn.cmd", "yarn.ps1"])
|
||||||
|
.map { |dir, file| File.expand_path(file, dir) }
|
||||||
|
.find { |file| File.executable?(file) }
|
||||||
|
|
||||||
|
if yarn
|
||||||
|
exec yarn, *ARGV
|
||||||
|
else
|
||||||
warn "Yarn executable was not detected in the system."
|
warn "Yarn executable was not detected in the system."
|
||||||
warn "Download Yarn at https://yarnpkg.com/en/docs/install"
|
warn "Download Yarn at https://yarnpkg.com/en/docs/install"
|
||||||
exit 1
|
exit 1
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -3,3 +3,4 @@
|
||||||
require_relative "config/environment"
|
require_relative "config/environment"
|
||||||
|
|
||||||
run Rails.application
|
run Rails.application
|
||||||
|
Rails.application.load_server
|
||||||
|
|
|
@ -2,7 +2,7 @@ development:
|
||||||
adapter: async
|
adapter: async
|
||||||
|
|
||||||
test:
|
test:
|
||||||
adapter: async
|
adapter: test
|
||||||
|
|
||||||
production:
|
production:
|
||||||
adapter: redis
|
adapter: redis
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
|
require "active_support/core_ext/integer/time"
|
||||||
|
|
||||||
Rails.application.configure do
|
Rails.application.configure do
|
||||||
# Settings specified here will take precedence over those in config/application.rb.
|
# Settings specified here will take precedence over those in config/application.rb.
|
||||||
|
|
||||||
# In the development environment your application's code is reloaded on
|
# In the development environment your application's code is reloaded any time
|
||||||
# every request. This slows down response time but is perfect for development
|
# it changes. This slows down response time but is perfect for development
|
||||||
# since you don't have to restart the web server when you make code changes.
|
# since you don't have to restart the web server when you make code changes.
|
||||||
config.cache_classes = false
|
config.cache_classes = false
|
||||||
|
|
||||||
|
@ -39,6 +41,12 @@ Rails.application.configure do
|
||||||
# Print deprecation notices to the Rails logger.
|
# Print deprecation notices to the Rails logger.
|
||||||
config.active_support.deprecation = :log
|
config.active_support.deprecation = :log
|
||||||
|
|
||||||
|
# Raise exceptions for disallowed deprecations.
|
||||||
|
config.active_support.disallowed_deprecation = :raise
|
||||||
|
|
||||||
|
# Tell Active Support which deprecation messages to disallow.
|
||||||
|
config.active_support.disallowed_deprecation_warnings = []
|
||||||
|
|
||||||
# Raise an error on page load if there are pending migrations.
|
# Raise an error on page load if there are pending migrations.
|
||||||
config.active_record.migration_error = :page_load unless Settings.status == "database_offline"
|
config.active_record.migration_error = :page_load unless Settings.status == "database_offline"
|
||||||
|
|
||||||
|
@ -59,10 +67,16 @@ Rails.application.configure do
|
||||||
# Raises error for missing translations.
|
# Raises error for missing translations.
|
||||||
# config.action_view.raise_on_missing_translations = true
|
# config.action_view.raise_on_missing_translations = true
|
||||||
|
|
||||||
|
# Annotate rendered view with file names.
|
||||||
|
# config.action_view.annotate_rendered_view_with_filenames = true
|
||||||
|
|
||||||
# Use an evented file watcher to asynchronously detect changes in source code,
|
# Use an evented file watcher to asynchronously detect changes in source code,
|
||||||
# routes, locales, etc. This feature depends on the listen gem.
|
# routes, locales, etc. This feature depends on the listen gem.
|
||||||
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
|
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
|
||||||
|
|
||||||
|
# Uncomment if you wish to allow Action Cable access from any origin.
|
||||||
|
# config.action_cable.disable_request_forgery_protection = true
|
||||||
|
|
||||||
# Disable host validation.
|
# Disable host validation.
|
||||||
config.hosts = []
|
config.hosts = []
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
require "active_support/core_ext/integer/time"
|
||||||
|
|
||||||
Rails.application.configure do
|
Rails.application.configure do
|
||||||
# Settings specified here will take precedence over those in config/application.rb.
|
# Settings specified here will take precedence over those in config/application.rb.
|
||||||
|
|
||||||
|
@ -30,7 +32,7 @@ Rails.application.configure do
|
||||||
config.assets.compile = false
|
config.assets.compile = false
|
||||||
|
|
||||||
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
||||||
# config.action_controller.asset_host = 'http://assets.example.com'
|
# config.asset_host = 'http://assets.example.com'
|
||||||
|
|
||||||
# Specifies the header that your server uses for sending files.
|
# Specifies the header that your server uses for sending files.
|
||||||
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
|
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
|
||||||
|
@ -47,8 +49,8 @@ Rails.application.configure do
|
||||||
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
||||||
# config.force_ssl = true
|
# config.force_ssl = true
|
||||||
|
|
||||||
# Use the lowest log level to ensure availability of diagnostic information
|
# Include generic and useful information about system operation, but avoid logging too much
|
||||||
# when problems arise.
|
# information to avoid inadvertent exposure of personally identifiable information (PII).
|
||||||
config.log_level = :info
|
config.log_level = :info
|
||||||
|
|
||||||
# Prepend all log lines with the following tags.
|
# Prepend all log lines with the following tags.
|
||||||
|
@ -73,9 +75,19 @@ Rails.application.configure do
|
||||||
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
||||||
# config.action_mailer.raise_delivery_errors = false
|
# config.action_mailer.raise_delivery_errors = false
|
||||||
|
|
||||||
|
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
||||||
|
# the I18n.default_locale when a translation cannot be found).
|
||||||
|
config.i18n.fallbacks = true
|
||||||
|
|
||||||
# Send deprecation notices to registered listeners.
|
# Send deprecation notices to registered listeners.
|
||||||
config.active_support.deprecation = :notify
|
config.active_support.deprecation = :notify
|
||||||
|
|
||||||
|
# Log disallowed deprecations.
|
||||||
|
config.active_support.disallowed_deprecation = :log
|
||||||
|
|
||||||
|
# Tell Active Support which deprecation messages to disallow.
|
||||||
|
config.active_support.disallowed_deprecation_warnings = []
|
||||||
|
|
||||||
# Use default logging formatter so that PID and timestamp are not suppressed.
|
# Use default logging formatter so that PID and timestamp are not suppressed.
|
||||||
config.log_formatter = ::Logger::Formatter.new
|
config.log_formatter = ::Logger::Formatter.new
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
require "active_support/core_ext/integer/time"
|
||||||
|
|
||||||
# The test environment is used exclusively to run your application's
|
# The test environment is used exclusively to run your application's
|
||||||
# test suite. You never need to work with it otherwise. Remember that
|
# test suite. You never need to work with it otherwise. Remember that
|
||||||
# your test database is "scratch space" for the test suite and is wiped
|
# your test database is "scratch space" for the test suite and is wiped
|
||||||
|
@ -43,12 +45,21 @@ Rails.application.configure do
|
||||||
# Print deprecation notices to the stderr.
|
# Print deprecation notices to the stderr.
|
||||||
config.active_support.deprecation = :stderr
|
config.active_support.deprecation = :stderr
|
||||||
|
|
||||||
|
# Raise exceptions for disallowed deprecations.
|
||||||
|
config.active_support.disallowed_deprecation = :raise
|
||||||
|
|
||||||
|
# Tell Active Support which deprecation messages to disallow.
|
||||||
|
config.active_support.disallowed_deprecation_warnings = []
|
||||||
|
|
||||||
# Export translations automatically.
|
# Export translations automatically.
|
||||||
config.middleware.use I18n::JS::Middleware
|
config.middleware.use I18n::JS::Middleware
|
||||||
|
|
||||||
# Raises error for missing translations.
|
# Raises error for missing translations.
|
||||||
config.action_view.raise_on_missing_translations = true
|
config.action_view.raise_on_missing_translations = true
|
||||||
|
|
||||||
|
# Annotate rendered view with file names.
|
||||||
|
# config.action_view.annotate_rendered_view_with_filenames = true
|
||||||
|
|
||||||
# Use the test adapter for ActiveJob during testing.
|
# Use the test adapter for ActiveJob during testing.
|
||||||
config.active_job.queue_adapter = :test
|
config.active_job.queue_adapter = :test
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
# Be sure to restart your server when you modify this file.
|
# Be sure to restart your server when you modify this file.
|
||||||
|
|
||||||
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
||||||
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
# Rails.backtrace_cleaner.add_silencer { |line| /my_noisy_library/.match?(line) }
|
||||||
|
|
||||||
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code
|
||||||
# Rails.backtrace_cleaner.remove_silencers!
|
# by setting BACKTRACE=1 before calling your invocation, like "BACKTRACE=1 ./bin/rails runner 'MyClass.perform'".
|
||||||
|
Rails.backtrace_cleaner.remove_silencers! if ENV["BACKTRACE"]
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
# Be sure to restart your server when you modify this file.
|
# Be sure to restart your server when you modify this file.
|
||||||
|
|
||||||
# Configure sensitive parameters which will be filtered from the log file.
|
# Configure sensitive parameters which will be filtered from the log file.
|
||||||
Rails.application.config.filter_parameters += [:password, :pass_crypt, :pass_crypt_confirmation]
|
Rails.application.config.filter_parameters += [
|
||||||
|
:password, :pass_crypt, :pass_crypt_confirmation
|
||||||
|
]
|
||||||
|
|
67
config/initializers/new_framework_defaults_6_1.rb
Normal file
67
config/initializers/new_framework_defaults_6_1.rb
Normal file
|
@ -0,0 +1,67 @@
|
||||||
|
# Be sure to restart your server when you modify this file.
|
||||||
|
#
|
||||||
|
# This file contains migration options to ease your Rails 6.1 upgrade.
|
||||||
|
#
|
||||||
|
# Once upgraded flip defaults one by one to migrate to the new default.
|
||||||
|
#
|
||||||
|
# Read the Guide for Upgrading Ruby on Rails for more info on each option.
|
||||||
|
|
||||||
|
# Support for inversing belongs_to -> has_many Active Record associations.
|
||||||
|
# Rails.application.config.active_record.has_many_inversing = true
|
||||||
|
|
||||||
|
# Track Active Storage variants in the database.
|
||||||
|
# Rails.application.config.active_storage.track_variants = true
|
||||||
|
|
||||||
|
# Apply random variation to the delay when retrying failed jobs.
|
||||||
|
# Rails.application.config.active_job.retry_jitter = 0.15
|
||||||
|
|
||||||
|
# Stop executing `after_enqueue`/`after_perform` callbacks if
|
||||||
|
# `before_enqueue`/`before_perform` respectively halts with `throw :abort`.
|
||||||
|
# Rails.application.config.active_job.skip_after_callbacks_if_terminated = true
|
||||||
|
|
||||||
|
# Specify cookies SameSite protection level: either :none, :lax, or :strict.
|
||||||
|
#
|
||||||
|
# This change is not backwards compatible with earlier Rails versions.
|
||||||
|
# It's best enabled when your entire app is migrated and stable on 6.1.
|
||||||
|
# Rails.application.config.action_dispatch.cookies_same_site_protection = :lax
|
||||||
|
|
||||||
|
# Generate CSRF tokens that are encoded in URL-safe Base64.
|
||||||
|
#
|
||||||
|
# This change is not backwards compatible with earlier Rails versions.
|
||||||
|
# It's best enabled when your entire app is migrated and stable on 6.1.
|
||||||
|
# Rails.application.config.action_controller.urlsafe_csrf_tokens = true
|
||||||
|
|
||||||
|
# Specify whether `ActiveSupport::TimeZone.utc_to_local` returns a time with an
|
||||||
|
# UTC offset or a UTC time.
|
||||||
|
# ActiveSupport.utc_to_local_returns_utc_offset_times = true
|
||||||
|
|
||||||
|
# Change the default HTTP status code to `308` when redirecting non-GET/HEAD
|
||||||
|
# requests to HTTPS in `ActionDispatch::SSL` middleware.
|
||||||
|
# Rails.application.config.action_dispatch.ssl_default_redirect_status = 308
|
||||||
|
|
||||||
|
# Use new connection handling API. For most applications this won't have any
|
||||||
|
# effect. For applications using multiple databases, this new API provides
|
||||||
|
# support for granular connection swapping.
|
||||||
|
# Rails.application.config.active_record.legacy_connection_handling = false
|
||||||
|
|
||||||
|
# Make `form_with` generate non-remote forms by default.
|
||||||
|
# Rails.application.config.action_view.form_with_generates_remote_forms = false
|
||||||
|
|
||||||
|
# Set the default queue name for the analysis job to the queue adapter default.
|
||||||
|
# Rails.application.config.active_storage.queues.analysis = nil
|
||||||
|
|
||||||
|
# Set the default queue name for the purge job to the queue adapter default.
|
||||||
|
# Rails.application.config.active_storage.queues.purge = nil
|
||||||
|
|
||||||
|
# Set the default queue name for the incineration job to the queue adapter default.
|
||||||
|
# Rails.application.config.action_mailbox.queues.incineration = nil
|
||||||
|
|
||||||
|
# Set the default queue name for the routing job to the queue adapter default.
|
||||||
|
# Rails.application.config.action_mailbox.queues.routing = nil
|
||||||
|
|
||||||
|
# Set the default queue name for the mail deliver job to the queue adapter default.
|
||||||
|
# Rails.application.config.action_mailer.deliver_later_queue_name = nil
|
||||||
|
|
||||||
|
# Generate a `Link` header that gives a hint to modern browsers about
|
||||||
|
# preloading assets when using `javascript_include_tag` and `stylesheet_link_tag`.
|
||||||
|
# Rails.application.config.action_view.preload_links_header = true
|
|
@ -0,0 +1,13 @@
|
||||||
|
# This migration comes from active_storage (originally 20190112182829)
|
||||||
|
class AddServiceNameToActiveStorageBlobs < ActiveRecord::Migration[6.0]
|
||||||
|
def up
|
||||||
|
unless column_exists?(:active_storage_blobs, :service_name)
|
||||||
|
add_column :active_storage_blobs, :service_name, :string, :null => false, :default => ActiveStorage::Blob.service.name
|
||||||
|
change_column :active_storage_blobs, :service_name, :string, :null => false, :default => nil
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
remove_column :active_storage_blobs, :service_name
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,12 @@
|
||||||
|
# This migration comes from active_storage (originally 20191206030411)
|
||||||
|
class CreateActiveStorageVariantRecords < ActiveRecord::Migration[6.0]
|
||||||
|
def change
|
||||||
|
create_table :active_storage_variant_records do |t|
|
||||||
|
t.belongs_to :blob, :null => false, :index => false
|
||||||
|
t.string :variation_digest, :null => false
|
||||||
|
|
||||||
|
t.index [:blob_id, :variation_digest], :name => "index_active_storage_variant_records_uniqueness", :unique => true
|
||||||
|
t.foreign_key :active_storage_blobs, :column => :blob_id
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -1,5 +1,6 @@
|
||||||
SET statement_timeout = 0;
|
SET statement_timeout = 0;
|
||||||
SET lock_timeout = 0;
|
SET lock_timeout = 0;
|
||||||
|
SET idle_in_transaction_session_timeout = 0;
|
||||||
SET client_encoding = 'UTF8';
|
SET client_encoding = 'UTF8';
|
||||||
SET standard_conforming_strings = on;
|
SET standard_conforming_strings = on;
|
||||||
SELECT pg_catalog.set_config('search_path', '', false);
|
SELECT pg_catalog.set_config('search_path', '', false);
|
||||||
|
@ -8,20 +9,6 @@ SET xmloption = content;
|
||||||
SET client_min_messages = warning;
|
SET client_min_messages = warning;
|
||||||
SET row_security = off;
|
SET row_security = off;
|
||||||
|
|
||||||
--
|
|
||||||
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
|
|
||||||
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: -
|
|
||||||
--
|
|
||||||
|
|
||||||
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
|
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: btree_gist; Type: EXTENSION; Schema: -; Owner: -
|
-- Name: btree_gist; Type: EXTENSION; Schema: -; Owner: -
|
||||||
--
|
--
|
||||||
|
@ -165,7 +152,7 @@ $$;
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE FUNCTION public.xid_to_int4(t xid) RETURNS integer
|
CREATE FUNCTION public.xid_to_int4(t xid) RETURNS integer
|
||||||
LANGUAGE plpgsql STRICT
|
LANGUAGE plpgsql IMMUTABLE STRICT
|
||||||
AS $$
|
AS $$
|
||||||
DECLARE
|
DECLARE
|
||||||
tl bigint;
|
tl bigint;
|
||||||
|
@ -186,7 +173,7 @@ $$;
|
||||||
|
|
||||||
SET default_tablespace = '';
|
SET default_tablespace = '';
|
||||||
|
|
||||||
SET default_with_oids = false;
|
SET default_table_access_method = heap;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: acls; Type: TABLE; Schema: public; Owner: -
|
-- Name: acls; Type: TABLE; Schema: public; Owner: -
|
||||||
|
@ -266,7 +253,8 @@ CREATE TABLE public.active_storage_blobs (
|
||||||
metadata text,
|
metadata text,
|
||||||
byte_size bigint NOT NULL,
|
byte_size bigint NOT NULL,
|
||||||
checksum character varying NOT NULL,
|
checksum character varying NOT NULL,
|
||||||
created_at timestamp without time zone NOT NULL
|
created_at timestamp without time zone NOT NULL,
|
||||||
|
service_name character varying NOT NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
@ -289,6 +277,36 @@ CREATE SEQUENCE public.active_storage_blobs_id_seq
|
||||||
ALTER SEQUENCE public.active_storage_blobs_id_seq OWNED BY public.active_storage_blobs.id;
|
ALTER SEQUENCE public.active_storage_blobs_id_seq OWNED BY public.active_storage_blobs.id;
|
||||||
|
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Name: active_storage_variant_records; Type: TABLE; Schema: public; Owner: -
|
||||||
|
--
|
||||||
|
|
||||||
|
CREATE TABLE public.active_storage_variant_records (
|
||||||
|
id bigint NOT NULL,
|
||||||
|
blob_id bigint NOT NULL,
|
||||||
|
variation_digest character varying NOT NULL
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Name: active_storage_variant_records_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
||||||
|
--
|
||||||
|
|
||||||
|
CREATE SEQUENCE public.active_storage_variant_records_id_seq
|
||||||
|
START WITH 1
|
||||||
|
INCREMENT BY 1
|
||||||
|
NO MINVALUE
|
||||||
|
NO MAXVALUE
|
||||||
|
CACHE 1;
|
||||||
|
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Name: active_storage_variant_records_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
||||||
|
--
|
||||||
|
|
||||||
|
ALTER SEQUENCE public.active_storage_variant_records_id_seq OWNED BY public.active_storage_variant_records.id;
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: ar_internal_metadata; Type: TABLE; Schema: public; Owner: -
|
-- Name: ar_internal_metadata; Type: TABLE; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
@ -320,6 +338,7 @@ CREATE TABLE public.changeset_comments (
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE SEQUENCE public.changeset_comments_id_seq
|
CREATE SEQUENCE public.changeset_comments_id_seq
|
||||||
|
AS integer
|
||||||
START WITH 1
|
START WITH 1
|
||||||
INCREMENT BY 1
|
INCREMENT BY 1
|
||||||
NO MINVALUE
|
NO MINVALUE
|
||||||
|
@ -421,6 +440,7 @@ CREATE TABLE public.client_applications (
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE SEQUENCE public.client_applications_id_seq
|
CREATE SEQUENCE public.client_applications_id_seq
|
||||||
|
AS integer
|
||||||
START WITH 1
|
START WITH 1
|
||||||
INCREMENT BY 1
|
INCREMENT BY 1
|
||||||
NO MINVALUE
|
NO MINVALUE
|
||||||
|
@ -846,6 +866,7 @@ CREATE TABLE public.issue_comments (
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE SEQUENCE public.issue_comments_id_seq
|
CREATE SEQUENCE public.issue_comments_id_seq
|
||||||
|
AS integer
|
||||||
START WITH 1
|
START WITH 1
|
||||||
INCREMENT BY 1
|
INCREMENT BY 1
|
||||||
NO MINVALUE
|
NO MINVALUE
|
||||||
|
@ -885,6 +906,7 @@ CREATE TABLE public.issues (
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE SEQUENCE public.issues_id_seq
|
CREATE SEQUENCE public.issues_id_seq
|
||||||
|
AS integer
|
||||||
START WITH 1
|
START WITH 1
|
||||||
INCREMENT BY 1
|
INCREMENT BY 1
|
||||||
NO MINVALUE
|
NO MINVALUE
|
||||||
|
@ -997,6 +1019,7 @@ CREATE TABLE public.note_comments (
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE SEQUENCE public.note_comments_id_seq
|
CREATE SEQUENCE public.note_comments_id_seq
|
||||||
|
AS integer
|
||||||
START WITH 1
|
START WITH 1
|
||||||
INCREMENT BY 1
|
INCREMENT BY 1
|
||||||
NO MINVALUE
|
NO MINVALUE
|
||||||
|
@ -1032,6 +1055,7 @@ CREATE TABLE public.notes (
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE SEQUENCE public.notes_id_seq
|
CREATE SEQUENCE public.notes_id_seq
|
||||||
|
AS integer
|
||||||
START WITH 1
|
START WITH 1
|
||||||
INCREMENT BY 1
|
INCREMENT BY 1
|
||||||
NO MINVALUE
|
NO MINVALUE
|
||||||
|
@ -1064,6 +1088,7 @@ CREATE TABLE public.oauth_nonces (
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE SEQUENCE public.oauth_nonces_id_seq
|
CREATE SEQUENCE public.oauth_nonces_id_seq
|
||||||
|
AS integer
|
||||||
START WITH 1
|
START WITH 1
|
||||||
INCREMENT BY 1
|
INCREMENT BY 1
|
||||||
NO MINVALUE
|
NO MINVALUE
|
||||||
|
@ -1112,6 +1137,7 @@ CREATE TABLE public.oauth_tokens (
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE SEQUENCE public.oauth_tokens_id_seq
|
CREATE SEQUENCE public.oauth_tokens_id_seq
|
||||||
|
AS integer
|
||||||
START WITH 1
|
START WITH 1
|
||||||
INCREMENT BY 1
|
INCREMENT BY 1
|
||||||
NO MINVALUE
|
NO MINVALUE
|
||||||
|
@ -1146,6 +1172,7 @@ CREATE TABLE public.redactions (
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE SEQUENCE public.redactions_id_seq
|
CREATE SEQUENCE public.redactions_id_seq
|
||||||
|
AS integer
|
||||||
START WITH 1
|
START WITH 1
|
||||||
INCREMENT BY 1
|
INCREMENT BY 1
|
||||||
NO MINVALUE
|
NO MINVALUE
|
||||||
|
@ -1220,6 +1247,7 @@ CREATE TABLE public.reports (
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE SEQUENCE public.reports_id_seq
|
CREATE SEQUENCE public.reports_id_seq
|
||||||
|
AS integer
|
||||||
START WITH 1
|
START WITH 1
|
||||||
INCREMENT BY 1
|
INCREMENT BY 1
|
||||||
NO MINVALUE
|
NO MINVALUE
|
||||||
|
@ -1266,6 +1294,7 @@ CREATE TABLE public.user_blocks (
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE SEQUENCE public.user_blocks_id_seq
|
CREATE SEQUENCE public.user_blocks_id_seq
|
||||||
|
AS integer
|
||||||
START WITH 1
|
START WITH 1
|
||||||
INCREMENT BY 1
|
INCREMENT BY 1
|
||||||
NO MINVALUE
|
NO MINVALUE
|
||||||
|
@ -1310,6 +1339,7 @@ CREATE TABLE public.user_roles (
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE SEQUENCE public.user_roles_id_seq
|
CREATE SEQUENCE public.user_roles_id_seq
|
||||||
|
AS integer
|
||||||
START WITH 1
|
START WITH 1
|
||||||
INCREMENT BY 1
|
INCREMENT BY 1
|
||||||
NO MINVALUE
|
NO MINVALUE
|
||||||
|
@ -1471,6 +1501,13 @@ ALTER TABLE ONLY public.active_storage_attachments ALTER COLUMN id SET DEFAULT n
|
||||||
ALTER TABLE ONLY public.active_storage_blobs ALTER COLUMN id SET DEFAULT nextval('public.active_storage_blobs_id_seq'::regclass);
|
ALTER TABLE ONLY public.active_storage_blobs ALTER COLUMN id SET DEFAULT nextval('public.active_storage_blobs_id_seq'::regclass);
|
||||||
|
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Name: active_storage_variant_records id; Type: DEFAULT; Schema: public; Owner: -
|
||||||
|
--
|
||||||
|
|
||||||
|
ALTER TABLE ONLY public.active_storage_variant_records ALTER COLUMN id SET DEFAULT nextval('public.active_storage_variant_records_id_seq'::regclass);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: changeset_comments id; Type: DEFAULT; Schema: public; Owner: -
|
-- Name: changeset_comments id; Type: DEFAULT; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
@ -1670,6 +1707,14 @@ ALTER TABLE ONLY public.active_storage_blobs
|
||||||
ADD CONSTRAINT active_storage_blobs_pkey PRIMARY KEY (id);
|
ADD CONSTRAINT active_storage_blobs_pkey PRIMARY KEY (id);
|
||||||
|
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Name: active_storage_variant_records active_storage_variant_records_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
||||||
|
--
|
||||||
|
|
||||||
|
ALTER TABLE ONLY public.active_storage_variant_records
|
||||||
|
ADD CONSTRAINT active_storage_variant_records_pkey PRIMARY KEY (id);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: ar_internal_metadata ar_internal_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
-- Name: ar_internal_metadata ar_internal_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
@ -2224,6 +2269,13 @@ CREATE UNIQUE INDEX index_active_storage_attachments_uniqueness ON public.active
|
||||||
CREATE UNIQUE INDEX index_active_storage_blobs_on_key ON public.active_storage_blobs USING btree (key);
|
CREATE UNIQUE INDEX index_active_storage_blobs_on_key ON public.active_storage_blobs USING btree (key);
|
||||||
|
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Name: index_active_storage_variant_records_uniqueness; Type: INDEX; Schema: public; Owner: -
|
||||||
|
--
|
||||||
|
|
||||||
|
CREATE UNIQUE INDEX index_active_storage_variant_records_uniqueness ON public.active_storage_variant_records USING btree (blob_id, variation_digest);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: index_changeset_comments_on_changeset_id_and_created_at; Type: INDEX; Schema: public; Owner: -
|
-- Name: index_changeset_comments_on_changeset_id_and_created_at; Type: INDEX; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
@ -2750,6 +2802,14 @@ ALTER TABLE ONLY public.diary_entry_subscriptions
|
||||||
ADD CONSTRAINT diary_entry_subscriptions_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id);
|
ADD CONSTRAINT diary_entry_subscriptions_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id);
|
||||||
|
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Name: active_storage_variant_records fk_rails_993965df05; Type: FK CONSTRAINT; Schema: public; Owner: -
|
||||||
|
--
|
||||||
|
|
||||||
|
ALTER TABLE ONLY public.active_storage_variant_records
|
||||||
|
ADD CONSTRAINT fk_rails_993965df05 FOREIGN KEY (blob_id) REFERENCES public.active_storage_blobs(id);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: active_storage_attachments fk_rails_c3b3935057; Type: FK CONSTRAINT; Schema: public; Owner: -
|
-- Name: active_storage_attachments fk_rails_c3b3935057; Type: FK CONSTRAINT; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
@ -3124,6 +3184,8 @@ INSERT INTO "schema_migrations" (version) VALUES
|
||||||
('20201006213836'),
|
('20201006213836'),
|
||||||
('20201006220807'),
|
('20201006220807'),
|
||||||
('20201214144017'),
|
('20201214144017'),
|
||||||
|
('20210510083027'),
|
||||||
|
('20210510083028'),
|
||||||
('20210511104518'),
|
('20210511104518'),
|
||||||
('21'),
|
('21'),
|
||||||
('22'),
|
('22'),
|
||||||
|
|
|
@ -60,7 +60,7 @@ class UserHelperTest < ActionView::TestCase
|
||||||
gravatar_user = create(:user, :image_use_gravatar => true)
|
gravatar_user = create(:user, :image_use_gravatar => true)
|
||||||
|
|
||||||
url = user_image_url(user)
|
url = user_image_url(user)
|
||||||
assert_match %r{^http://test.host/rails/active_storage/representations/[^/]+/[^/]+/a.gif$}, url
|
assert_match %r{^http://test.host/rails/active_storage/representations/redirect/[^/]+/[^/]+/a.gif$}, url
|
||||||
|
|
||||||
url = user_image_url(gravatar_user)
|
url = user_image_url(gravatar_user)
|
||||||
assert_match %r{^http://www.gravatar.com/avatar/}, url
|
assert_match %r{^http://www.gravatar.com/avatar/}, url
|
||||||
|
|
Loading…
Add table
Reference in a new issue