Geo
Geo

Reputation: 96817

Is it possible to download a Ruby gem without installing it automatically?

When I download something using gem I'd like to be able to just download the gem, and then choose whether or not I want to install it. I'm asking this because I'd like to install a particular gem on more than one computers ( without installing from the internet on each one ).

Upvotes: 18

Views: 9790

Answers (3)

Colonel Panic
Colonel Panic

Reputation: 137584

Yes it is. Browse to the package's page on RubyGems.org and follow the download link.

Eg. from https://rubygems.org/gems/pony to https://rubygems.org/downloads/pony-1.4.gem

Upvotes: 3

khelll
khelll

Reputation: 24000

Most of the gems are hosted on github.com right now, you just have to clone the repo.

Upvotes: 3

DigitalRoss
DigitalRoss

Reputation: 146073

gem fetch

So, something like $ gem fetch gosu ... this will leave gosu-0.7.14.gem in the current directory.

This will work even if you have already installed it.

Upvotes: 22

Related Questions