---
title: "pygments.rb 5.0.0 Breaking Changes on RubyGems | Since.dev"
description: "What each pygments.rb release removed, renamed or changed: 12 breaking changes in 5 versions on RubyGems, each with its source."
canonical_url: https://since.dev/packages/gem/pygments.rb
last_updated: 2026-12-04
---

# pygments.rb breaking changes

pygments.rb 5.0.0 (July 22, 2026) is its newest release with breaking changes. The first: pygments.rb 5.0.0 requires Python 3.9 or later. Every breaking API change we have recorded in pygments.rb on RubyGems: 12 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `5.0.0`, released July 22, 2026. [Source repository](https://github.com/pygments/pygments.rb)

Its 4.0.0 release requires [Ruby 2.7](https://since.dev/calendar/ruby/2.7.md) or later. [Ruby end of life dates](https://since.dev/calendar/ruby.md).

- From [4.0.0](#v-4-0-0) to [5.0.0](#v-5-0-0): 1 breaking change in 1 version.
- From [2.0.0](#v-2-0-0) to [5.0.0](#v-5-0-0): 4 breaking changes in 3 versions.

## pygments.rb 5.0.0 breaking changes

pygments.rb 5.0.0, released July 22, 2026: 1 breaking change.

- **Removed**  

The minimum supported Python version is raised to 3.9. Users on older Python versions must upgrade Python before installing this release. [github.com](https://github.com/pygments/pygments.rb/releases/tag/v5.0.0)

## pygments.rb 4.0.0 breaking changes

pygments.rb 4.0.0, released June 25, 2025: 1 breaking change.

- **Configuration changed**  

The oldest supported Ruby is now 2.7, so older Ruby versions can no longer be used with this release. [github.com](https://github.com/pygments/pygments.rb/releases/tag/v4.0.0)

## pygments.rb 3.0.0 breaking changes

pygments.rb 3.0.0, released May 14, 2024: 2 breaking changes.

- **Behavior changed**  

Oldest supported Python is now 3.8, so older Python versions are no longer supported. [github.com](https://github.com/pygments/pygments.rb/releases/tag/v3.0.0)
- **Default changed**  

The bundled Pygments is now 2.18.0. Oldest supported Ruby is now 2.6 and oldest supported Python is now 3.8. [github.com](https://github.com/pygments/pygments.rb/releases/tag/v3.0.0)

## pygments.rb 2.0.0 breaking changes

pygments.rb 2.0.0, released January 7, 2021: 4 breaking changes.

- **Removed** `GitHub custom lexers`  

The GitHub custom lexers are no longer provided, so code relying on them will not find them. [github.com](https://github.com/pygments/pygments.rb/releases/tag/v2.0.0)
- **Behavior changed**  

Pygments.rb no longer sets a default timeout, so callers that relied on the old default must now set one explicitly. [github.com](https://github.com/pygments/pygments.rb/releases/tag/v2.0.0)
- **Behavior changed**  

The package now runs its helper on Python 3 instead of Python 2.7, so environments must provide Python 3. [github.com](https://github.com/pygments/pygments.rb/releases/tag/v2.0.0)
- **Behavior changed** `MentosError`  

On timeout the package raises MentosError rather than returning nil, so code checking for nil must rescue the error. [github.com](https://github.com/pygments/pygments.rb/releases/tag/v2.0.0)

## pygments.rb 2.0.0.rc2 breaking changes

pygments.rb 2.0.0.rc2, released January 7, 2021: 4 breaking changes.

- **Removed** `GitHub custom lexers`  

The GitHub custom lexers are no longer provided, so code relying on them will not find them. [github.com](https://github.com/pygments/pygments.rb/releases/tag/v2.0.0.rc2)
- **Behavior changed**  

Pygments.rb no longer sets a default timeout, so callers that relied on the old default must now set one explicitly. [github.com](https://github.com/pygments/pygments.rb/releases/tag/v2.0.0.rc2)
- **Behavior changed**  

The package now runs its helper on Python 3 instead of Python 2.7, so environments must provide Python 3. [github.com](https://github.com/pygments/pygments.rb/releases/tag/v2.0.0.rc2)
- **Behavior changed** `MentosError`  

On timeout the package raises MentosError rather than returning nil, so code checking for nil must rescue the error. [github.com](https://github.com/pygments/pygments.rb/releases/tag/v2.0.0.rc2)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
