Is possible have a git branch dependency, inside mygem.gemspec?
I’m thinking something similar to the following:
gem.add_runtime_dependency 'oauth2', :git => 'git@github.com:lgs/oauth2.git'
… but it doesn’t work.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is not possible, and likely never will be because it would be rather heavy-handed for RubyGems to allow gem developers to require that users have a specific version control system installed to access a gem. Gems should be self-contained with a minimal number of dependencies so that people can use them in as wide an array of application as possible.
If you want to do this for your own internal projects, my suggestion would be to use Bundler which supports this quite well.