Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump ruby from 3.0.3 to 3.0.4 #10576

Merged
merged 1 commit into from
Apr 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.3
3.0.4
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

source 'https://rubygems.org'

ruby '~> 3.0.3'
ruby '~> 3.0.4'

gem 'actionpack-xml_parser', '~> 2.0.0'
gem 'activemodel-serializers-xml', '~> 1.0.1'
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,7 @@ DEPENDENCIES
with_advisory_lock (~> 4.6.0)

RUBY VERSION
ruby 3.0.3p157
ruby 3.0.4p208

BUNDLED WITH
2.2.32
2.3.12
4 changes: 2 additions & 2 deletions docker/ci/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:3.0.3-buster
FROM ruby:3.0.4-buster
MAINTAINER operations@openproject.com

ENV NODE_VERSION="14.17.0"
Expand Down Expand Up @@ -27,7 +27,7 @@ RUN for url in $CHROME_SOURCE_URL; do \

ENV CI=true
ENV RAILS_ENV=test
ENV BUNDLER_VERSION="2.1.4"
ENV BUNDLER_VERSION="2.3.12"
ENV BUNDLE_WITHOUT="development:production:docker"
ENV OPENPROJECT_DISABLE_DEV_ASSET_PROXY=1
ENV CAPYBARA_DYNAMIC_BIND_IP=1
Expand Down
4 changes: 2 additions & 2 deletions docker/dev/backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:3.0.3-bullseye as develop
FROM ruby:3.0.4-bullseye as develop
MAINTAINER operations@openproject.com

ARG DEV_UID=1000
Expand All @@ -7,7 +7,7 @@ ARG DEV_GID=1001
ENV USER=dev
ENV RAILS_ENV=development

ENV BUNDLER_VERSION "2.2.32"
ENV BUNDLER_VERSION "2.3.12"

# `--no-log-init` is required as a workaround to avoid disk exhaustion.
#
Expand Down
4 changes: 2 additions & 2 deletions docker/prod/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:3.0.3-buster
FROM ruby:3.0.4-buster
MAINTAINER operations@openproject.com

# Allow platform-specific additions. Valid values are: on-prem,saas,bahn
Expand All @@ -8,7 +8,7 @@ ARG GITHUB_OAUTH_TOKEN
ARG DEBIAN_FRONTEND=noninteractive

ENV NODE_VERSION="14.17.0"
ENV BUNDLER_VERSION="2.1.4"
ENV BUNDLER_VERSION="2.3.12"
ENV BUNDLE_PATH__SYSTEM=false
ENV APP_USER=app
ENV APP_PATH=/app
Expand Down
2 changes: 1 addition & 1 deletion docs/development/development-environment-docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.3
Your Ruby version is 2.7.4, but your Gemfile specified ~> 3.0.4
```

This means that the current image is out-dated. You can update it like this:
Expand Down
13 changes: 6 additions & 7 deletions docs/development/development-environment-osx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.3"
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"

### Install rbenv and ruby-build

Expand All @@ -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.3`, which we also require.
At the time of this writing, the latest stable version is `3.0.4`, 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.3
rbenv install 3.0.4
```

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.3
rbenv global 3.0.4
```

You also need to install [bundler](https://github.com/bundler/bundler/), the ruby gem bundler.
Expand Down Expand Up @@ -116,10 +116,10 @@ You should now have an active ruby and node installation. Verify that it works w

```bash
$ ruby --version
ruby 3.0.3p157 (2021-11-24 revision 3fb7d2cadc) [x86_64-darwin20]
ruby 3.0.4p208 (2022-04-12 revision 3fa771dded) [x86_64-linux]

$ bundler --version
Bundler version 2.1.4
Bundler version 2.3.12

node --version
v14.17.0
Expand Down Expand Up @@ -264,4 +264,3 @@ If an error occurs, it should be logged there (as well as in the output to STDOU

If you have any further questions, comments, feedback, or an idea to enhance this guide, please tell us at the appropriate community.openproject.org [forum](https://community.openproject.org/projects/openproject/boards/9).
[Follow OpenProject on twitter](https://twitter.com/openproject), and follow [the news](https://www.openproject.org/blog) to stay up to date.

14 changes: 7 additions & 7 deletions docs/development/development-environment-ubuntu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ If you find any bugs or you have any recommendations for improving this tutorial

We need an active Ruby and Node JS environment to run OpenProject. To this end, we need some packages installed on the system.o

CPU recommendation: 4 CPUs, Memory recommendation: 8 better 16 GB (in general we meed double the amount of a normal production installation)
CPU recommendation: 4 CPUs, Memory recommendation: 8 better 16 GB (in general we need double the amount of a normal production installation)

```bash
sudo apt-get update
Expand All @@ -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.3"
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"

### Install rbenv and ruby-build

Expand Down Expand Up @@ -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.3` which we also require.
At the time of this writing, the latest stable version is `3.0.4` 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.3
rbenv install 3.0.4
```

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.3
rbenv global 3.0.4
rbenv rehash
```

Expand Down Expand Up @@ -159,10 +159,10 @@ You should now have an active ruby and node installation. Verify that it works w

```bash
ruby --version
ruby 3.0.3p157 (2021-11-24 revision 3fb7d2cadc) [x86_64-darwin20]
ruby 3.0.4p208 (2022-04-12 revision 3fa771dded) [x86_64-linux]

bundler --version
Bundler version 2.2.33
Bundler version 2.3.12

node --version
v16.13.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.3
[openproject@host] rbenv install 3.0.4
[openproject@host] rbenv rehash
[openproject@host] rbenv global 3.0.3
[openproject@host] rbenv global 3.0.4
```

To check our Ruby installation we run `ruby --version`. It should output
something very similar to:

```
ruby 3.0.3p157 (2021-11-24 revision 3fb7d2cadc) [x86_64-darwin20]
ruby 3.0.4p208 (2022-04-12 revision 3fa771dded) [x86_64-linux]
```

## Installation of Node
Expand All @@ -142,7 +142,7 @@ time to finish.
To check our Node installation we run `node --version`. It should output something very similar to:

```
v14.16.0
v14.17.0
```

## Installation of OpenProject
Expand Down