Catana Documentation
  • 🐱Overview
    • Introduction
    • Installation
  • 📖Core concepts
    • Regular and expiring TODOs
    • Assigning TODOs
    • Create, update and delete
    • Validation
    • Ignored TODOs
  • 🔔Triggers
    • Overview
    • Date
    • GitHub Issue closed
    • GitHub Pull Request closed
    • Ruby Gem released
    • Ruby Gem upgraded
    • Ruby Version released
    • Ruby Version upgraded
  • 🤖Commands
    • Overview
    • Done
    • Bump
    • Link
  • 🔗Grouped TODOs
    • Overview
  • ⚙️Configuration
    • Open GitHub issues
    • Enforce expiring TODOs
    • Rules
    • Exclusion list
Powered by GitBook
On this page
  • Usage with a syntax
  • Requirements
  • Usage when detected automatically

Was this helpful?

  1. Triggers

Ruby Version upgraded

PreviousRuby Version releasedNextOverview

Last updated 6 months ago

Was this helpful?

Use the Ruby upgrade trigger to expire a TODO when Ruby is upgraded in your application to a new version.

Usage with a syntax

➡️ TODO(on:ruby_bump([...]))

Requirements

  • Your application does not have a Gemfile.lock file.

  • The Gemfile.lock file is not located at the root of your project.

Examples

Expire a TODO when Ruby is upgraded to a version superior to the current one.

➡️ TODO(on:ruby_bump)

Expire a TODO when Ruby is upgraded to version 3.3 or higher.

➡️ TO➡️ TODO(on:ruby_bump('> 3.3'))

Expire a TODO when Ruby is upgraded to 3.2.2

➡️ TO➡️ TODO(on:ruby_bump('3.2.2'))

Usage when detected automatically

Examples

TODO: Use the new Regexp timeout feature once we are on Ruby 3.2 Equivalent to: ruby_bump('3.2')

TODO: No need to remove the tempfile manually on Ruby 3.4, if we use the anonymous keyword Equivalent to: ruby_bump('3.4')

TODO: Do something after we upgrade Ruby Equivalent to: ruby_bump()

Catana detects the ruby version your application runs on by parsing the Gemfile.lock file. Pull Requests introducing a TODO with a ruby_bump trigger will in the following conditions:

The Gemfile.lock file lacks Ruby Version information because the Gemfile doesn't .

🔔
fail validation
specify a Ruby Version