From 651a098ea1526b363e85fd8d3f30e9783f6c5de1 Mon Sep 17 00:00:00 2001 From: Yuki Nishijima Date: Sat, 7 Jan 2023 17:46:44 +0900 Subject: [PATCH] [ruby/did_you_mean] Keep the deprecated API for another year in case this could break 'bundle install' https://github.com/ruby/did_you_mean/commit/0f4b0806b7 --- lib/did_you_mean.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/did_you_mean.rb b/lib/did_you_mean.rb index 2df238da06..e177665099 100644 --- a/lib/did_you_mean.rb +++ b/lib/did_you_mean.rb @@ -113,7 +113,7 @@ module DidYouMean correct_error LoadError, RequirePathChecker if RUBY_VERSION >= '2.8.0' correct_error NoMatchingPatternKeyError, PatternKeyNameChecker if defined?(::NoMatchingPatternKeyError) - # TODO: Remove on 3.3: + # TODO: Remove on the 3.4 development start: class DeprecatedMapping # :nodoc: def []=(key, value) warn "Calling `DidYouMean::SPELL_CHECKERS[#{key.to_s}] = #{value.to_s}' has been deprecated. " \ @@ -132,7 +132,7 @@ module DidYouMean end end - # TODO: Remove on 3.3: + # TODO: Remove on the 3.4 development start: SPELL_CHECKERS = DeprecatedMapping.new deprecate_constant :SPELL_CHECKERS private_constant :DeprecatedMapping