[RubyGems] setting up a remote repository

J

Joel VanderWerf

Is it possible to set up one's own gem repository and select it from the
gem command line? I'm looking for ways of distributing software that is
of no real interest to the ruby community, but is needed by a few people
where I work.

TIA.
 
G

Gavin Sinclair

Is it possible to set up one's own gem repository and select it from the
gem command line? I'm looking for ways of distributing software that is
of no real interest to the ruby community, but is needed by a few people
where I work.

It sure is.... in the future.

If you have all the gems you want installed, then you _can_ serve them
up. Just run gem_server.

Then, *if* you can get other people to include
http://your-machine:8808 in their remote "sources", they will be able
to install the gems from your machine.

Hopefully one of the other RubyGems gurus can answer that *if*. I
mean, you could hack it into
/usr/lib/ruby/gems/1.8/gems/sources-0.0.1/sources.rb, but there might
be a better way.

Gavin
 
C

Chad Fowler

It sure is.... in the future.

If you have all the gems you want installed, then you _can_ serve them
up. Just run gem_server.

Then, *if* you can get other people to include
http://your-machine:8808 in their remote "sources", they will be able
to install the gems from your machine.

Hopefully one of the other RubyGems gurus can answer that *if*. I
mean, you could hack it into
/usr/lib/ruby/gems/1.8/gems/sources-0.0.1/sources.rb, but there might
be a better way.


There isn't a better way yet. It's been a desired feature for a while
that hasn't reached the top of the list. It's incredibly simple to
implement, so we could probably get it in for the next version.

Obviously, the idea behind gem_server was to make it easy for people
to serve their gems--specifically in a peer-to-peer kind of way (for
example, at a conference or a hacking session).

Chad
 
J

Joel VanderWerf

Chad said:
There isn't a better way yet. It's been a desired feature for a while
that hasn't reached the top of the list. It's incredibly simple to
implement, so we could probably get it in for the next version.

Obviously, the idea behind gem_server was to make it easy for people
to serve their gems--specifically in a peer-to-peer kind of way (for
example, at a conference or a hacking session).

Sounds good. For the time being, I can use Gavin's hack, or just stick
with the old install.rb.

It would be nice, in the big picture, to be able to have several mirrors
of the main public gems repository, so we'd have some insurance against
the recent downtime problems that affected other ruby web sites. Maybe
the gem command could automatically update its mirror list every time
you connect with the main repository.
 
C

Chad Fowler

Sounds good. For the time being, I can use Gavin's hack, or just stick
with the old install.rb.

It would be nice, in the big picture, to be able to have several mirrors
of the main public gems repository, so we'd have some insurance against
the recent downtime problems that affected other ruby web sites. Maybe
the gem command could automatically update its mirror list every time
you connect with the main repository.

That's the idea. It's not hard to implement (we designed with that in
mind). Just hasn't made it to the top of the list yet. Look for it
in an upcoming release.

Thanks,
Chad
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top