From e79c8bbb3107877947eaa9fefabd4fdc4ceadd85 Mon Sep 17 00:00:00 2001 From: Graeme Porteous Date: Thu, 5 Jan 2023 17:15:34 +0000 Subject: [PATCH] Add support for Ruby 3.2 --- .github/workflows/ci.yml | 1 + README.md | 1 + doc/CHANGES.md | 1 + script/handle-mail-replies | 2 ++ script/load-mail-server-logs | 2 ++ script/mailin | 2 ++ 6 files changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 746c45161bd..48546fd7c9d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,6 +26,7 @@ jobs: include: - { ruby: '3.0', postgres: 13.5 } - { ruby: '3.1', postgres: 13.5 } + - { ruby: '3.2', postgres: 13.5 } services: postgres: diff --git a/README.md b/README.md index f24b81e40e4..bb044984fc0 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,7 @@ Every Alaveteli commit is tested by GitHub Actions on the [following Ruby platfo * ruby-3.0 * ruby-3.1 +* ruby-3.2 If you use a ruby version management tool (such as RVM or .rbenv) and want to use the default development version used by the Alaveteli team (currently 3.0.4), you can create a `.ruby-version` symlink with a target of `.ruby-version.example` to switch to that automatically in the project directory. diff --git a/doc/CHANGES.md b/doc/CHANGES.md index 239fdbdd765..a4c2d5fb027 100644 --- a/doc/CHANGES.md +++ b/doc/CHANGES.md @@ -2,6 +2,7 @@ ## Highlighted Features +* Add support for Ruby 3.2 (Graeme Porteous) * Add support for Ruby 3.1 (Graeme Porteous) * Upgrade to Rails 7 (Graeme Porteous) * Improve processing of large PDF attachments (Graeme Porteous) diff --git a/script/handle-mail-replies b/script/handle-mail-replies index 267ad563214..b2638c763bc 100755 --- a/script/handle-mail-replies +++ b/script/handle-mail-replies @@ -1,4 +1,6 @@ #!/bin/bash +export RUBYOPT="-W0" + cd "`dirname "${BASH_SOURCE[0]}"`" exec bundle exec ./handle-mail-replies.rb "$@" diff --git a/script/load-mail-server-logs b/script/load-mail-server-logs index c5174343877..0e575dfc6c3 100755 --- a/script/load-mail-server-logs +++ b/script/load-mail-server-logs @@ -1,5 +1,7 @@ #!/bin/bash +export RUBYOPT="-W0" + LOC="`dirname "${BASH_SOURCE[0]}"`"/.. cd "$LOC" diff --git a/script/mailin b/script/mailin index 4d00fcaa807..41dfbf5a5e3 100755 --- a/script/mailin +++ b/script/mailin @@ -1,5 +1,7 @@ #!/bin/bash +export RUBYOPT="-W0" + # Wire this script to receive incoming email for request responses. INPUT=$(mktemp -t foi-mailin-mail-XXXXXXXX)