Search code examples
ruby-on-railsrubybundlerest-client

bundle is locked to rest_client (1.8.3)


Your bundle is locked to rest_client (1.8.3), but that version could not be found in any of the sources listed in your Gemfile. If you haven't changed sources, that means the author of rest_client (1.8.3) has removed it. You'll need to update your bundle to a different version of rest_client (1.8.3) that hasn't been removed in order to install.


Solution

  • rest_client is deprecated. That's why your bundler couldn't find it in any source. Either you have to install it from git or you have to use rest-client which is in the source (RubyGems.org). But your Gemfile.lock file has rest_client locked. Follow these steps:

    1. Remove your Gemfile.lock file.
    2. Remove rest_client from your Gemfile.
    3. Add gem 'rest-client' to your Gemfile.
    4. bundle install.

    Your problem is solved hopefully.