Hi Bundlerites,
in my gem development activities, I sometimes need to depend on the
"edge" version of a gem in development, just so I can add new features
in a dependency and have them work in the main gem right away.
Basically I want this:
gemspec:
s.add_runtime_dependency("xpath", ["~> 0.1.2"])
Gemfile:
gem 'xpath', '~> 0.1.2', :git => 'git://
github.com/jnicklas/
xpath.git'
gemspec
However, this results in the following error:
You cannot specify the same gem twice coming from different
sources. You specified that xpath (~> 0.1.2) should come from
git://
github.com/jnicklas/xpath.git (at master) and ~/Projects/
capybara
That's pretty annoying. Would it be possible to allow dependencies
from the Gemfile to override dependencies from the gemspec? That would
be totally awesome. Currrently, there's no really defined workflow, so
we have to rely on stupid hacks like commenting out stuff from the
gemspec until we're ready to release, which we could potentially miss,
so it's less than ideal.
/Jonas