Skip to content

Commit 587e61d

Browse files
committed
Upgrade to Rails 7.2
1 parent f3290c0 commit 587e61d

21 files changed

+356
-203
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ gem 'prawn', '~> 1' # Prawn is used to create "tracksheets"
2626
gem 'prawn-table'
2727
gem 'propshaft'
2828
gem 'puma', '~> 6.4' # Use Puma as the app server
29-
gem 'rails', '~> 7.1.3'
29+
gem 'rails', '~> 7.2.0'
3030
gem 'rake'
3131
gem 'reform-rails'
3232
gem 'retries'

Gemfile.lock

Lines changed: 72 additions & 74 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bin/rubocop

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env ruby
2+
require "rubygems"
3+
require "bundler/setup"
4+
5+
# explicit rubocop config increases performance slightly while avoiding config confusion.
6+
ARGV.unshift("--config", File.expand_path("../.rubocop.yml", __dir__))
7+
8+
load Gem.bin_path("rubocop", "rubocop")

bin/setup

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env ruby
22
require "fileutils"
33

4-
# path to your application root.
54
APP_ROOT = File.expand_path("..", __dir__)
5+
APP_NAME = "argo"
66

77
def system!(*args)
88
system(*args, exception: true)
@@ -30,4 +30,8 @@ FileUtils.chdir APP_ROOT do
3030

3131
puts "\n== Restarting application server =="
3232
system! "bin/rails restart"
33+
34+
# puts "\n== Configuring puma-dev =="
35+
# system "ln -nfs #{APP_ROOT} ~/.puma-dev/#{APP_NAME}"
36+
# system "curl -Is https://#{APP_NAME}.test/up | head -n 1"
3337
end

config/application.rb

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
# frozen_string_literal: true
1+
require_relative "boot"
22

3-
require_relative 'boot'
4-
5-
require 'rails/all'
3+
require "rails/all"
64

75
# Require the gems listed in Gemfile, including any gems
86
# you've limited to :test, :development, or :production.
@@ -25,5 +23,18 @@ class Application < Rails::Application
2523
Argo.verifier = app.message_verifier('Argo')
2624
Cocina::Models::Mapping::Purl.base_url = Settings.purl_url
2725
end
26+
27+
# Please, add to the `ignore` list any other `lib` subdirectories that do
28+
# not contain `.rb` files, or that should not be reloaded or eager loaded.
29+
# Common ones are `templates`, `generators`, or `middleware`, for example.
30+
config.autoload_lib(ignore: %w[assets tasks])
31+
32+
# Configuration for the application, engines, and railties goes here.
33+
#
34+
# These settings can be overridden in specific environments using the files
35+
# in config/environments, which are processed later.
36+
#
37+
# config.time_zone = "Central Time (US & Canada)"
38+
# config.eager_load_paths << Rails.root.join("extras")
2839
end
2940
end

config/boot.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# frozen_string_literal: true
1+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
22

3-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
4-
5-
require 'bundler/setup' # Set up gems listed in the Gemfile.
6-
require 'bootsnap/setup' # Speed up boot time by caching expensive operations.
3+
require "bundler/setup" # Set up gems listed in the Gemfile.
4+
require "bootsnap/setup" # Speed up boot time by caching expensive operations.

config/environment.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
# frozen_string_literal: true
2-
31
# Load the Rails application.
4-
require_relative 'application'
2+
require_relative "application"
53

64
# Initialize the Rails application.
75
Rails.application.initialize!

0 commit comments

Comments
 (0)