From 2102f5550630c9dcc405bf5509fe5cece5e72469 Mon Sep 17 00:00:00 2001 From: Sean Doyle Date: Wed, 14 Jan 2026 12:04:48 -0500 Subject: [PATCH 1/2] Add `ruby@4.0` to the CI matrix According to [Ruby 4.0's Release Notes][notes], the stdlib no longer includes the CGI library by default. This means that `CGI.parse` is no longer available without explicitly requiring the `cgi` gem as a dependency. To uncover this requirement, add `4.0` to the `ruby` matrix in the GitHub actions configuration file, then add `cgi` as a dependency to the gemspec. [notes]: https://www.ruby-lang.org/en/news/2025/12/25/ruby-4-0-0-released/#stdlib-compatibility-issues --- .github/workflows/main.yml | 2 +- omniauth-twitter.gemspec | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 196adca..e6ac047 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,7 +6,7 @@ jobs: test: strategy: matrix: - ruby: ['2.6', '2.7', '3.0', '3.1', '3.2', '3.3', '3.4', 'jruby'] + ruby: ['2.6', '2.7', '3.0', '3.1', '3.2', '3.3', '3.4', '4.0', 'jruby'] fail-fast: false max-parallel: 10 runs-on: ubuntu-latest diff --git a/omniauth-twitter.gemspec b/omniauth-twitter.gemspec index 0848407..bd59445 100644 --- a/omniauth-twitter.gemspec +++ b/omniauth-twitter.gemspec @@ -19,5 +19,6 @@ Gem::Specification.new do |s| s.required_ruby_version = Gem::Requirement.new('>= 1.9.3') s.add_dependency 'omniauth-oauth', '~> 1.1' s.add_dependency 'rack' + s.add_dependency 'cgi' s.add_development_dependency 'bundler', '~> 2.0' end From e08fa29f141ef9c6d78928acb58c15074a9f3b2b Mon Sep 17 00:00:00 2001 From: Rashmi Yadav Date: Thu, 15 Jan 2026 18:17:02 +0530 Subject: [PATCH 2/2] Remove bundler as development_dependency from gemspec file --- omniauth-twitter.gemspec | 1 - 1 file changed, 1 deletion(-) diff --git a/omniauth-twitter.gemspec b/omniauth-twitter.gemspec index bd59445..67bea32 100644 --- a/omniauth-twitter.gemspec +++ b/omniauth-twitter.gemspec @@ -20,5 +20,4 @@ Gem::Specification.new do |s| s.add_dependency 'omniauth-oauth', '~> 1.1' s.add_dependency 'rack' s.add_dependency 'cgi' - s.add_development_dependency 'bundler', '~> 2.0' end