Skip to content
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

Rails 7.2 & Ruby 3.2.6 upgrade #1076

Merged
merged 18 commits into from
Jan 20, 2025
Merged

Rails 7.2 & Ruby 3.2.6 upgrade #1076

merged 18 commits into from
Jan 20, 2025

Conversation

fbacall
Copy link
Member

@fbacall fbacall commented Jan 16, 2025

Summary of changes

  • Updates Rails to 7.2
  • Updates Ruby to 3.2.6
  • Some hackery to avoid secrets being deprecated and removed in Rails 7.1+
  • Fixes some tests that were not behaving as expected

Motivation and context

Rails 7.0 EOL is this year. Keeping on top of security & bug fixes.

Checklist

  • I have read and followed the CONTRIBUTING guide.
  • I confirm that I have the authority necessary to make this contribution on behalf of its copyright owner and agree
    to license it to the TeSS codebase under the
    BSD license.

`config.action_dispatch.show_exceptions = :rescuable`
```
 DEPRECATION WARNING: Passing the class as positional argument is deprecated and will be removed in Rails 7.2.

Please pass the class as a keyword argument:

  serialize :parameters, type: Hash
 (called from require at <internal:/opt/hostedtoolcache/Ruby/3.2.5/x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:38)
 ```
```
#11 106.1 Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
#11 106.1
#11 106.1     current directory: /usr/local/bundle/gems/psych-5.2.2/ext/psych
#11 106.1 /usr/local/bin/ruby extconf.rb
#11 106.1 checking for yaml.h... no
#11 106.1 yaml.h not found
```
Also bump `jbuilder` to fix:
```
DEPRECATION WARNING: ActiveSupport::ProxyObject is deprecated and will be removed in Rails 8.0.
```
```
DEPRECATION WARNING: Defining enums with keyword arguments is deprecated and will be removed
```
@fbacall fbacall merged commit 9ac198f into master Jan 20, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant