From 13e4c7139b7b8d728cbd2ae4b5e0576759ad32ff Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Tue, 17 Nov 2026 11:38:03 +0900 Subject: [PATCH] Avoid regexp_parser 2.13.2 in the development bundle ## Motivation and Context regexp_parser 2.13.2, released on 2026-11-16, makes `Regexp::Syntax::Base.implements` private (ammar/regexp_parser#116). json_schemer 2.5.0 calls it on a subclass when it is required (davishmcclurg/json_schemer#238), so `require "mcp"` raises `NoMethodError` and `bundle exec rake` aborts while loading the tests. No lockfile is committed, and both json_schemer (`~> 2.0`) and RuboCop (`>= 2.11.3, < 3.0`) admit 2.13.2, so a fresh `bundle install`, CI included, resolves it. The Gemfile now excludes that one version, as it already does for i18n 1.15.0, so a release that restores the method is picked up without another change. The gemspec is left as it is: this covers development and CI only. ## How Has This Been Tested? `bundle exec rake` aborts in the test task with regexp_parser 2.13.2 installed, and resolves 2.13.1 and passes with the exclusion. ## Breaking Changes None. --- Gemfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Gemfile b/Gemfile index 9941f1fc..cc16d170 100644 --- a/Gemfile +++ b/Gemfile @@ -20,6 +20,8 @@ gem "debug" if RUBY_VERSION >= "3.1" # Avoid i18n 1.15.0, which breaks on Ruby 3.1 (ruby-i18n/i18n#735). gem "i18n", "!= 1.15.0" gem "rake", "~> 13.0" +# Avoid regexp_parser 2.13.2, which breaks json_schemer 2.5.0 at load (ammar/regexp_parser#116). +gem "regexp_parser", "!= 2.13.2" gem "sorbet-static-and-runtime" if RUBY_VERSION >= "3.0" gem "yard", "~> 0.9" gem "yard-sorbet", "~> 0.9" if RUBY_VERSION >= "3.1"