@ledsun blog

無味の味は佳境に入らざればすなわち知れず

Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been depre

bundleコマンドを実行したら表題の警告が出ました。

ledsun@MSI:~/activerecord-bulk-insert►bundle
Bundler 2.3.7 is running, but your lockfile was generated with 2.2.22. Installing Bundler 2.2.22 and restarting using that version.
Fetching gem metadata from https://rubygems.org/.
Fetching bundler 2.2.22
Installing bundler 2.2.22
Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
Fetching gem metadata from https://rubygems.org/...........
Resolving dependencies....
Using rake 13.0.6
Using concurrent-ruby 1.1.10
Using websocket-extensions 0.1.5
Using minitest 5.16.2
Using mini_mime 1.1.2
Using erubi 1.10.0
Using racc 1.6.0
Using timeout 0.3.0
Using bundler 2.2.22
Using nio4r 2.5.8
Using method_source 1.0.0
Using thor 1.2.1
Using zeitwerk 2.6.0
Using builder 3.2.4
Fetching tzinfo 2.0.5
Using marcel 1.0.2
Using mail 2.7.1
Using crass 1.0.6
Using strscan 3.0.3
Using net-protocol 0.1.3
Fetching nokogiri 1.13.7 (x86_64-linux)
Fetching i18n 1.12.0
Using rack 2.2.4
Using digest 3.1.0
Using websocket-driver 0.7.5
Using net-imap 0.2.3
Using net-pop 0.1.1
Using net-smtp 0.3.1
Using rack-test 2.0.2
Installing i18n 1.12.0
Installing tzinfo 2.0.5
Fetching activesupport 7.0.3.1
Installing activesupport 7.0.3.1
Installing nokogiri 1.13.7 (x86_64-linux)
Using globalid 1.0.0
Fetching activemodel 7.0.3.1
Fetching activejob 7.0.3.1
Installing activejob 7.0.3.1
Installing activemodel 7.0.3.1
Fetching activerecord 7.0.3.1
Installing activerecord 7.0.3.1
Using rails-dom-testing 2.0.3
Using loofah 2.18.0
Using rails-html-sanitizer 1.4.3
Fetching actionview 7.0.3.1
Installing actionview 7.0.3.1
Fetching actionpack 7.0.3.1
Installing actionpack 7.0.3.1
Fetching actioncable 7.0.3.1
Fetching activestorage 7.0.3.1
Fetching actionmailer 7.0.3.1
Fetching railties 7.0.3.1
Installing actionmailer 7.0.3.1
Installing actioncable 7.0.3.1
Installing activestorage 7.0.3.1
Installing railties 7.0.3.1
Fetching actionmailbox 7.0.3.1
Fetching actiontext 7.0.3.1
Installing actionmailbox 7.0.3.1
Installing actiontext 7.0.3.1
Fetching rails 7.0.3.1
Installing rails 7.0.3.1
Bundle complete! 1 Gemfile dependency, 46 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.

"Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead." · Issue #5234 · rubygems/rubygems · GitHub によると、did_you_mean GEMに対してbundlerのバージョンが低いのが原因のようです。

bundle update --bundler したら直りました。