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

# erb breaking changes

erb 6.0.0 (November 12, 2025) is its newest release with breaking changes. The first: Removed safe_level. Every breaking API change we have recorded in erb on RubyGems: 6 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `6.0.7`. [Source repository](https://github.com/ruby/erb)

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

- From [5.0.0](#v-5-0-0) to [6.0.0](#v-6-0-0): 1 breaking change in 1 version.
- From [3.0.0](#v-3-0-0) to [6.0.0](#v-6-0-0): 4 breaking changes in 3 versions.

## erb 6.0.0 breaking changes

erb 6.0.0, released November 12, 2025: 1 breaking change.

- **Removed** `safe_level`  

The release removes safe_level and the further positional arguments, so code that passes them will no longer work and must drop them. [github.com](https://github.com/ruby/erb/releases/tag/v6.0.0)

## erb 5.0.0 breaking changes

erb 5.0.0, released May 13, 2025: 2 breaking changes.

- **Removed**  

The gem now requires Ruby 3.2+, so older Ruby versions are no longer supported. Upgrade Ruby before updating to this release. [github.com](https://github.com/ruby/erb/blob/v5.0.0/NEWS.md)
- **Removed**  

The gem no longer depends on the cgi library at runtime. Code that relied on cgi being loaded through erb must require it directly. [github.com](https://github.com/ruby/erb/blob/v5.0.0/NEWS.md)

## erb 4.0.0 breaking changes

erb 4.0.0, released November 26, 2022: 1 breaking change.

- **Renamed** `erb.so`  

The compiled extension was renamed to erb/escape.so. Code that requires erb.so directly must require erb/escape.so instead. [github.com](https://github.com/ruby/erb/releases/tag/v4.0.0)

## erb 3.0.0 breaking changes

erb 3.0.0, released October 25, 2022: 2 breaking changes.

- **Removed** `safe_level`  

Code that passes safe_level must stop passing it. [github.com](https://github.com/ruby/erb/releases/tag/v3.0.0)
- **Behavior changed** `ERB.Util.url_encode`  

ERB::Util.url_encode now delegates to CGI.escapeURIComponent, which can change the encoded output for some characters. [github.com](https://github.com/ruby/erb/releases/tag/v3.0.0)

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