Skip to content

Commit 5acf151

Browse files
committed
Go Rails 6.1.3
1 parent 5fe9fc6 commit 5acf151

20 files changed

+207
-149
lines changed

Gemfile

+7-7
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
44
ruby '>= 2.7.1'
55

66
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
7-
gem 'rails', '~> 6.0.3'
8-
gem 'rails-i18n', '~> 6.0'
7+
gem 'rails', '~> 6.1.3'
8+
gem 'rails-i18n'
99

1010
# Use sqlite3 as the database for Active Record
1111
gem 'sqlite3'
@@ -24,17 +24,17 @@ gem 'sprockets'
2424
gem 'font-awesome-rails'
2525

2626
# Use Uglifier as compressor for JavaScript assets
27-
gem 'uglifier', '>= 1.3.0'
27+
gem 'uglifier'
2828
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
2929
gem 'webpacker'
3030

3131
# See https://github.com/rails/execjs#readme for more supported runtimes
3232
# gem 'mini_racer', platforms: :ruby
3333

3434
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
35-
gem 'turbolinks', '~> 5'
35+
gem 'turbolinks'
3636
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
37-
gem 'jbuilder', '~> 2.10'
37+
gem 'jbuilder'
3838
# Use Redis adapter to run Action Cable in production
3939
# gem 'redis', '~> 4.0'
4040

@@ -80,7 +80,7 @@ group :development do
8080
gem 'listen'
8181
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
8282
gem 'spring'
83-
gem 'spring-watcher-listen', '~> 2.0.1'
83+
gem 'spring-watcher-listen'
8484

8585
gem 'capistrano3-puma'
8686
gem 'capistrano-rails'
@@ -89,7 +89,7 @@ end
8989

9090
group :test do
9191
# Adds support for Capybara system testing and selenium driver
92-
gem 'capybara', '>= 2.15'
92+
gem 'capybara'
9393
gem 'selenium-webdriver'
9494
# Easy installation and use of web drivers to run system tests with browsers
9595
gem 'webdrivers'

Gemfile.lock

+70-67
Original file line numberDiff line numberDiff line change
@@ -34,61 +34,65 @@ GIT
3434
GEM
3535
remote: https://rubygems.org/
3636
specs:
37-
actioncable (6.0.3.5)
38-
actionpack (= 6.0.3.5)
37+
actioncable (6.1.3)
38+
actionpack (= 6.1.3)
39+
activesupport (= 6.1.3)
3940
nio4r (~> 2.0)
4041
websocket-driver (>= 0.6.1)
41-
actionmailbox (6.0.3.5)
42-
actionpack (= 6.0.3.5)
43-
activejob (= 6.0.3.5)
44-
activerecord (= 6.0.3.5)
45-
activestorage (= 6.0.3.5)
46-
activesupport (= 6.0.3.5)
42+
actionmailbox (6.1.3)
43+
actionpack (= 6.1.3)
44+
activejob (= 6.1.3)
45+
activerecord (= 6.1.3)
46+
activestorage (= 6.1.3)
47+
activesupport (= 6.1.3)
4748
mail (>= 2.7.1)
48-
actionmailer (6.0.3.5)
49-
actionpack (= 6.0.3.5)
50-
actionview (= 6.0.3.5)
51-
activejob (= 6.0.3.5)
49+
actionmailer (6.1.3)
50+
actionpack (= 6.1.3)
51+
actionview (= 6.1.3)
52+
activejob (= 6.1.3)
53+
activesupport (= 6.1.3)
5254
mail (~> 2.5, >= 2.5.4)
5355
rails-dom-testing (~> 2.0)
54-
actionpack (6.0.3.5)
55-
actionview (= 6.0.3.5)
56-
activesupport (= 6.0.3.5)
57-
rack (~> 2.0, >= 2.0.8)
56+
actionpack (6.1.3)
57+
actionview (= 6.1.3)
58+
activesupport (= 6.1.3)
59+
rack (~> 2.0, >= 2.0.9)
5860
rack-test (>= 0.6.3)
5961
rails-dom-testing (~> 2.0)
6062
rails-html-sanitizer (~> 1.0, >= 1.2.0)
61-
actiontext (6.0.3.5)
62-
actionpack (= 6.0.3.5)
63-
activerecord (= 6.0.3.5)
64-
activestorage (= 6.0.3.5)
65-
activesupport (= 6.0.3.5)
63+
actiontext (6.1.3)
64+
actionpack (= 6.1.3)
65+
activerecord (= 6.1.3)
66+
activestorage (= 6.1.3)
67+
activesupport (= 6.1.3)
6668
nokogiri (>= 1.8.5)
67-
actionview (6.0.3.5)
68-
activesupport (= 6.0.3.5)
69+
actionview (6.1.3)
70+
activesupport (= 6.1.3)
6971
builder (~> 3.1)
7072
erubi (~> 1.4)
7173
rails-dom-testing (~> 2.0)
7274
rails-html-sanitizer (~> 1.1, >= 1.2.0)
73-
activejob (6.0.3.5)
74-
activesupport (= 6.0.3.5)
75+
activejob (6.1.3)
76+
activesupport (= 6.1.3)
7577
globalid (>= 0.3.6)
76-
activemodel (6.0.3.5)
77-
activesupport (= 6.0.3.5)
78-
activerecord (6.0.3.5)
79-
activemodel (= 6.0.3.5)
80-
activesupport (= 6.0.3.5)
81-
activestorage (6.0.3.5)
82-
actionpack (= 6.0.3.5)
83-
activejob (= 6.0.3.5)
84-
activerecord (= 6.0.3.5)
78+
activemodel (6.1.3)
79+
activesupport (= 6.1.3)
80+
activerecord (6.1.3)
81+
activemodel (= 6.1.3)
82+
activesupport (= 6.1.3)
83+
activestorage (6.1.3)
84+
actionpack (= 6.1.3)
85+
activejob (= 6.1.3)
86+
activerecord (= 6.1.3)
87+
activesupport (= 6.1.3)
8588
marcel (~> 0.3.1)
86-
activesupport (6.0.3.5)
89+
mimemagic (~> 0.3.2)
90+
activesupport (6.1.3)
8791
concurrent-ruby (~> 1.0, >= 1.0.2)
88-
i18n (>= 0.7, < 2)
89-
minitest (~> 5.1)
90-
tzinfo (~> 1.1)
91-
zeitwerk (~> 2.2, >= 2.2.2)
92+
i18n (>= 1.6, < 2)
93+
minitest (>= 5.1)
94+
tzinfo (~> 2.0)
95+
zeitwerk (~> 2.3)
9296
addressable (2.7.0)
9397
public_suffix (>= 2.0.2, < 5.0)
9498
aes_key_wrap (1.1.0)
@@ -234,20 +238,20 @@ GEM
234238
rack
235239
rack-test (1.1.0)
236240
rack (>= 1.0, < 3)
237-
rails (6.0.3.5)
238-
actioncable (= 6.0.3.5)
239-
actionmailbox (= 6.0.3.5)
240-
actionmailer (= 6.0.3.5)
241-
actionpack (= 6.0.3.5)
242-
actiontext (= 6.0.3.5)
243-
actionview (= 6.0.3.5)
244-
activejob (= 6.0.3.5)
245-
activemodel (= 6.0.3.5)
246-
activerecord (= 6.0.3.5)
247-
activestorage (= 6.0.3.5)
248-
activesupport (= 6.0.3.5)
249-
bundler (>= 1.3.0)
250-
railties (= 6.0.3.5)
241+
rails (6.1.3)
242+
actioncable (= 6.1.3)
243+
actionmailbox (= 6.1.3)
244+
actionmailer (= 6.1.3)
245+
actionpack (= 6.1.3)
246+
actiontext (= 6.1.3)
247+
actionview (= 6.1.3)
248+
activejob (= 6.1.3)
249+
activemodel (= 6.1.3)
250+
activerecord (= 6.1.3)
251+
activestorage (= 6.1.3)
252+
activesupport (= 6.1.3)
253+
bundler (>= 1.15.0)
254+
railties (= 6.1.3)
251255
sprockets-rails (>= 2.0.0)
252256
rails-dom-testing (2.0.3)
253257
activesupport (>= 4.2.0)
@@ -257,12 +261,12 @@ GEM
257261
rails-i18n (6.0.0)
258262
i18n (>= 0.7, < 2)
259263
railties (>= 6.0.0, < 7)
260-
railties (6.0.3.5)
261-
actionpack (= 6.0.3.5)
262-
activesupport (= 6.0.3.5)
264+
railties (6.1.3)
265+
actionpack (= 6.1.3)
266+
activesupport (= 6.1.3)
263267
method_source
264268
rake (>= 0.8.7)
265-
thor (>= 0.20.3, < 2.0)
269+
thor (~> 1.0)
266270
rake (13.0.3)
267271
rb-fsevent (0.10.4)
268272
rb-inotify (0.10.1)
@@ -308,13 +312,12 @@ GEM
308312
net-ssh (>= 2.8.0)
309313
systemu (2.6.5)
310314
thor (1.1.0)
311-
thread_safe (0.3.6)
312315
tilt (2.0.10)
313316
turbolinks (5.2.1)
314317
turbolinks-source (~> 5.2)
315318
turbolinks-source (5.2.0)
316-
tzinfo (1.2.9)
317-
thread_safe (~> 0.1)
319+
tzinfo (2.0.4)
320+
concurrent-ruby (~> 1.0)
318321
uglifier (4.2.0)
319322
execjs (>= 0.3.0, < 3)
320323
unf (0.1.4)
@@ -368,7 +371,7 @@ DEPENDENCIES
368371
capistrano-rails
369372
capistrano-rbenv
370373
capistrano3-puma
371-
capybara (>= 2.15)
374+
capybara
372375
dalli
373376
devise
374377
devise-jwt
@@ -377,26 +380,26 @@ DEPENDENCIES
377380
ffaker
378381
font-awesome-rails
379382
ipip-fast
380-
jbuilder (~> 2.10)
383+
jbuilder
381384
jquery-rails
382385
listen
383386
minitest
384387
minitest-ci
385388
puma
386389
pundit
387-
rails (~> 6.0.3)
388-
rails-i18n (~> 6.0)
390+
rails (~> 6.1.3)
391+
rails-i18n
389392
saml_idp!
390393
sassc-rails
391394
selenium-webdriver
392395
simplecov
393396
spring
394-
spring-watcher-listen (~> 2.0.1)
397+
spring-watcher-listen
395398
sprockets
396399
sqlite3
397-
turbolinks (~> 5)
400+
turbolinks
398401
tzinfo-data
399-
uglifier (>= 1.3.0)
402+
uglifier
400403
web-console
401404
webdrivers
402405
webpacker

bin/rails

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
#!/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
2+
load File.expand_path("spring", __dir__)
73
APP_PATH = File.expand_path('../config/application', __dir__)
8-
require_relative '../config/boot'
9-
require 'rails/commands'
4+
require_relative "../config/boot"
5+
require "rails/commands"

bin/rake

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
#!/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-
require_relative '../config/boot'
8-
require 'rake'
2+
load File.expand_path("spring", __dir__)
3+
require_relative "../config/boot"
4+
require "rake"
95
Rake.application.run

bin/setup

+8-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env ruby
2-
require 'fileutils'
2+
require "fileutils"
33

44
# path to your application root.
55
APP_ROOT = File.expand_path('..', __dir__)
@@ -9,31 +9,28 @@ def system!(*args)
99
end
1010

1111
FileUtils.chdir APP_ROOT do
12-
# This script is a way to setup or update your development environment automatically.
13-
# This script is idempotent, so that you can run it at anytime and get an expectable outcome.
12+
# This script is a way to set up or update your development environment automatically.
13+
# This script is idempotent, so that you can run it at any time and get an expectable outcome.
1414
# Add necessary setup steps to this file.
1515

1616
puts '== Installing dependencies =='
1717
system! 'gem install bundler --conservative'
1818
system('bundle check') || system!('bundle install')
1919

2020
# Install JavaScript dependencies
21-
system('bin/yarn')
21+
system! 'bin/yarn'
2222

23-
puts "\n== Copying sample files =="
24-
unless File.exist?('config/database.yml')
25-
FileUtils.cp 'config/database.yml.sample', 'config/database.yml'
26-
end
23+
# puts "\n== Copying sample files =="
24+
# unless File.exist?('config/database.yml')
25+
# FileUtils.cp 'config/database.yml.sample', 'config/database.yml'
26+
# end
2727

2828
puts "\n== Preparing database =="
2929
system! 'bin/rails db:prepare'
3030

3131
puts "\n== Removing old logs and tempfiles =="
3232
system! 'bin/rails log:clear tmp:clear'
3333

34-
puts "\n== Loading test data into dev db =="
35-
system! 'bin/rails db:fixtures:load RAILS_ENV=development'
36-
3734
puts "\n== Restarting application server =="
3835
system! 'bin/rails restart'
3936
end

bin/spring

+9-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
#!/usr/bin/env ruby
2+
if !defined?(Spring) && [nil, "development", "test"].include?(ENV["RAILS_ENV"])
3+
gem "bundler"
4+
require "bundler"
25

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
6+
# Load Spring without loading other gems in the Gemfile, for speed.
7+
Bundler.locked_gems&.specs&.find { |spec| spec.name == "spring" }&.tap do |spring|
138
Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
14-
gem 'spring', spring.version
15-
require 'spring/binstub'
9+
gem "spring", spring.version
10+
require "spring/binstub"
11+
rescue Gem::LoadError
12+
# Ignore when Spring is not installed.
1613
end
1714
end

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

0 commit comments

Comments
 (0)