Installing dependencies from a gemspec file

44 Views Asked by At

I wish to work on an existing gem, which I've checked out from a git repository. I'm using a clean Ruby installation. To start, I would like to install the dependencies specified in the gemspec file so that I can build and test the gem. I'm not using bundler for this.

Currently, I manually install the gems by reading the gemspec and invoking 'gem'. What I'd like to do is something like:

git clone my_gem
cd my_gem
gem magically-install-dependencies my_gem.gemspec

and have all of the runtime and development dependencies installed as they would be if I'd installed this from a .gem file. Is there a way to do this?

I've searched the gem documentation and there doesn't seem to be anything that works on gemfiles other than build.

0

There are 0 best solutions below