Upgrade to ruby 3.3

This commit is contained in:
Benjamin Neff 2024-05-30 23:28:13 +02:00
parent 02f8629254
commit 07f6a91d02
No known key found for this signature in database
GPG key ID: 971464C3F1A90194
6 changed files with 15 additions and 7 deletions

View file

@ -15,8 +15,8 @@ jobs:
fail-fast: false
matrix:
ruby:
- '3.0'
- '3.1'
- '3.2'
- '3.3'
db:
- mysql
- postgresql

View file

@ -1 +1 @@
3.1
3.3

View file

@ -34,9 +34,9 @@ With this release, we switched from `unicorn` to `puma` to run our applications.
We use yarn to install the frontend dependencies now, so you need to have that installed. See here for how to install it: https://yarnpkg.com/en/docs/install
## Suggested Ruby version: 3.1
## Suggested Ruby version: 3.3
We recommend setting up new pods using Ruby 3.1, and updating existing pods to this version as well. Ruby 2.7 is EOL and no longer supported.
We recommend setting up new pods using Ruby 3.3, and updating existing pods to this version as well. Ruby 2.7 is EOL and no longer supported.
## Refactor
* Add bootstrapping for using ECMAScript 6 with automatic transpiling for compatibility [#7581](https://github.com/diaspora/diaspora/pull/7581) [#8397](https://github.com/diaspora/diaspora/pull/8397)

View file

@ -913,4 +913,4 @@ DEPENDENCIES
yajl-ruby (= 1.4.3)
BUNDLED WITH
2.3.27
2.5.9

View file

@ -6,3 +6,11 @@ require "bundler/setup" # Set up gems listed in the Gemfile.
# Load configuration early
require_relative "load_config"
# Ruby 3.2 removed the `exists?` alias from `File`, but at least the `logging-rails` gem still uses it.
# This is only a workaround, and we need a different long-term solution. It looks like the `logging-rails` gem
# is not maintained anymore, so we maybe need to find a replacement. But since this is the only thing preventing
# us from upgrading to Ruby >= 3.2, we can just create our own alias for now.
class << File
alias exists? exist?
end

View file

@ -1,4 +1,4 @@
FROM docker.io/amd64/ruby:3.1-slim-bullseye
FROM docker.io/amd64/ruby:3.3-slim-bullseye
RUN DEBIAN_FRONTEND=noninteractive \
apt-get update && \