Skip to content

Update Ruby >= 3.3, RuboCop, and CI#20

Merged
agrberg merged 3 commits intomainfrom
ar/housekeeping
Feb 27, 2026
Merged

Update Ruby >= 3.3, RuboCop, and CI#20
agrberg merged 3 commits intomainfrom
ar/housekeeping

Conversation

@agrberg
Copy link
Collaborator

@agrberg agrberg commented Feb 27, 2026

Summary

  • Bump minimum Ruby version to 3.3
  • Update RuboCop to 1.85 and rubocop-rspec to 3.9, fix resulting offenses
  • Replace Travis CI (dead since 2021) with GitHub Actions testing Ruby 3.3, 3.4, and 4.0

agrberg and others added 3 commits February 26, 2026 22:45
- Bump required_ruby_version from >= 3.1.6 to >= 3.3
- Update TargetRubyVersion from 2.6 to 3.3
- Update RuboCop 1.65 -> 1.85 and rubocop-rspec 3.0 -> 3.9
- Migrate rubocop-rspec from require to plugins
- Rename deprecated IgnoredPatterns to AllowedPatterns
- Update all development dependencies and Bundler to latest
- Add rake to Gemfile (no longer a default gem in newer Rubies)
- Gitignore Ruby version manager tool files
- Fix new cop offenses: Style/RedundantRegexpArgument, RSpec/BeEq,
  Style/HashSyntax, Layout/LineContinuationSpacing,
  Lint/RedundantCopDisableDirective

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Travis CI stopped free OSS builds in 2021. Add a GitHub Actions
workflow that tests Ruby 3.3, 3.4, and 4.0 on every push to main
and on all pull requests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the gem’s supported Ruby/tooling baseline and modernizes CI to keep development workflows current and maintainable.

Changes:

  • Raise required Ruby version to >= 3.3 and reflect it in the gemspec and README.
  • Upgrade RuboCop + rubocop-rspec and apply small code/spec adjustments to satisfy new cops.
  • Replace Travis CI with a GitHub Actions workflow running the default rake task across a Ruby version matrix.

Reviewed changes

Copilot reviewed 11 out of 13 changed files in this pull request and generated no comments.

Show a summary per file
File Description
cacheable.gemspec Bumps required Ruby version to >= 3.3.
README.md Adds GitHub Actions CI badge and documents the Ruby requirement; fixes a small typo.
.github/workflows/ci.yml Introduces GitHub Actions CI running bundle exec rake across multiple Ruby versions.
.travis.yml Removes legacy Travis CI configuration.
.rubocop.yml Updates RuboCop configuration for the newer RuboCop/plugin configuration style and Ruby target version.
spec/.rubocop.yml Removes some spec-only RuboCop overrides now that offenses were addressed locally.
Gemfile / Gemfile.lock Updates lint/dev dependencies (incl. RuboCop versions) and adds rake to support CI’s bundle exec rake.
lib/cacheable/method_generator.rb Minor refactor/inline cop directive related to RuboCop updates.
lib/cacheable/cache_adapters/memory_adapter.rb Adds an inline cop disable documenting why delete does not follow predicate naming.
spec/cacheable/cacheable_spec.rb Adjusts specs for new RuboCop rules and to match the (target, method_name, args) proc calling convention.
spec/cacheable/cache_adapters/memory_adapter_spec.rb Updates boolean expectations to be(true/false).
.gitignore Ignores common Ruby/tool version files.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@agrberg agrberg requested a review from rofreg February 27, 2026 04:28
@agrberg
Copy link
Collaborator Author

agrberg commented Feb 27, 2026

@rofreg I'm getting more practice with AI and felt I could use it do a little open source housekeeping and improvement. Let me know if there's someone better I can tag on these. These aren't urgent either, just nice to keep up to date.

Copy link
Contributor

@rofreg rofreg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eyy, love it! Me or Jess are probably still the right people 😁

Honestly, it might be nice to merge a few cleanup/modernization PRs, publish an update, then mark the project as officially unmaintained (at least by Splitwise). It's been pretty sturdy for a while, and that seems like that'd leave the gem in a reasonable place for anyone who wants to keep using it at this point!

@agrberg agrberg merged commit 098b0b5 into main Feb 27, 2026
7 checks passed
@agrberg agrberg deleted the ar/housekeeping branch February 27, 2026 15:31
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.

3 participants