Upgrade Ruby to version 3.1.4

Note we updated the `mail` gem in commit 103742847, which is necesary
for Ruby 3.1 because it adds the net-smtp dependency. The net-smtp
library was removed from Ruby in Ruby 3.1, and if we don't include it,
we get an error:

```
cannot load such file -- net/smtp (LoadError)
```

We're also updating the Bundler version in the Gemfile.lock so it's the
one included in Ruby 3.1. Without updating it, we get a warning:

```
Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)'
has been deprecated. Please call `DidYouMean.correct_error(error_nam e,
spell_checker)' instead.
```

Finally, in order to make Capistrano work, we need to add a couple more
changes:

* Make the net-ssh gem compatible with SSL 3.0; done in commit b2eec088b
* Explicitly allow aliases in the `deploy-secrets.yml` file because
  Psych 4.x (included in Ruby 3.1) doesn't load aliases without this
  option
This commit is contained in:
Javi Martín
2023-07-20 02:05:56 +02:00
parent bf96136ccf
commit e74eff217b
7 changed files with 8 additions and 8 deletions

View File

@@ -3,7 +3,7 @@ stages:
- lint
tests:
image: "ruby:3.0.6"
image: "ruby:3.1.4"
stage: test
services:
- postgres:10.10
@@ -34,7 +34,7 @@ tests:
# PRONTO_GITLAB_API_PRIVATE_TOKEN to your repository CI/CD settings
# giving it the value of the Personal Access Token
linters:
image: "ruby:3.0.6"
image: "ruby:3.1.4"
stage: lint
cache:
key: consul