diff options
author | Yuki Nishijima <yuki24@hey.com> | 2023-01-07 17:46:44 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-01-07 08:47:05 +0000 |
commit | 651a098ea1526b363e85fd8d3f30e9783f6c5de1 (patch) | |
tree | d336e8887a446409eb1d1d629c9ec51fc5129e58 /lib/did_you_mean.rb | |
parent | e537aa65c022fa3bb35b7b7b44a2ef7f72be20e9 (diff) | |
download | ruby-651a098ea1526b363e85fd8d3f30e9783f6c5de1.tar.gz |
[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
Diffstat (limited to 'lib/did_you_mean.rb')
-rw-r--r-- | lib/did_you_mean.rb | 4 |
1 files 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 |