# Ruby Gem upgraded

{% hint style="info" %}
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**.
{% endhint %}

<figure><img src="/files/K5DmXPfIhTGTzBVqhTUo" alt="" width="563"><figcaption></figcaption></figure>

### Usage with a syntax

➡️ **`TODO(on:`**<mark style="color:yellow;background-color:yellow;">**`gem_bump`**</mark>**`(`**<mark style="color:purple;background-color:purple;">**`'nokogiri', '> 1.15'`**</mark>**`))`**

#### Examples

<details>

<summary>Expire a TODO when  Nokogori is upgraded in your application with a version '<code>> 1.15'</code></summary>

➡️ **`TODO(on:`**<mark style="color:yellow;background-color:yellow;">**`gem_bump`**</mark>**`(`**<mark style="color:purple;background-color:purple;">**`'nokogiri', '> 1.15'`**</mark>**`))`**

</details>

<details>

<summary>Expire a TODO when Rails is upgraded in your application to version 7.1</summary>

➡️ **`TODO(on:`**<mark style="color:yellow;background-color:yellow;">**`gem_bump`**</mark>**`(`**<mark style="color:purple;background-color:purple;">**`'nokogiri', '7.1'`**</mark>**`))`**

</details>

<details>

<summary>Expire a TODO when Devise is upgraded in your application with a version '<code>> 4.9.2'</code> and <code>'&#x3C; 5'</code></summary>

➡️ **`TODO(on:`**<mark style="color:yellow;background-color:yellow;">**`gem_bump`**</mark>**`(`**<mark style="color:purple;background-color:purple;">**`'devise', '> 4.9.2', '< 5'`**</mark>**`))`**

</details>

### Usage when detected automatically

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

#### Examples

<mark style="color:blue;">TODO</mark>:  **Remove this monkeypatch once we bump the stripe gem to > 5**\ <mark style="color:orange;">Equivalent to</mark>: <mark style="color:yellow;background-color:yellow;">**`gem_release`**</mark>**`(`**<mark style="color:purple;background-color:purple;">**`'stripe', '> 5'`**</mark>**`)`**

<mark style="color:blue;">TODO</mark>:  w**ebmock 3.24 has this feature, no need for it when we upgrade the gem**\ <mark style="color:orange;">Equivalent to</mark>: <mark style="color:yellow;background-color:yellow;">**`gem_release`**</mark>**`(`**<mark style="color:purple;background-color:purple;">**`'webmock', '3.24'`**</mark>**`)`**

<mark style="color:blue;">TODO</mark>:  **Do something when we update kuaz-thermometer to 1.0.0**\ <mark style="color:orange;">Equivalent to</mark>:  *No detection as the term "gem" is not mentioned*


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.catana.dev/triggers/ruby-gem-upgraded.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
