$ docker-sync start
warning There is an update (0.5.14) available (current version 0.0.11
). Please update before you continue
Shall i update docker-sync to 0.5.14 for you? Y
Updating installed gems
Updating docker-sync
ERROR: While executing gem ... (NoMethodError)
undefined method `request' for nil:NilClass
success Successfully updated, please restart docker-sync and check the changelog at https://github.com/EugenMayer/docker-sync/wiki/5.-Changelog
Ubuntu 20.04
gem installs 0.0.11 and any attempt to install a later version gives:
ERROR: While executing gem ... (NoMethodError)
undefined method `request' for nil:NilClass
After adding require 'date' to lib/config.rb docker-sync start will actually run but gives the above update error. Despite saying successfully updated, it hasn't updated.
Hey, I was running into the same issue, luckily bundler provided more information.
In my case I had ruby 3 installed but the Gem expects version 2.x. Installing ruby 2.7.5 and rerunning the install procedure, fixed the issue for me.
No concrete idea why version 0.0.11 is installed with ruby 3. Guess there is no ruby version limitation on that release.
bundle install
Fetching gem metadata from https://rubygems.org/........
Resolving dependencies...
Bundler found conflicting requirements for the Ruby version:
In Gemfile:
Ruby x86_64-darwin-20
docker-sync (~> 0.5.14) x86_64-darwin-20 was resolved to 0.5.14, which depends on
docker-compose (>= 1.1.7, ~> 1.1) x86_64-darwin-20 was resolved to 1.1.12, which depends on
Ruby (~> 2.0) x86_64-darwin-20
docker-sync (~> 0.5.14) x86_64-darwin-20 was resolved to 0.5.14, which depends on
Ruby (>= 2.0) x86_64-darwin-20
โฏ ruby --version
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-darwin20]
@omares Thank you, that helps me a lot. I thought it is an issue with homebrew's version of ruby and created an issue over there: https://github.com/Homebrew/homebrew-core/issues/74176. Looks like it is more a ruby 2 versus ruby 3 thing.
Most helpful comment
Hey, I was running into the same issue, luckily bundler provided more information.
In my case I had ruby 3 installed but the Gem expects version 2.x. Installing ruby 2.7.5 and rerunning the install procedure, fixed the issue for me.
No concrete idea why version 0.0.11 is installed with ruby 3. Guess there is no ruby version limitation on that release.