How to override gem dependency?
问题 I have 2 gems that depend on conflicting versions of hashie (one requires ~> 1.2.0 and the other requires 3.3.1): Bundler could not find compatible versions for gem "hashie": In Gemfile: restforce (>= 0) ruby depends on hashie (~> 1.2.0) ruby omniauth (>= 0) ruby depends on hashie (3.3.1) I'd like to keep both gems and use the higher version of hashie. Is there a way for me override one of the gem dependencies? 回答1: The standard advise is to use the higher version compatible . I do this way,