mirror of
https://github.com/opf/openproject.git
synced 2026-06-13 19:20:00 +00:00
Update ruby to 3.4.2
This commit is contained in:
@@ -5,8 +5,8 @@ on:
|
||||
branches:
|
||||
- release/*
|
||||
paths:
|
||||
- 'db/migrate/**.rb'
|
||||
- 'modules/**/db/migrate/*.rb'
|
||||
- "db/migrate/**.rb"
|
||||
- "modules/**/db/migrate/*.rb"
|
||||
|
||||
jobs:
|
||||
danger:
|
||||
@@ -17,10 +17,10 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: '3.4.1'
|
||||
ruby-version: "3.4.2"
|
||||
- uses: MeilCli/danger-action@v6
|
||||
with:
|
||||
danger_file: 'Dangerfile'
|
||||
danger_id: 'danger-pr'
|
||||
danger_file: "Dangerfile"
|
||||
danger_id: "danger-pr"
|
||||
env:
|
||||
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
3.4.1
|
||||
3.4.2
|
||||
|
||||
+1
-1
@@ -1914,7 +1914,7 @@ CHECKSUMS
|
||||
zeitwerk (2.7.1) sha256=0945986050e4907140895378e74df1fe882a2271ed087cc6c6d6b00d415a2756
|
||||
|
||||
RUBY VERSION
|
||||
ruby 3.4.1p0
|
||||
ruby 3.4.2p28
|
||||
|
||||
BUNDLED WITH
|
||||
2.6.3
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM ruby:3.4.1-bullseye AS develop
|
||||
FROM ruby:3.4.2-bullseye AS develop
|
||||
MAINTAINER operations@openproject.com
|
||||
|
||||
ARG DEV_UID=1000
|
||||
@@ -21,8 +21,8 @@ RUN groupmod -g $DEV_GID $USER || true
|
||||
WORKDIR /home/$USER
|
||||
|
||||
RUN apt-get update -qq && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||
postgresql-client libffi7 libffi-dev curl
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||
postgresql-client libffi7 libffi-dev curl
|
||||
|
||||
# Setup node source and install nodejs. Needed for running certain scripts in backend container,
|
||||
# as the `./scripts/api/validate_spec`.
|
||||
@@ -59,8 +59,8 @@ FROM develop AS test
|
||||
USER root
|
||||
|
||||
RUN apt-get update -qq && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||
jq
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||
jq
|
||||
|
||||
COPY ./docker/dev/backend/scripts/run-test /usr/bin/run-test
|
||||
COPY ./docker/dev/backend/scripts/setup-tests /usr/bin/setup-tests
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
ARG RUBY_VERSION="3.4.1"
|
||||
ARG RUBY_VERSION="3.4.2"
|
||||
FROM ruby:${RUBY_VERSION}-bookworm AS base
|
||||
LABEL maintainer="operations@openproject.com"
|
||||
|
||||
|
||||
@@ -40,10 +40,10 @@ sudo apt-get install git curl build-essential zlib1g-dev libyaml-dev libssl-dev
|
||||
Use [rbenv](https://github.com/rbenv/rbenv) and [ruby-build](https://github.com/rbenv/ruby-build#readme) to install
|
||||
Ruby.
|
||||
You can check available ruby versions with `rbenv install --list`.
|
||||
At the time of this writing, the latest stable version is `3.4.1`, which we also require.
|
||||
At the time of this writing, the latest stable version is `3.4.2`, which we also require.
|
||||
|
||||
We suggest you install the version we require in [.ruby-version](https://github.com/opf/openproject/blob/dev/.ruby-version).
|
||||
Read the first line e.g. `3.4.1` and install that version.
|
||||
Read the first line e.g. `3.4.2` and install that version.
|
||||
|
||||
#### Install rbenv and ruby-build
|
||||
|
||||
@@ -80,18 +80,18 @@ With both installed, we can now install ruby.
|
||||
You can check available ruby versions with `rbenv install --list`.
|
||||
|
||||
We suggest you install the version we require in [.ruby-version](https://github.com/opf/openproject/blob/dev/.ruby-version).
|
||||
Read the first line e.g. `3.4.1` and install that version.
|
||||
Read the first line e.g. `3.4.2` and install that version.
|
||||
|
||||
```shell
|
||||
# Install the required version as read from the .ruby-version file
|
||||
rbenv install 3.4.1
|
||||
rbenv install 3.4.2
|
||||
```
|
||||
|
||||
This might take a while depending on whether ruby is built from source. After it is complete, you need to tell rbenv to
|
||||
globally activate this version
|
||||
|
||||
```shell
|
||||
rbenv global 3.4.1
|
||||
rbenv global 3.4.2
|
||||
rbenv rehash
|
||||
```
|
||||
|
||||
@@ -181,7 +181,7 @@ You should now have an active ruby and node installation. Verify that it works w
|
||||
|
||||
```shell
|
||||
ruby --version
|
||||
ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [arm64-darwin23]
|
||||
ruby 3.4.2 (2024-12-25 revision 48d4efcb85) +PRISM [arm64-darwin23]
|
||||
|
||||
bundler --version
|
||||
Bundler version 2.6.3
|
||||
|
||||
@@ -28,7 +28,7 @@ their homepage.
|
||||
Use [rbenv](https://github.com/rbenv/rbenv) and [ruby-build](https://github.com/rbenv/ruby-build#readme) to install
|
||||
Ruby. We always require the latest ruby versions, and you can check which version is required
|
||||
by [checking the Gemfile](https://github.com/opf/openproject/blob/dev/Gemfile#L31) for the `ruby "~> X.Y"` statement. At
|
||||
the time of writing, this version is "3.4.1"
|
||||
the time of writing, this version is "3.4.2"
|
||||
|
||||
#### Install rbenv and ruby-build
|
||||
|
||||
@@ -48,18 +48,18 @@ With both installed, we can now install the actual ruby version.
|
||||
You can check available ruby versions with `rbenv install --list`.
|
||||
|
||||
We suggest you install the version we require in [.ruby-version](https://github.com/opf/openproject/blob/dev/.ruby-version).
|
||||
Read the first line e.g. `3.4.1` and install that version.
|
||||
Read the first line e.g. `3.4.2` and install that version.
|
||||
|
||||
```shell
|
||||
# Install the required version as read from the .ruby-version file
|
||||
rbenv install 3.4.1
|
||||
rbenv install 3.4.2
|
||||
```
|
||||
|
||||
This might take a while depending on whether ruby is built from source. After it is complete, you need to tell rbenv to
|
||||
globally activate this version
|
||||
|
||||
```shell
|
||||
rbenv global 3.4.1
|
||||
rbenv global 3.4.2
|
||||
```
|
||||
|
||||
You also need to install [bundler](https://github.com/bundler/bundler/), the ruby gem bundler.
|
||||
@@ -134,7 +134,7 @@ You should now have an active ruby and node installation. Verify that it works w
|
||||
|
||||
```shell
|
||||
$ ruby --version
|
||||
ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [arm64-darwin23]
|
||||
ruby 3.4.2 (2025-02-15 revision d2930f8e7a) +PRISM [arm64-darwin24]
|
||||
|
||||
$ bundler --version
|
||||
Bundler version 2.6.3
|
||||
|
||||
@@ -96,8 +96,8 @@ Lastly, revert to the previous system user:
|
||||
|
||||
## Installation of Ruby
|
||||
|
||||
The are several possibilities to install Ruby on your machine.
|
||||
We will use [rbenv](https://github.com/rbenv/rbenv).
|
||||
The are several possibilities to install Ruby on your machine.
|
||||
We will use [rbenv](https://github.com/rbenv/rbenv).
|
||||
Please be aware that the actual installation of a specific Ruby version takes some time to finish.
|
||||
|
||||
```shell
|
||||
@@ -110,19 +110,19 @@ Please be aware that the actual installation of a specific Ruby version takes so
|
||||
```
|
||||
|
||||
We suggest you install the version we require in [.ruby-version](https://github.com/opf/openproject/blob/dev/.ruby-version).
|
||||
Read the first line e.g. `3.4.1` and install that version.
|
||||
Read the first line e.g. `3.4.2` and install that version.
|
||||
|
||||
```shell
|
||||
[openproject@host] rbenv install 3.4.1
|
||||
[openproject@host] rbenv install 3.4.2
|
||||
[openproject@host] rbenv rehash
|
||||
[openproject@host] rbenv global 3.4.1
|
||||
[openproject@host] rbenv global 3.4.2
|
||||
```
|
||||
|
||||
To check our Ruby installation we run `ruby --version`. It should output
|
||||
something very similar to:
|
||||
|
||||
```text
|
||||
ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [arm64-darwin23]
|
||||
ruby 3.4.2 (2025-02-15 revision d2930f8e7a) +PRISM [arm64-darwin24]
|
||||
```
|
||||
|
||||
## Installation of Node
|
||||
|
||||
+1
-1
@@ -1633,7 +1633,7 @@
|
||||
sha256 = "0imzd0cb9vlkc3yggl4rph1v1wm4z9psgs4z6aqsqa5hgf8gr9hj";
|
||||
type = "gem";
|
||||
};
|
||||
version = "3.4.1";
|
||||
version = "3.4.2";
|
||||
};
|
||||
livingstyleguide = {
|
||||
dependencies = ["minisyntax" "redcarpet" "sassc" "thor" "tilt"];
|
||||
|
||||
Reference in New Issue
Block a user