Skip to content

Add Ruby 4.0 to testing matrix - #113

Merged
panthomakos merged 1 commit into
masterfrom
claude/zealous-pasteur-6t0tcw-ruby-4.0
Oct 4, 2026
Merged

panthomakos merged 1 commit into
masterfrom
claude/zealous-pasteur-6t0tcw-ruby-4.0

Conversation

@panthomakos

Copy link
Copy Markdown
Owner

Ruby 4.0 was released on 2025‑12‑25 (latest patch 4.0.7). This adds it to the CI matrix.

It also changes require 'cgi' to require 'cgi/escape' in lib/timezone/lookup/google.rb. Ruby 4.0 removed the CGI library; require 'cgi' now loads a shim that prints a warning under -w ("CGI library is removed from Ruby 4.0..."). The Google lookup only uses CGI.escape, which cgi/escape defines directly on CGI in every supported Ruby, back to 2.5.

Testing

  • Built Ruby 4.0.7 from source: bundle exec rake test passes with no CGI warning.
  • Suite passes on Ruby 3.1, 3.2 and 3.3 with the new require. The existing test_google case covering client ID escaping (123&asdf → 123%26asdf) passes.
  • bundle exec rubocop passes (the rubocop job stays pinned to Ruby 3.0; rubocop 1.5.1 doesn't run on 4.0).

🤖 Generated with Claude Code

https://claude.ai/code/session_01TbAwVLZPUjfvaJGZQpMRfo


Generated by Claude Code

Ruby 4.0 removes the CGI library and leaves only cgi/escape; requiring
'cgi' now loads a shim that warns under -w. CGI.escape is all the Google
lookup uses, and cgi/escape provides it on every supported Ruby (2.5+).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TbAwVLZPUjfvaJGZQpMRfo
@panthomakos
panthomakos merged commit 432c17d into master Oct 4, 2026
10 checks passed
@panthomakos
panthomakos deleted the claude/zealous-pasteur-6t0tcw-ruby-4.0 branch October 4, 2026 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants