thuehlinger / daemons

Ruby daemons gem official repository
MIT License
648 stars 71 forks source link

Failure to install development dependency pry-byebug with '~> 0' version constrain #52

Open EYurchenko opened 7 years ago

EYurchenko commented 7 years ago
$ gem depend daemons -v 1.2.4 
Gem daemons-1.2.4
  pry-byebug (~> 0, development)
  rake (~> 0, development)
  rspec (~> 3.1, development)
  simplecov (~> 0, development)

But it is impossible to install pry-byebug

$ gem install pry-byebug --clear-source --source=https://rubygems.org -v '~> 0'
ERROR:  Could not find a valid gem 'pry-byebug' (~> 0) in any repository
ERROR:  Possible alternatives: pry-byebug
$ gem install pry-byebug --clear-source --source=https://rubygems.org -v '~> 0' --prerelease
ERROR:  Could not find a valid gem 'pry-byebug' (~> 0) in any repository
ERROR:  Possible alternatives: pry-byebug
thuehlinger commented 7 years ago

Which Ruby version are you using? I believe pry-byebug is not available on 1.8.x...

BGmot commented 7 years ago

ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]

The problem is in dependency specification - there is no pry-byebug gem version 0.x.x: https://rubygems.org/gems/pry-byebug/versions

thuehlinger commented 7 years ago

You are right. In fact this was already fixed in master, but the change is not in the 1.2.4 release. Are you in a hurry to get this fixed in a release? Otherwise I would release 1.2.5 only as soon as there are more pressing fixes.

BGmot commented 7 years ago

No, there is nothing urgent here. We are hosting our own gemservers and it was just spamming errors about not being able to install this dependency. I made a stub. Thanks.