LoginSignup
0
0

More than 1 year has passed since last update.

webmockのgem使用時にhashdiffの警告ログが吐かれる

Last updated at Posted at 2021-10-08

環境情報

  • Ruby 2.6.1
  • Rails 5.2.6

起きたこと

webmockのgemを使用しているRailsプロジェクトを rails s などで立ち上げた際、下記ログが吐き出される

The HashDiff constant used by this gem conflicts with another gem of a similar name.  As of version 1.0 the HashDiff constant will be completely removed and replaced by Hashdiff.  For more information see https://github.com/liufengyun/hashdiff/issues/45.

解決方法

ログの内容にもあるように、hashdiffを1.0.0以上に更新する
ただ、webmockの最新(3.14.0)でもhashdiffの最低バージョンは0.4.0になっていたため、Gemfileに追記する

gem "hashdiff", ">= 1.0.0"

その後、 bundle update hashdiff でgemを更新すれば解消されます

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0