Skip to content

Release 2.0.0 - #3

Merged
rikas merged 1 commit into
masterfrom
release-2.0.0
Oct 20, 2026
Merged

rikas merged 1 commit into
masterfrom
release-2.0.0

Conversation

@rikas

@rikas rikas commented Oct 20, 2026

Copy link
Copy Markdown
Owner

Breaking changes

  • Requires Ruby >= 3.2 (was >= 2.5).

Fixes

  • Support Ruby 4.0, which removed the CGI library (cgi/escape on 4.0, cgi/util on older Rubies; output is unchanged).
  • Already encoded query values are no longer double encoded (?q=hello%20world previously became q=hello%2520world).
  • remove_query without keys returns nil instead of raising NoMethodError.

CI and tooling

  • Test matrix: Ruby 3.2, 3.3, 3.4, 4.0, with quoted versions (unquoted 3.0 was read by YAML as 3, so 3.0 was never tested).
  • actions/checkout v2 → v7, read-only permissions, concurrency cancellation, and a separate RuboCop job.
  • CI runs on pushes to master and on PRs only, so PRs no longer run twice.
  • Dependabot for GitHub Actions and Bundler.
  • Dev dependencies updated (RuboCop 1.92 with plugins:, RSpec 3.13, debug/irb replacing pry-byebug).
  • gemspec cleanup: require_relative, explicit file list, source code and bug tracker metadata.
  • Specs use RSpec.describe with monkey patching disabled; rake runs specs and RuboCop.

- Require Ruby >= 3.2 and support Ruby 4.0 (CGI library removal)
- Fix double encoding of already encoded query values
- Fix remove_query raising when called without keys
- Modernize CI: quoted Ruby matrix (3.2-4.0), checkout v7, separate lint job
- Add Dependabot for GitHub Actions and Bundler
- Update dev dependencies, RuboCop plugins config and RSpec setup
@rikas
rikas merged commit 849bc79 into master Oct 20, 2026
5 checks passed
@rikas
rikas deleted the release-2.0.0 branch October 20, 2026 21:20
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.

1 participant