[RubyGems] setting up a remote repository

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.

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

···

On Sunday, June 13, 2004, 6:53:47 AM, Joel wrote:

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.

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

···

On Sun, 13 Jun 2004 09:14:52 +0900, Gavin Sinclair <gsinclair@soyabean.com.au> wrote:

On Sunday, June 13, 2004, 6:53:47 AM, Joel wrote:

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

Chad Fowler wrote:

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.

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.

···

On Sun, 13 Jun 2004 09:14:52 +0900, Gavin Sinclair > <gsinclair@soyabean.com.au> wrote:

On Sunday, June 13, 2004, 6:53:47 AM, Joel wrote:

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

···

On Tue, 15 Jun 2004 10:36:53 +0900, Joel VanderWerf <vjoel@path.berkeley.edu> wrote:

Chad Fowler wrote:
> On Sun, 13 Jun 2004 09:14:52 +0900, Gavin Sinclair > > <gsinclair@soyabean.com.au> wrote:
>
>>
>>On Sunday, June 13, 2004, 6:53:47 AM, Joel wrote:
>>
>>
>>>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.
>
>
>
> 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.