How to install a gem without using gem command online

Team,

I have a server which is not allowed to access the web. I downloaded and
installed ruby on it. Now I would like to install some of the ruby gems but
the command:
gem install gem_name does not work obviously because it can't reach the
web. I just don't know where to find the gems to download them, and install
them from a local repository.

Any suggestions?

Thank you

···

--
Ruby Student

I have a server behind a firewall that won't allow me to access the web to download gems either. What I do is go to ruby gems (http://rubygems.org), find the gem I want using another computer, then copy that over to the server. Then from the terminal I simply use:

gem install <path to gem>

The only downfall I have found is when there are dependencies on other gems, then I have to go download those and install them first.

Wayne

User Bundler and it's package command:
http://gembundler.com/v1.3/man/bundle-package.1.html

-Josh

···

On Mon, Jun 10, 2013 at 4:29 PM, Ruby Student <ruby.student@gmail.com>wrote:

Team,

I have a server which is not allowed to access the web. I downloaded and
installed ruby on it. Now I would like to install some of the ruby gems but
the command:
gem install gem_name does not work obviously because it can't reach the
web. I just don't know where to find the gems to download them, and install
them from a local repository.

Any suggestions?

Hi Wayne,

This will work for me even if I need to go crazy with dependencies.

Thank you

···

On Mon, Jun 10, 2013 at 5:39 PM, Wayne Brisette <wbrisett@att.net> wrote:

I have a server behind a firewall that won't allow me to access the web to
download gems either. What I do is go to ruby gems (http://rubygems.org),
find the gem I want using another computer, then copy that over to the
server. Then from the terminal I simply use:

gem install <path to gem>

The only downfall I have found is when there are dependencies on other
gems, then I have to go download those and install them first.

Wayne

--
Ruby Student