-
Notifications
You must be signed in to change notification settings - Fork 10
Upgrade Ruby (3.1.4 -> 3.3.8) & Rails (7.1.3 -> 7.2.2.1) #749
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
fosterfarrell9
wants to merge
29
commits into
dev
Choose a base branch
from
upgrade/ruby_and_rails
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
322c9bc
Upgrade to Ruby 3.2.7
fosterfarrell9 34689b0
Update Gemfile.lock
fosterfarrell9 a2b9c85
Upgrade to Ruby 3.3.7
fosterfarrell9 ba786b1
Upgrade thredded in order to prepare for Rails 7.2 upgrade
fosterfarrell9 15a68eb
Upgrade Rails gem to Rails 7.2.2.1
fosterfarrell9 855edea
Apply app:upgrade
fosterfarrell9 8f0ab9e
Flip switches for Rais 7.2 migration
fosterfarrell9 75a1a56
Enforce Rubocop rules
fosterfarrell9 7794930
Add mutex_m in order to silence Ruby 3.4 warnings
fosterfarrell9 811d874
Use Rails 7.2 defaults
fosterfarrell9 ca1fa1c
Replace keyword argument syntax by positional arguments in order to f…
fosterfarrell9 90195db
Update schemas to Rails 7.2
fosterfarrell9 4382a8b
Add csv gem in order to silence deprecation warning
fosterfarrell9 b7b2433
Remove explicit requiring of csv
fosterfarrell9 77b68fc
Add config changes from development to docker_development
fosterfarrell9 7f3437b
Replace remaining old ruby versions
fosterfarrell9 7e14a3c
Enforce Rubocop rules
fosterfarrell9 cbf17ff
Add missing require
fosterfarrell9 b3e1181
Merge branch 'dev' into upgrade/ruby_and_rails
Splines e11da52
Use Debian bookworm instead of bullseye & update to ruby 3.3.8 (inste…
Splines 61997f9
Update to latest thredded version
Splines 19d726b
Force SSL in production
Splines af6665c
Update postgresql in dev to v15
Splines 7992114
Fix rubocop yml file path
Splines 3d293ab
Fix failing unit tests (don't set queue_adapter to sidekiq)
Splines c4e21e9
Temporarily uninstall new gems csv & mutex_m
Splines a12a1ca
Instead of adding mutex_m as dependency, update spring
Splines d796bda
Add back in csv dependency for Vignettes::CsvHandler
Splines 2963988
Specify missing config CLI arg for RuboCop in GitHub Actions
Splines File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module EmailHelper | ||
def email_image_tag(image, **options) | ||
def email_image_tag(image, **) | ||
attachments.inline[image] = Rails.root.join("public/#{image}").read | ||
image_tag(attachments[image].url, **options) | ||
image_tag(attachments[image].url, **) | ||
end | ||
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why you removed this line (also in other files)? This is not a RuboCop violation. Without this line, this class will throw an error if CSV is not magically loaded before loading this class and we don't want to risk that, right?
On another point: it'd be better to place this at the top of the file to be better visible since that's the usual place where we put the
require
statements.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turns out that's exactly what is done. But there's no magic: instead it is just the line
Bundler.require(*Rails.groups)
inconfig/application.rb
which is responsible for this behavior. So indeed, removing theserequire
lines as you did works just fine.As CSV functionality is not used in many places, we might discuss if we instead want to do a
gem "csv", "~> 3.3", require: false
instead. Then, onlyrequire
it at the respective places (at the very top of files that use theCSV
class). Of course, one single gem doesn't cut startup times, but in total with many gems it might make a difference.