Is possible have a git branch dependency, inside mygem.gemspec?
I\'m thinking something similar to the following:
gem.add_runtime_dependency \'oauth2
EDIT
According to a commenter, this is no longer true. Prior information retained for historical context.
Duplicating the reference to a gem in Gemfile and .gemspec now appears to raise a warning message in Bundler, so this answer would appear to be no longer true.
Outdated info
This article by Yehuda Katz cleared up similar confusion for me. It says that, for use in development only, it's best to add the git stuff into the gemfile, but that bundler will still use the dependency/version info from the gemspec (seems magical to me, but I trust Yehuda).