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
On this page
Latest version 5.0.0, released July 22, 2026. Source repository
Its 4.0.0 release requires Ruby 2.7 or later. Ruby end of life dates.
- From 4.0.0 to 5.0.0: 1 breaking change in 1 version.
- From 2.0.0 to 5.0.0: 4 breaking changes in 3 versions.
pygments.rb 5.0.0 breaking changes
- 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
pygments.rb 4.0.0 breaking changes
- Configuration changed
The oldest supported Ruby is now 2.7, so older Ruby versions can no longer be used with this release. github.com
pygments.rb 3.0.0 breaking changes
- Behavior changed
Oldest supported Python is now 3.8, so older Python versions are no longer supported. github.com - 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
pygments.rb 2.0.0 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 - 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 - Behavior changed
The package now runs its helper on Python 3 instead of Python 2.7, so environments must provide Python 3. github.com - Behavior changed
MentosError
On timeout the package raises MentosError rather than returning nil, so code checking for nil must rescue the error. github.com
pygments.rb 2.0.0.rc2 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 - 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 - Behavior changed
The package now runs its helper on Python 3 instead of Python 2.7, so environments must provide Python 3. github.com - Behavior changed
MentosError
On timeout the package raises MentosError rather than returning nil, so code checking for nil must rescue the error. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.