Skip to content

Commit

Permalink
Upgrade to Ruby 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
gbp committed Dec 17, 2024
1 parent e59df56 commit f40b378
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
fail-fast: false
matrix:
include:
- { ruby: 2.7 }
- { ruby: 2.7, gemfile: 'gemfiles/rails_7.gemfile' }
- { ruby: 2.7, gemfile: 'gemfiles/rails_main.gemfile' }
- { ruby: 3.2 }
- { ruby: 3.2, gemfile: 'gemfiles/rails_7.gemfile' }
- { ruby: 3.2, gemfile: 'gemfiles/rails_main.gemfile' }

services:
postgres:
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ gem 'omniauth-google-oauth2'
gem 'omniauth-rails_csrf_protection'

gem 'scenic'
gem 'net-smtp', require: false

Check notice on line 59 in Gemfile

View workflow job for this annotation

GitHub Actions / rubocop

[rubocop] Gemfile#L59 <Bundler/OrderedGems>

Gems should be sorted in an alphabetical order within their section of the Gemfile. Gem `net-smtp` should appear before `scenic`.
Raw output
Gemfile:59:1: C: Bundler/OrderedGems: Gems should be sorted in an alphabetical order within their section of the Gemfile. Gem `net-smtp` should appear before `scenic`.

group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger
Expand Down
15 changes: 11 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ GEM
ruby2_keywords (>= 0.0.4)
faraday-net_http (2.0.2)
ffi (1.17.0)
ffi (1.17.0-aarch64-linux-gnu)
ffi (1.17.0-arm64-darwin)
ffi (1.17.0-x86_64-darwin)
ffi (1.17.0-x86_64-linux-gnu)
fugit (1.5.3)
et-orbi (~> 1, >= 1.2.7)
raabro (~> 1.4)
Expand Down Expand Up @@ -138,6 +142,7 @@ GEM
activesupport (>= 5.0.0)
json (2.5.1)
jwt (2.2.3)
libv8-node (16.10.0.0)
libv8-node (16.10.0.0-aarch64-linux)
libv8-node (16.10.0.0-arm64-darwin)
libv8-node (16.10.0.0-x86_64-darwin)
Expand All @@ -163,15 +168,15 @@ GEM
msgpack (1.5.1)
multi_json (1.15.0)
multi_xml (0.6.0)
net-protocol (0.2.2)
timeout
net-smtp (0.5.0)
net-protocol
netrc (0.11.0)
nio4r (2.7.4)
nokogiri (1.13.6)
mini_portile2 (~> 2.8.0)
racc (~> 1.4)
nokogiri (1.13.6-aarch64-linux)
racc (~> 1.4)
nokogiri (1.13.6-x86_64-linux)
racc (~> 1.4)
oauth2 (1.4.9)
faraday (>= 0.17.3, < 3.0)
jwt (>= 1.0, < 3.0)
Expand Down Expand Up @@ -333,6 +338,7 @@ GEM
thwait (0.2.0)
e2mmap
tilt (2.0.10)
timeout (0.4.3)
ttfunk (1.7.0)
turbolinks (5.2.1)
turbolinks-source (~> 5.2)
Expand Down Expand Up @@ -375,6 +381,7 @@ DEPENDENCIES
jbuilder (~> 2.11)
listen (>= 3.0.5, < 3.8)
mini_racer
net-smtp
omniauth (~> 2.0.4)
omniauth-google-oauth2
omniauth-rails_csrf_protection
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:2.7-bullseye
FROM ruby:3.2-bullseye

ENV DOCKER 1
ENV DEBIAN_FRONTEND noninteractive
Expand Down
1 change: 1 addition & 0 deletions gemfiles/rails_7.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ DEPENDENCIES
jbuilder (~> 2.11)
listen (>= 3.0.5, < 3.8)
mini_racer
net-smtp
omniauth (~> 2.0.4)
omniauth-google-oauth2
omniauth-rails_csrf_protection
Expand Down
1 change: 1 addition & 0 deletions gemfiles/rails_main.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ DEPENDENCIES
jbuilder (~> 2.11)
listen (>= 3.0.5, < 3.8)
mini_racer
net-smtp
omniauth (~> 2.0.4)
omniauth-google-oauth2
omniauth-rails_csrf_protection
Expand Down
4 changes: 2 additions & 2 deletions spec/services/generate_foi_suggestion_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ def suggest_all(body = nil, request: nil)
described_class.from_request(request)
end

def suggest(*args)
suggest_all(*args).first
def suggest(*args, **kwargs)
suggest_all(*args, **kwargs).first
end

context 'resources with keywords' do
Expand Down

0 comments on commit f40b378

Please sign in to comment.