Update Launchy dependency #11
Conversation
See the discussion in the comments here. http://programmingtour.blogspot.com/2011/03/turbulence-measuring-turbulent-nature.html |
This also breaks things if I just pull 'launchy' without version spec into my Rails app. (I'm not entirely sure why.)
|
Yes, it seems so. Here's the full error I'm getting:
|
@joliss That's frustrating, I'm sure. No way for bundler to get around it because open_gem already has launchy loaded. You could uninstall open_gem and install from my fork. :) |
Yeah, that's what I thought. Well, the path of least resistance for me is to specify launchy ~> 0.3.5 in my Gemfile. ^^ |
How about using |
@joliss, it doesn't appear that @adamsanderson is very responsive, so I doubt it really matters that much. |
It's only been a week since you opened this -- you should give him some time. ;-) I'm sure he'll get to it eventually. |
Another thought: Perhaps open_gem should instead drop its dependency on launchy, and just detect at runtime whether launchy is available. I have blogged about this problem here: http://opinionated-programmer.com/2011/03/bundler-problem-you-have-already-activated-launchy-0-3-7/ |
@joliss That would certainly be an improvement. Remove the runtime dependency and only require launchy when you call |
I just opened this issue: The problem isn't having a dependency on launchy; it's requiring launchy in class load context, which effectively means its loaded every time you require rubygems! This is causing issues with bundler dependency resolution since the "launchy" gem is being required outside the context of bundler. It should be a simple fix - require the "launchy" gem only when it is needed, at runtime. |
@rubiety Agreed. I've been meaning to update this pull request to do just that for some time. |
@adamsanderson I agree it would be great if we could eliminate the launchy dependency in open_gem. With changes like this in other people's projects, the conflicts are going to get worse, if anything. |
Sorry I haven't been updating open_gem, I have added @blowmage as collaborator. |
Thanks Adam! I'll address the open issues later tonight. |
clap-clap-clap Thanks Adam! :-) |
Just ran into this issue trying to get a Heroku app running. The heroku gem requires launchy on it's own, which conflicts with what open_gem is doing. Any hope of this getting fixed? For now, I've uninstalled open_gem. Thanks, guys! |
There is a conflict with open_gem and turbulence, because open_gem already has an older version of launchy loaded. Bumped the dependency on launchy to resolve as a stopgap.