Using bundler, you can do something like this in the Gemfile
:
gem 'my_gem', :git => 'git@github:me/my_gem.git'
That builds the gem in that repo and installs it. Works great. Is it possible to do something similar just using the command-line gem tool? Something like this?
gem install my_gem --git="git@github:me/my_gem.git"
Obviously that command doesn't work, but is there something like it that does? I know I can clone the repo, run a gem build my_gem.gemspec
and then a gem install my_gem-1.2.3.gem
. But I'm wondering if there is a direct one-liner that hides these intermediate steps behind the scenes.