Local gem repo with just the latest versions

Rubygems totalled about 75GB last time I looked but that includes all
the old versions of each gem. I would like to create a local gem
repository but only download the latest version of each gem. Is it
possible?

gvim

Hi Gvim,

Are you using RVM?

If so, take a look at:
http://rvm.io/rubies/removing
http://rvm.io/gemsets/deleting
http://rvm.io/gemsets/emptying

Abinoam Jr.

Sorry for the last answer.

I think I have misunderstood your question.

Are you talking about “local repo” like in that one that runs with
“gem server” ?

Abinoam Jr.

I use rbenv. No, gem server is for viewing documentation of installed
gems. I want to create a local repository of all gems so that I can
install what I want when no internet connection is available. However,
at 75GB, it’s just not feasible but if, say, 2/3 of that 75GB is older
versions then I would be interested in being able to create a local
repository containing only the latest version of each gem.

gvim

On Mon, Jan 27, 2014 at 9:23 AM, gvim [email protected] wrote:

Abinoam Jr.

RVM: Ruby Version Manager - 'rvm gemset empty' - Emptying gemsets

but
only download the latest version of each gem. Is it possible?

gvim

While rubygems-mirror might look promising, it looks like it mirrors the
entire gem repo. I think it might be simpler (sorta?) to build your own
using Gem-in-a-box. Looking at
Run your own gem server - RubyGems Guides , I think it would
be
possible to rig up a script that snagged the newest version off rubygems
and stuffed it into your local gem server, no?

By the way, running gem server does more than serve up documentation.
It
will serve gems as well, which you can put into a Gemfile using the
source
statement, or add to sources in the gem command.