mirror of
https://github.com/diaspora/diaspora.git
synced 2026-01-09 15:18:11 -05:00
Upgrade to ruby 3.3
This commit is contained in:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -15,8 +15,8 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
ruby:
|
ruby:
|
||||||
- '3.0'
|
- '3.2'
|
||||||
- '3.1'
|
- '3.3'
|
||||||
db:
|
db:
|
||||||
- mysql
|
- mysql
|
||||||
- postgresql
|
- postgresql
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
3.1
|
3.3
|
||||||
|
|||||||
@@ -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
|
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
|
## 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)
|
* 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)
|
||||||
|
|||||||
@@ -913,4 +913,4 @@ DEPENDENCIES
|
|||||||
yajl-ruby (= 1.4.3)
|
yajl-ruby (= 1.4.3)
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
2.3.27
|
2.5.9
|
||||||
|
|||||||
@@ -6,3 +6,11 @@ require "bundler/setup" # Set up gems listed in the Gemfile.
|
|||||||
|
|
||||||
# Load configuration early
|
# Load configuration early
|
||||||
require_relative "load_config"
|
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
|
||||||
|
|||||||
@@ -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 \
|
RUN DEBIAN_FRONTEND=noninteractive \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
|
|||||||
Reference in New Issue
Block a user