Skip to content

Commit

Permalink
WIP Add support for Ruby 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
gbp committed Jan 5, 2023
1 parent 9e3824c commit ab21730
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
- { ruby: '3.0', postgres: 13.5, gemfile: 'Gemfile.rails_next' }
- { ruby: '3.1', postgres: 13.5 }
- { ruby: '3.1', postgres: 13.5, gemfile: 'Gemfile.rails_next' }
- { ruby: '3.2', postgres: 13.5 }
- { ruby: '3.2', postgres: 13.5, gemfile: 'Gemfile.rails_next' }

services:
postgres:
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ gem 'iso_country_codes', '~> 0.7.8'
gem 'mail', '~> 2.7.1'
gem 'maxmind-db', '~> 1.0.0'
gem 'mahoro', '~> 0.5'
gem 'nokogiri', '~> 1.13.10'
gem 'nokogiri', '~> 1.14.0.rc1'
gem 'open4', '~> 1.3.0'
gem 'rack', '~> 2.2.4'
gem 'rack-utf8_sanitizer', '~> 1.7.0'
Expand Down
12 changes: 6 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -328,16 +328,16 @@ GEM
net-ssh-gateway (2.0.0)
net-ssh (>= 4.0.0)
nio4r (2.5.8)
nokogiri (1.13.10)
nokogiri (1.14.0.rc1)
mini_portile2 (~> 2.8.0)
racc (~> 1.4)
nokogiri (1.13.10-aarch64-linux)
nokogiri (1.14.0.rc1-aarch64-linux)
racc (~> 1.4)
nokogiri (1.13.10-arm64-darwin)
nokogiri (1.14.0.rc1-arm64-darwin)
racc (~> 1.4)
nokogiri (1.13.10-x86_64-darwin)
nokogiri (1.14.0.rc1-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.13.10-x86_64-linux)
nokogiri (1.14.0.rc1-x86_64-linux)
racc (~> 1.4)
oink (0.10.1)
activerecord
Expand Down Expand Up @@ -583,7 +583,7 @@ DEPENDENCIES
money (~> 6.16.0)
net-ssh (~> 7.0.1)
net-ssh-gateway (>= 1.1.0, < 3.0.0)
nokogiri (~> 1.13.10)
nokogiri (~> 1.14.0.rc1)
oink (~> 0.10.1)
open4 (~> 1.3.0)
pg (~> 1.4.4)
Expand Down
12 changes: 6 additions & 6 deletions Gemfile.rails_next.lock
Original file line number Diff line number Diff line change
Expand Up @@ -333,16 +333,16 @@ GEM
net-ssh-gateway (2.0.0)
net-ssh (>= 4.0.0)
nio4r (2.5.8)
nokogiri (1.13.10)
nokogiri (1.14.0.rc1)
mini_portile2 (~> 2.8.0)
racc (~> 1.4)
nokogiri (1.13.10-aarch64-linux)
nokogiri (1.14.0.rc1-aarch64-linux)
racc (~> 1.4)
nokogiri (1.13.10-arm64-darwin)
nokogiri (1.14.0.rc1-arm64-darwin)
racc (~> 1.4)
nokogiri (1.13.10-x86_64-darwin)
nokogiri (1.14.0.rc1-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.13.10-x86_64-linux)
nokogiri (1.14.0.rc1-x86_64-linux)
racc (~> 1.4)
oink (0.10.1)
activerecord
Expand Down Expand Up @@ -589,7 +589,7 @@ DEPENDENCIES
money (~> 6.16.0)
net-ssh (~> 7.0.1)
net-ssh-gateway (>= 1.1.0, < 3.0.0)
nokogiri (~> 1.13.10)
nokogiri (~> 1.14.0.rc1)
oink (~> 0.10.1)
open4 (~> 1.3.0)
pg (~> 1.4.4)
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 2 additions & 0 deletions script/handle-mail-replies
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash

export RUBYOPT="-W0"

cd "`dirname "${BASH_SOURCE[0]}"`"
exec bundle exec ./handle-mail-replies.rb "$@"
2 changes: 2 additions & 0 deletions script/load-mail-server-logs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

export RUBYOPT="-W0"

LOC="`dirname "${BASH_SOURCE[0]}"`"/..
cd "$LOC"

Expand Down
2 changes: 2 additions & 0 deletions script/mailin
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit ab21730

Please sign in to comment.