I noticed that when I upload a new gem to Rubyforge, it takes several
hours until I can install it via "gem". If you try within that period
you are getting a 404 error (at least here in Germany, maybe the mirror
is very slow), which is annoying and leads to all kind of bug reports,
and that you have to delay the announcement of a new version for hours.
I understand that mirrors are neccessary in this growing Ruby community,
but if the index list (the list of available gems) would be fetched from
the mirror, the 404 wouldn't happen.
Alternatively, a message other than 404 would be helpful to the user
that he or she should retry later. Or what about the idea to
contact the master rubyforge server, in case of 404?
Another option is for RubyForge to just serve up gems for the first 24
hours or so after they're released. Jeremy Kemper did some nice rewrite
rules for this:
On Mon, 2008-04-21 at 16:47 +0900, Michael Neumann wrote:
Hi,
I noticed that when I upload a new gem to Rubyforge, it takes several
hours until I can install it via "gem". If you try within that period
you are getting a 404 error (at least here in Germany, maybe the mirror
is very slow), which is annoying and leads to all kind of bug reports,
and that you have to delay the announcement of a new version for hours.
I understand that mirrors are neccessary in this growing Ruby community,
but if the index list (the list of available gems) would be fetched from
the mirror, the 404 wouldn't happen.
Alternatively, a message other than 404 would be helpful to the user
that he or she should retry later. Or what about the idea to
contact the master rubyforge server, in case of 404?
I have a clean and simple 404 handler written in ruby that allows for pattern matching and redirection. Such a thing could easily be used by the mirrors to throw back at rubyforge.
···
On Apr 23, 2008, at 18:47 , Tom Copeland wrote:
Another option is for RubyForge to just serve up gems for the first 24
hours or so after they're released. Jeremy Kemper did some nice rewrite
rules for this:
I just added these rewrite rules and wrote some PHP code to populate the
file that the RewriteMap reads... that should cut the deploy time down
to the gem index rebuild interval (currently 30 minutes)...
Yours,
tom
···
On Fri, 2008-04-25 at 08:07 +0900, Ryan Davis wrote:
I have a clean and simple 404 handler written in ruby that allows for
pattern matching and redirection. Such a thing could easily be used by
the mirrors to throw back at rubyforge.