0
votes

I am trying to update to the latest google vision, and so I add in Gemfile:

gem 'google-cloud-vision', '~> 0.28.0'

But when I run bundle install, I get the following error:

Bundler could not find compatible versions for gem "faraday": In Gemfile: google-cloud-vision (~> 0.28.0) ruby depends on google-cloud-core (~> 1.2) ruby depends on google-cloud-env (~> 1.0) ruby depends on faraday (~> 0.11) ruby

forecast_io (>= 0) ruby depends on
  faraday (0.9.2)

I tried using the latest version of forecast too:

gem 'forecast_io', '~> 2.0', '>= 2.0.2'

I understand that two different gems require two different versions of faraday. But isn't bundler supposed to resolve this?

1

1 Answers

0
votes

According to bundler documentation

Update the gems specified (all gems, if none are specified), ignoring the previously installed gems specified in the Gemfile.lock. In general, you should use bundle install(1) to install the same exact gems and versions across machines.

You would use bundle update to explicitly update the version of a gem.

So use bundle update google-cloud-vision for update gem to new version.