mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
Update Ruby to 4.0.0
This commit is contained in:
@@ -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.7`, which we also require.
|
||||
At the time of this writing, the latest stable version is `4.0.0`, 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.7` and install that version.
|
||||
Read the first line e.g. `4.0.0` 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.7` and install that version.
|
||||
Read the first line e.g. `4.0.0` and install that version.
|
||||
|
||||
```shell
|
||||
# Install the required version as read from the .ruby-version file
|
||||
rbenv install 3.4.7
|
||||
rbenv install 4.0.0
|
||||
```
|
||||
|
||||
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.7
|
||||
rbenv global 4.0.0
|
||||
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.7 (2025-10-08 revision 7a5688e2a2) +PRISM [arm64-darwin25]
|
||||
ruby 4.0.0 (2025-12-25 revision 553f1675f3) +PRISM [arm64-darwin25]
|
||||
|
||||
bundler --version
|
||||
Bundler version 4.0.1
|
||||
|
||||
Reference in New Issue
Block a user