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

# rouge breaking changes

rouge 5.0.0 (May 27, 2026) is its newest release with breaking changes, 3 of them. The first: rouge 5.0.0 drops support for Ruby 2.7. Every breaking API change we have recorded in rouge on RubyGems: 12 breaking changes in 7 versions. Below, its 7 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `5.1.0`. [Source repository](https://github.com/rouge-ruby/rouge)

Its 5.0.0 release drops [Ruby 2.7](https://since.dev/calendar/ruby/2.7.md). [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): 3 breaking changes in 1 version.
- From [0.3.0](#v-0-3-0) to [5.0.0](#v-5-0-0): 11 breaking changes in 6 versions.

## rouge 5.0.0 breaking changes

rouge 5.0.0, released May 27, 2026: 3 breaking changes.

- **Removed**  

Ruby 2.7 is no longer supported, so code that must run on Ruby 2.7 should stay on rouge 4.x or upgrade Ruby. [github.com](https://github.com/rouge-ruby/rouge/releases/tag/v5.0.0)
- **Renamed** `Coq`  

The Coq lexer was renamed to Rocq to reflect the project's renaming, so code referring to the Coq lexer must use Rocq. [github.com](https://github.com/rouge-ruby/rouge/releases/tag/v5.0.0)
- **Behavior changed**  

The HTML formatter delegation was reworked, so code relying on the previous delegation behavior may need to be checked. [github.com](https://github.com/rouge-ruby/rouge/releases/tag/v5.0.0)

## rouge 4.0.0 breaking changes

rouge 4.0.0, released September 6, 2022: 2 breaking changes.

- **Removed**  

The gem no longer supports Ruby versions earlier than 2.7, so projects on older Ruby must upgrade Ruby before using this release. [github.com](https://github.com/rouge-ruby/rouge/releases/tag/v4.0.0)
- **Removed** `Rouge.Lexers.Solidity`  

The Solidity lexer is no longer included, so code that selects it will no longer find a lexer for Solidity. [github.com](https://github.com/rouge-ruby/rouge/releases/tag/v4.0.0)

## rouge 3.0.0 breaking changes

rouge 3.0.0, released September 22, 2017: 2 breaking changes.

- **Removed**  

Rouge 3.0.0 requires Ruby 2.0.0 or later; Ruby 1.9 is no longer supported. [github.com](https://github.com/rouge-ruby/rouge/blob/v3.0.0/CHANGELOG.md)
- **Behavior changed**  

Input is now stripped of byte order marks and has newlines normalized before lexing, which may change token output for existing code. [github.com](https://github.com/rouge-ruby/rouge/blob/v3.0.0/CHANGELOG.md)

## rouge 2.0.0 breaking changes

rouge 2.0.0, released June 14, 2016: 1 breaking change.

- **Behavior changed**  

The release adds new formatters. Code that needs the old HTML output must switch to Rouge::Formatters::HTMLLegacy. [github.com](https://github.com/rouge-ruby/rouge/blob/v2.0.0/CHANGELOG.md)

## rouge 1.1.0 breaking changes

rouge 1.1.0, released November 5, 2013: 1 breaking change.

- **Behavior changed**  

The table for tableized line numbers is no longer surrounded by a pre tag, which changes generated markup; stylesheets that only target the formatter scope are unaffected, others may need updating. [github.com](https://github.com/rouge-ruby/rouge/blob/v1.1.0/CHANGELOG.md)

## rouge 0.5.0 breaking changes

rouge 0.5.0, released September 3, 2013: 2 breaking changes.

- **Renamed** `Rouge.Lexers.Text`  

The Text lexer was renamed to PlainText. Code that references Rouge::Lexers::Text must use Rouge::Lexers::PlainText instead. [github.com](https://github.com/rouge-ruby/rouge/blob/v0.5.0/CHANGELOG.md)
- **Behavior changed**  

Token values are now constants rather than strings. Code that works with tokens as strings is affected if it wrote a custom lexer, formatter, or theme. [github.com](https://github.com/rouge-ruby/rouge/blob/v0.5.0/CHANGELOG.md)

## Older versions

1 older version.

### rouge 0.3.0 breaking changes

rouge 0.3.0, released March 6, 2013: 1 breaking change.

- **Behavior changed**  

Filename-based language guessing was refactored to reduce false positives and disambiguate matches such as nginx.conf versus \*.conf. Code that relied on the previous guesses may now get different lexers. [github.com](https://github.com/rouge-ruby/rouge/blob/v0.3.0/CHANGELOG.md)

## 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.
