Skip to content

Commit e704ebb

Browse files
committed
Upgrade Rails to 6.1
1 parent 58362f1 commit e704ebb

19 files changed

+230
-162
lines changed

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ruby '2.7.7'
33
source 'https://rubygems.org'
44
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
55

6-
gem 'rails', '~> 6.0.3'
6+
gem 'rails', '~> 6.1'
77
gem 'pg'
88
gem 'puma', '~> 5.6'
99
gem 'rugged', '0.27.0'

Gemfile.lock

+69-66
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,67 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
actioncable (6.0.6.1)
5-
actionpack (= 6.0.6.1)
4+
actioncable (6.1.7.2)
5+
actionpack (= 6.1.7.2)
6+
activesupport (= 6.1.7.2)
67
nio4r (~> 2.0)
78
websocket-driver (>= 0.6.1)
8-
actionmailbox (6.0.6.1)
9-
actionpack (= 6.0.6.1)
10-
activejob (= 6.0.6.1)
11-
activerecord (= 6.0.6.1)
12-
activestorage (= 6.0.6.1)
13-
activesupport (= 6.0.6.1)
9+
actionmailbox (6.1.7.2)
10+
actionpack (= 6.1.7.2)
11+
activejob (= 6.1.7.2)
12+
activerecord (= 6.1.7.2)
13+
activestorage (= 6.1.7.2)
14+
activesupport (= 6.1.7.2)
1415
mail (>= 2.7.1)
15-
actionmailer (6.0.6.1)
16-
actionpack (= 6.0.6.1)
17-
actionview (= 6.0.6.1)
18-
activejob (= 6.0.6.1)
16+
actionmailer (6.1.7.2)
17+
actionpack (= 6.1.7.2)
18+
actionview (= 6.1.7.2)
19+
activejob (= 6.1.7.2)
20+
activesupport (= 6.1.7.2)
1921
mail (~> 2.5, >= 2.5.4)
2022
rails-dom-testing (~> 2.0)
21-
actionpack (6.0.6.1)
22-
actionview (= 6.0.6.1)
23-
activesupport (= 6.0.6.1)
24-
rack (~> 2.0, >= 2.0.8)
23+
actionpack (6.1.7.2)
24+
actionview (= 6.1.7.2)
25+
activesupport (= 6.1.7.2)
26+
rack (~> 2.0, >= 2.0.9)
2527
rack-test (>= 0.6.3)
2628
rails-dom-testing (~> 2.0)
2729
rails-html-sanitizer (~> 1.0, >= 1.2.0)
2830
actionpack-page_caching (1.2.4)
2931
actionpack (>= 4.0.0)
30-
actiontext (6.0.6.1)
31-
actionpack (= 6.0.6.1)
32-
activerecord (= 6.0.6.1)
33-
activestorage (= 6.0.6.1)
34-
activesupport (= 6.0.6.1)
32+
actiontext (6.1.7.2)
33+
actionpack (= 6.1.7.2)
34+
activerecord (= 6.1.7.2)
35+
activestorage (= 6.1.7.2)
36+
activesupport (= 6.1.7.2)
3537
nokogiri (>= 1.8.5)
36-
actionview (6.0.6.1)
37-
activesupport (= 6.0.6.1)
38+
actionview (6.1.7.2)
39+
activesupport (= 6.1.7.2)
3840
builder (~> 3.1)
3941
erubi (~> 1.4)
4042
rails-dom-testing (~> 2.0)
4143
rails-html-sanitizer (~> 1.1, >= 1.2.0)
42-
activejob (6.0.6.1)
43-
activesupport (= 6.0.6.1)
44+
activejob (6.1.7.2)
45+
activesupport (= 6.1.7.2)
4446
globalid (>= 0.3.6)
45-
activemodel (6.0.6.1)
46-
activesupport (= 6.0.6.1)
47-
activerecord (6.0.6.1)
48-
activemodel (= 6.0.6.1)
49-
activesupport (= 6.0.6.1)
50-
activestorage (6.0.6.1)
51-
actionpack (= 6.0.6.1)
52-
activejob (= 6.0.6.1)
53-
activerecord (= 6.0.6.1)
47+
activemodel (6.1.7.2)
48+
activesupport (= 6.1.7.2)
49+
activerecord (6.1.7.2)
50+
activemodel (= 6.1.7.2)
51+
activesupport (= 6.1.7.2)
52+
activestorage (6.1.7.2)
53+
actionpack (= 6.1.7.2)
54+
activejob (= 6.1.7.2)
55+
activerecord (= 6.1.7.2)
56+
activesupport (= 6.1.7.2)
5457
marcel (~> 1.0)
55-
activesupport (6.0.6.1)
58+
mini_mime (>= 1.1.0)
59+
activesupport (6.1.7.2)
5660
concurrent-ruby (~> 1.0, >= 1.0.2)
57-
i18n (>= 0.7, < 2)
58-
minitest (~> 5.1)
59-
tzinfo (~> 1.1)
60-
zeitwerk (~> 2.2, >= 2.2.2)
61+
i18n (>= 1.6, < 2)
62+
minitest (>= 5.1)
63+
tzinfo (~> 2.0)
64+
zeitwerk (~> 2.3)
6165
airbrussh (1.4.0)
6266
sshkit (>= 1.6.1, != 1.7.0)
6367
bcrypt_pbkdf (1.0.1)
@@ -137,36 +141,36 @@ GEM
137141
rack (2.2.6.2)
138142
rack-test (2.0.2)
139143
rack (>= 1.3)
140-
rails (6.0.6.1)
141-
actioncable (= 6.0.6.1)
142-
actionmailbox (= 6.0.6.1)
143-
actionmailer (= 6.0.6.1)
144-
actionpack (= 6.0.6.1)
145-
actiontext (= 6.0.6.1)
146-
actionview (= 6.0.6.1)
147-
activejob (= 6.0.6.1)
148-
activemodel (= 6.0.6.1)
149-
activerecord (= 6.0.6.1)
150-
activestorage (= 6.0.6.1)
151-
activesupport (= 6.0.6.1)
152-
bundler (>= 1.3.0)
153-
railties (= 6.0.6.1)
144+
rails (6.1.7.2)
145+
actioncable (= 6.1.7.2)
146+
actionmailbox (= 6.1.7.2)
147+
actionmailer (= 6.1.7.2)
148+
actionpack (= 6.1.7.2)
149+
actiontext (= 6.1.7.2)
150+
actionview (= 6.1.7.2)
151+
activejob (= 6.1.7.2)
152+
activemodel (= 6.1.7.2)
153+
activerecord (= 6.1.7.2)
154+
activestorage (= 6.1.7.2)
155+
activesupport (= 6.1.7.2)
156+
bundler (>= 1.15.0)
157+
railties (= 6.1.7.2)
154158
sprockets-rails (>= 2.0.0)
155-
rails-controller-testing (1.0.4)
156-
actionpack (>= 5.0.1.x)
157-
actionview (>= 5.0.1.x)
158-
activesupport (>= 5.0.1.x)
159+
rails-controller-testing (1.0.5)
160+
actionpack (>= 5.0.1.rc1)
161+
actionview (>= 5.0.1.rc1)
162+
activesupport (>= 5.0.1.rc1)
159163
rails-dom-testing (2.0.3)
160164
activesupport (>= 4.2.0)
161165
nokogiri (>= 1.6)
162166
rails-html-sanitizer (1.5.0)
163167
loofah (~> 2.19, >= 2.19.1)
164-
railties (6.0.6.1)
165-
actionpack (= 6.0.6.1)
166-
activesupport (= 6.0.6.1)
168+
railties (6.1.7.2)
169+
actionpack (= 6.1.7.2)
170+
activesupport (= 6.1.7.2)
167171
method_source
168-
rake (>= 0.8.7)
169-
thor (>= 0.20.3, < 2.0)
172+
rake (>= 12.2)
173+
thor (~> 1.0)
170174
rake (13.0.6)
171175
rb-fsevent (0.11.2)
172176
rb-inotify (0.10.1)
@@ -198,14 +202,13 @@ GEM
198202
net-scp (>= 1.1.2)
199203
net-ssh (>= 2.8.0)
200204
thor (1.2.1)
201-
thread_safe (0.3.6)
202205
tilt (2.0.10)
203206
timeout (0.3.1)
204207
turbolinks (5.2.1)
205208
turbolinks-source (~> 5.2)
206209
turbolinks-source (5.2.0)
207-
tzinfo (1.2.11)
208-
thread_safe (~> 0.1)
210+
tzinfo (2.0.6)
211+
concurrent-ruby (~> 1.0)
209212
uglifier (4.2.0)
210213
execjs (>= 0.3.0, < 3)
211214
unf (0.1.4)
@@ -236,7 +239,7 @@ DEPENDENCIES
236239
listen (>= 3.0.5, < 3.9)
237240
pg
238241
puma (~> 5.6)
239-
rails (~> 6.0.3)
242+
rails (~> 6.1)
240243
rails-controller-testing
241244
rbnacl (>= 3.2, < 5.0)
242245
rbnacl-libsodium

bin/rails

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env ruby
22
APP_PATH = File.expand_path('../config/application', __dir__)
3-
require_relative '../config/boot'
4-
require 'rails/commands'
3+
require_relative "../config/boot"
4+
require "rails/commands"

bin/rake

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env ruby
2-
require_relative '../config/boot'
3-
require 'rake'
2+
require_relative "../config/boot"
3+
require "rake"
44
Rake.application.run

bin/update

-31
This file was deleted.

bin/yarn

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
#!/usr/bin/env ruby
22
APP_ROOT = File.expand_path('..', __dir__)
33
Dir.chdir(APP_ROOT) do
4-
begin
5-
exec "yarnpkg", *ARGV
6-
rescue Errno::ENOENT
4+
yarn = ENV["PATH"].split(File::PATH_SEPARATOR).
5+
select { |dir| File.expand_path(dir) != __dir__ }.
6+
product(["yarn", "yarn.cmd", "yarn.ps1"]).
7+
map { |dir, file| File.expand_path(file, dir) }.
8+
find { |file| File.executable?(file) }
9+
10+
if yarn
11+
exec yarn, *ARGV
12+
else
713
$stderr.puts "Yarn executable was not detected in the system."
814
$stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
915
exit 1

config.ru

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# This file is used by Rack-based servers to start the application.
22

3-
require_relative 'config/environment'
3+
require_relative "config/environment"
44

55
run Rails.application
6+
Rails.application.load_server

config/application.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require_relative 'boot'
1+
require_relative "boot"
22

33
require "rails"
44
require "active_model/railtie"
@@ -12,7 +12,7 @@
1212
# you've limited to :test, :development, or :production.
1313
Bundler.require(*Rails.groups)
1414

15-
require_relative '../lib/bot_killer'
15+
require_relative "../lib/bot_killer"
1616

1717
module RailsContributors
1818
class Application < Rails::Application

config/boot.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
22

3-
require 'bundler/setup'
3+
require "bundler/setup" # Set up gems listed in the Gemfile.

config/environment.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Load the Rails application.
2-
require_relative 'application'
2+
require_relative "application"
33

44
# Initialize the Rails application.
55
Rails.application.initialize!

config/environments/development.rb

+18-12
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
require "active_support/core_ext/integer/time"
2+
13
Rails.application.configure do
24
# Settings specified here will take precedence over those in config/application.rb.
35

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+
# In the development environment your application's code is reloaded any time
7+
# it changes. This slows down response time but is perfect for development
68
# since you don't have to restart the web server when you make code changes.
79
config.cache_classes = false
810

@@ -28,17 +30,15 @@
2830
config.cache_store = :null_store
2931
end
3032

31-
# Store uploaded files on the local file system (see config/storage.yml for options)
32-
# config.active_storage.service = :local
33-
34-
# Don't care if the mailer can't send.
35-
# config.action_mailer.raise_delivery_errors = false
36-
37-
# config.action_mailer.perform_caching = false
38-
3933
# Print deprecation notices to the Rails logger.
4034
config.active_support.deprecation = :log
4135

36+
# Raise exceptions for disallowed deprecations.
37+
config.active_support.disallowed_deprecation = :raise
38+
39+
# Tell Active Support which deprecation messages to disallow.
40+
config.active_support.disallowed_deprecation_warnings = []
41+
4242
# Raise an error on page load if there are pending migrations.
4343
config.active_record.migration_error = :page_load
4444

@@ -53,10 +53,16 @@
5353
# Suppress logger output for asset requests.
5454
config.assets.quiet = true
5555

56-
# Raises error for missing translations
57-
# config.action_view.raise_on_missing_translations = true
56+
# Raises error for missing translations.
57+
# config.i18n.raise_on_missing_translations = true
58+
59+
# Annotate rendered view with file names.
60+
# config.action_view.annotate_rendered_view_with_filenames = true
5861

5962
# Use an evented file watcher to asynchronously detect changes in source code,
6063
# routes, locales, etc. This feature depends on the listen gem.
6164
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
65+
66+
# Uncomment if you wish to allow Action Cable access from any origin.
67+
# config.action_cable.disable_request_forgery_protection = true
6268
end

0 commit comments

Comments
 (0)