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
  • Usage when detected automatically

Was this helpful?

  1. Triggers

Ruby Gem upgraded

PreviousRuby Gem releasedNextRuby Version released

Last updated 6 months ago

Was this helpful?

Use the Ruby Gem upgraded trigger to expire a TODO when a version of a Gem matching the constraint(s) is upgraded in your application.

Usage with a syntax

➡️ TODO(on:gem_bump('nokogiri', '> 1.15'))

Examples

Expire a TODO when Nokogori is upgraded in your application with a version '> 1.15'

➡️ TODO(on:gem_bump('nokogiri', '> 1.15'))

Expire a TODO when Rails is upgraded in your application to version 7.1

➡️ TODO(on:gem_bump('nokogiri', '7.1'))

Expire a TODO when Devise is upgraded in your application with a version '> 4.9.2' and '< 5'

➡️ TODO(on:gem_bump('devise', '> 4.9.2', '< 5'))

Usage when detected automatically

Please ensure you always explicitly mention the term "gem" (literally), for Catana to correctly detect this trigger.

Examples

TODO: Remove this monkeypatch once we bump the stripe gem to > 5 Equivalent to: gem_release('stripe', '> 5')

TODO: webmock 3.24 has this feature, no need for it when we upgrade the gem Equivalent to: gem_release('webmock', '3.24')

TODO: Do something when we update kuaz-thermometer to 1.0.0 Equivalent to: No detection as the term "gem" is not mentioned

🔔