[chore] bump ruby version to 3.1.2

pull/10620/head
Eric Schubert 3 years ago
parent 68ce49f3f1
commit dd0b142d45
No known key found for this signature in database
GPG Key ID: 1D346C019BD4BAA2
  1. 2
      .ruby-version
  2. 6
      Gemfile
  3. 13
      Gemfile.lock
  4. 2
      docker/ci/Dockerfile
  5. 4
      docker/dev/backend/Dockerfile
  6. 2
      docker/prod/Dockerfile
  7. 2
      docs/development/development-environment-docker/README.md
  8. 10
      docs/development/development-environment-osx/README.md
  9. 10
      docs/development/development-environment-ubuntu/README.md
  10. 6
      docs/installation-and-operations/installation/manual/README.md

@ -1 +1 @@
3.0.4
3.1.2

@ -28,7 +28,7 @@
source 'https://rubygems.org'
ruby '~> 3.0.4'
ruby '~> 3.1.2'
gem 'actionpack-xml_parser', '~> 2.0.0'
gem 'activemodel-serializers-xml', '~> 1.0.1'
@ -62,6 +62,10 @@ gem 'typed_dag', '~> 2.0.2'
gem 'addressable', '~> 2.8.0'
# Needed to make rails 6.x work with ruby 3.1, can be dropped
# after migrated to rails 7 (see https://stackoverflow.com/a/70500221)
gem 'net-smtp', '~> 0.3.1', require: false
# Remove whitespace from model input
gem "auto_strip_attributes", "~> 2.5"

@ -404,6 +404,7 @@ GEM
activerecord (>= 3.0, < 8.0)
delayed_job (>= 3.0, < 5)
diff-lcs (1.5.0)
digest (3.1.0)
disposable (0.6.2)
declarative (>= 0.0.9, < 1.0.0)
representable (>= 3.1.1, < 3.2.0)
@ -554,6 +555,7 @@ GEM
ice_cube (~> 0.16)
ice_cube (0.16.4)
interception (0.5)
io-wait (0.2.1)
iso8601 (0.13.0)
jmespath (1.6.1)
json (2.6.1)
@ -626,6 +628,13 @@ GEM
mustermann (>= 1.0.0)
nap (1.1.0)
net-ldap (0.17.0)
net-protocol (0.1.2)
io-wait
timeout
net-smtp (0.3.1)
digest
net-protocol
timeout
netrc (0.11.0)
nio4r (2.5.8)
no_proxy_fix (0.1.2)
@ -925,6 +934,7 @@ GEM
thor (1.2.1)
tilt (2.0.10)
timecop (0.9.5)
timeout (0.2.0)
trailblazer-option (0.1.2)
ttfunk (1.7.0)
typed_dag (2.0.2)
@ -1044,6 +1054,7 @@ DEPENDENCIES
multi_json (~> 1.15.0)
my_page!
net-ldap (~> 0.17.0)
net-smtp (~> 0.3.1)
nokogiri (~> 1.13.4)
oj (~> 3.13.0)
okcomputer (~> 1.18.1)
@ -1147,7 +1158,7 @@ DEPENDENCIES
with_advisory_lock (~> 4.6.0)
RUBY VERSION
ruby 3.0.4p208
ruby 3.1.2p20
BUNDLED WITH
2.3.12

@ -1,4 +1,4 @@
FROM ruby:3.0.4-buster
FROM ruby:3.1.2-buster
MAINTAINER operations@openproject.com
ENV NODE_VERSION="14.17.0"

@ -1,4 +1,4 @@
FROM ruby:3.0.4-bullseye as develop
FROM ruby:3.1.2-bullseye as develop
MAINTAINER operations@openproject.com
ARG DEV_UID=1000
@ -47,7 +47,7 @@ WORKDIR /home/$USER/openproject
USER $USER
RUN gem install bundler --version "${bundler_version}" --no-document
RUN gem install bundler --version "${BUNDLER_VERSION}" --no-document
####### Testing image below #########

@ -1,4 +1,4 @@
FROM ruby:3.0.4-buster
FROM ruby:3.1.2-buster
MAINTAINER operations@openproject.com
# Allow platform-specific additions. Valid values are: on-prem,saas,bahn

@ -192,7 +192,7 @@ When a dependency of the image or the base image itself is changed you may need
Ruby version is updated you may run into an error like the following when running `bin/compose setup`:
```
Your Ruby version is 2.7.4, but your Gemfile specified ~> 3.0.4
Your Ruby version is 2.7.6, but your Gemfile specified ~> 3.1.2
```
This means that the current image is out-dated. You can update it like this:

@ -15,7 +15,7 @@ We'll use [homebrew](https://brew.sh/) to install most of our requirements. Plea
## Install Ruby
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.0.4"
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.1.2"
### Install rbenv and ruby-build
@ -32,20 +32,20 @@ $ rbenv init
### Installing ruby-3.0
With both installed, we can now install the actual ruby version 3.0. You can check available ruby versions with `rbenv install --list`.
At the time of this writing, the latest stable version is `3.0.4`, which we also require.
At the time of this writing, the latest stable version is `3.1.2`, which we also require.
We suggest you install the version we require in the [Gemfile](https://github.com/opf/openproject/blob/dev/Gemfile). Search for the `ruby '~> X.Y.Z'` line
and install that version.
```bash
# Install the required version as read from the Gemfile
rbenv install 3.0.4
rbenv install 3.1.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
```bash
rbenv global 3.0.4
rbenv global 3.1.2
```
You also need to install [bundler](https://github.com/bundler/bundler/), the ruby gem bundler.
@ -116,7 +116,7 @@ You should now have an active ruby and node installation. Verify that it works w
```bash
$ ruby --version
ruby 3.0.4p208 (2022-04-12 revision 3fa771dded) [x86_64-linux]
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux]
$ bundler --version
Bundler version 2.3.12

@ -26,7 +26,7 @@ sudo apt-get install git curl build-essential zlib1g-dev libyaml-dev libssl-dev
## Install Ruby
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.0.4"
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.1.2"
### Install rbenv and ruby-build
@ -60,20 +60,20 @@ git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
### Installing ruby-3.0
With both installed, we can now install the actual ruby version 3.0. You can check available ruby versions with `rbenv install --list`.
At the time of this writing, the latest stable version is `3.0.4` which we also require.
At the time of this writing, the latest stable version is `3.1.2` which we also require.
We suggest you install the version we require in the [Gemfile](https://github.com/opf/openproject/blob/dev/Gemfile). Search for the `ruby '~> X.Y.Z'` line
and install that version.
```bash
# Install the required version as read from the Gemfile
rbenv install 3.0.4
rbenv install 3.1.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
```bash
rbenv global 3.0.4
rbenv global 3.1.2
rbenv rehash
```
@ -159,7 +159,7 @@ You should now have an active ruby and node installation. Verify that it works w
```bash
ruby --version
ruby 3.0.4p208 (2022-04-12 revision 3fa771dded) [x86_64-linux]
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux]
bundler --version
Bundler version 2.3.12

@ -106,16 +106,16 @@ time to finish.
[openproject@host] source ~/.profile
[openproject@host] git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
[openproject@host] rbenv install 3.0.4
[openproject@host] rbenv install 3.1.2
[openproject@host] rbenv rehash
[openproject@host] rbenv global 3.0.4
[openproject@host] rbenv global 3.1.2
```
To check our Ruby installation we run `ruby --version`. It should output
something very similar to:
```
ruby 3.0.4p208 (2022-04-12 revision 3fa771dded) [x86_64-linux]
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux]
```
## Installation of Node

Loading…
Cancel
Save