Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

ruby

download

gem

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 ).

like image 205
Geo Avatar asked Sep 09 '09 19:09

Geo


3 Answers

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.

like image 160
DigitalRoss Avatar answered Sep 30 '22 18:09

DigitalRoss


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

like image 40
khelll Avatar answered Sep 30 '22 19:09

khelll


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

like image 26
Colonel Panic Avatar answered Sep 30 '22 19:09

Colonel Panic