---
title: "pundit-matchers 4.0.0 Breaking Changes on RubyGems"
description: "What each pundit-matchers release removed, renamed or changed: 16 breaking changes in 3 versions on RubyGems, each with its source."
canonical_url: https://since.dev/packages/gem/pundit-matchers
last_updated: 2026-12-04
---

# pundit-matchers breaking changes

pundit-matchers 4.0.0 (December 17, 2024) is its newest release with breaking changes. The first: pundit-matchers 4.0.0 requires Ruby 3.1 or later. Every breaking API change we have recorded in pundit-matchers on RubyGems: 16 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.0.0`, released December 17, 2024. [Source repository](https://github.com/punditcommunity/pundit-matchers)

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

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

## pundit-matchers 4.0.0 breaking changes

pundit-matchers 4.0.0, released December 17, 2024: 1 breaking change.

- **Removed**  

The gem no longer supports Ruby below 3.1. Upgrade your Rails application to Ruby 3.1 or higher before using this version. [github.com](https://github.com/punditcommunity/pundit-matchers/blob/v4.0.0/CHANGELOG.md)

## pundit-matchers 3.0.0 breaking changes

pundit-matchers 3.0.0, released June 14, 2023: 14 breaking changes.

- **Removed**  

The package no longer supports RSpec versions before 3.12 or Pundit versions before 2. Upgrade those dependencies before using this release. [github.com](https://github.com/punditcommunity/pundit-matchers/blob/v3.0.0/CHANGELOG.md)
- **Renamed** `config.user_alias`  

The config.user_alias setting was renamed to config.default_user_alias. Test suites that set config.user_alias must switch to the new name. [github.com](https://github.com/punditcommunity/pundit-matchers/blob/v3.0.0/CHANGELOG.md)
- **Behavior changed** `not_to forbid_actions`  

Previously ambiguous negated checks may now fail, so application policies may need fixing. [github.com](https://github.com/punditcommunity/pundit-matchers/blob/v3.0.0/CHANGELOG.md)
- **Behavior changed** `not_to forbid_all_actions`  

The not_to form raises an error because it is ambiguous. Use the opposite non-negated matcher instead. [github.com](https://github.com/punditcommunity/pundit-matchers/blob/v3.0.0/CHANGELOG.md)
- **Behavior changed** `not_to forbid_edit_and_update_actions`  

Previously ambiguous negated checks may now fail, so application policies may need fixing. [github.com](https://github.com/punditcommunity/pundit-matchers/blob/v3.0.0/CHANGELOG.md)
- **Behavior changed** `not_to forbid_mass_assignment_of`  

Previously ambiguous negated checks may now fail, so application policies may need fixing. [github.com](https://github.com/punditcommunity/pundit-matchers/blob/v3.0.0/CHANGELOG.md)
- **Behavior changed** `not_to forbid_new_and_create_actions`  

Previously ambiguous negated checks may now fail, so application policies may need fixing. [github.com](https://github.com/punditcommunity/pundit-matchers/blob/v3.0.0/CHANGELOG.md)
- **Behavior changed** `not_to forbid_only_actions`  

The not_to form raises an error because it is ambiguous. Use the opposite non-negated matcher instead. [github.com](https://github.com/punditcommunity/pundit-matchers/blob/v3.0.0/CHANGELOG.md)
- **Behavior changed** `not_to permit_actions`  

Previously ambiguous negated checks may now fail, so application policies may need fixing. [github.com](https://github.com/punditcommunity/pundit-matchers/blob/v3.0.0/CHANGELOG.md)
- **Behavior changed** `not_to permit_all_actions`  

The not_to form raises an error because it is ambiguous. Use the opposite non-negated matcher instead. [github.com](https://github.com/punditcommunity/pundit-matchers/blob/v3.0.0/CHANGELOG.md)

And 4 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## pundit-matchers 2.0.0 breaking changes

pundit-matchers 2.0.0, released April 16, 2023: 1 breaking change.

- **Removed**  

Ruby 2 is no longer supported. Upgrade your Rails application to Ruby 3 to keep using this version. [github.com](https://github.com/punditcommunity/pundit-matchers/blob/v2.0.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.
