# \[ANN\] Mongrel 0.3.13.1 -- Quick Small Fixes

**URL:** <https://www.ruby-forum.com/t/ann-mongrel-0-3-13-1-quick-small-fixes/64003>\
**Category:** Ruby\
**Created:** [June 21, 2006, 7:58am UTC](https://www.ruby-forum.com/t/ann-mongrel-0-3-13-1-quick-small-fixes/64003 "2006-06-21T07:58:01Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zed\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/da6949/32.png) [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Post date:** [June 21, 2006, 7:58am UTC](https://www.ruby-forum.com/t/ann-mongrel-0-3-13-1-quick-small-fixes/64003/1 "2006-06-21T07:58:01Z")

</div>

Hi Everyone,

This is a small release that fixes a little bug, some of the  
documentation, and adds the new RedirectHandler code and a @redirect@  
call for the mongrel.conf files. It’s fresh so don’t rely on it.  
Everyone should upgrade with the usual _gem update_ command (which tells  
you it’s “Upgrading…”) and tell me how it works.

This release fixes:

- The -C configure file option was busted because of an errant line  
move.
- Adds RedirectHandler thanks to Jonas P. and a new redirect call  
to Configurator.
- Fixes mongrel\_servic documentation which was referring to -r instead  
of -c and -C instead of -u.

USING RedirectHandler

Redirects are pretty simple. You simply have either a new  
RedirectHandler class you can use or you can put this in a mongrel.conf  
and pass that to -S:

redirect “/from”, “/to”

It also accepts regex for the @from@ parameter and can take a block.  
Play with it if you’re interested.

DEFLATE AND SAFARI

It looks like Safari does not honor the @Content-Encoding: deflate@  
response, so avoid using DeflateFilter until I can find out why. _This_  
is why you don’t hand code network protocol parsers.

RAILSCONF (-1 DAY)

I’m actually an idiot and scheduled my RailsConf trip a day early. I’ve  
gotta work that day so I’m going to be at the Radisson near the  
conference hotel if people want to meet me.

Here’s my face:

[http://facebook.railsconf.org/users/122](http://facebook.railsconf.org/users/122)

Anyone interested in having a Mongrel get together either tomorrow or  
during the conference should put their picture in the facebook, tag it  
with mongrel, and I’ll work out something based on interest. Mike C.  
is interested in doing a BOF too. Should be fun.

–  
Zed A. Shaw

> **[Zed A. shaw](https://zedshaw.com/)**
>
> Personal essays and writings by Zed A. Shaw.

[http://mongrel.rubyforge.org/](http://mongrel.rubyforge.org/)

---

<div class="post-metadata">

**Author:** ![Zed\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/da6949/32.png) [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Post date:** [June 21, 2006, 8:16am UTC](https://www.ruby-forum.com/t/ann-mongrel-0-3-13-1-quick-small-fixes/64003/2 "2006-06-21T08:16:20Z")

</div>

Zed S. wrote:

> Hi Everyone,
> 
> This is a small release that fixes a little bug, some of the  
> documentation, and adds the new RedirectHandler code and a @redirect@  
> call for the mongrel.conf files. It’s fresh so don’t rely on it.  
> Everyone should upgrade with the usual _gem update_ command (which tells  
> you it’s “Upgrading…”) and tell me how it works.

I tried ‘gem update’, and it said it was updating all of my installed  
gems. So aborted that.

I then tried ‘gem update mongrel’

That was better, but the highest version offered was 0.3.13, there was  
no 0.3.13.1 offered.

–  
James B.

“In physics the truth is rarely perfectly clear, and that is certainly  
universally the case in human affairs. Hence, what is not surrounded  
by  
uncertainty cannot be the truth.”

- R. Feynman

---

<div class="post-metadata">

**Author:** ![Zed\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/da6949/32.png) [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Post date:** [June 21, 2006, 8:40am UTC](https://www.ruby-forum.com/t/ann-mongrel-0-3-13-1-quick-small-fixes/64003/3 "2006-06-21T08:40:41Z")

</div>

On Wed, 2006-06-21 at 15:14 +0900, James B. wrote:

> I tried ‘gem update’, and it said it was updating all of my installed  
> gems. So aborted that.
> 
> I then tried ‘gem update mongrel’
> 
> That was better, but the highest version offered was 0.3.13, there was  
> no 0.3.13.1 offered.

I just rebuilt the gem index, it’s in there now:

==================

# gem list --remote mongrel | grep 0.3.13.1

# mongrel (0.3.13.1, 0.3.13, 0.3.12.4, 0.3.12.3, 0.3.12.2, 0.3.12.1, 0.3.12, 0.3.11, 0.3.10.1, 0.3.10, 0.3.9, 0.3.8, 0.3.7.1, 0.3.7, 0.3.6, 0.3.5, 0.3.4, 0.3.3, 0.3.2, 0.3.1, 0.3, 0.2.2, 0.2.1, 0.2.0)

And it _should_ be making its way out to the gem mirrors, although it  
doesn’t seem to be there just yet:

[http://rubyforge.rubyuser.de/gems/mongrel-0.3.13.1.gem](http://rubyforge.rubyuser.de/gems/mongrel-0.3.13.1.gem)

Yours,

Tom

---

<div class="post-metadata">

**Author:** ![Zed\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/da6949/32.png) [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Post date:** [June 21, 2006, 9:14am UTC](https://www.ruby-forum.com/t/ann-mongrel-0-3-13-1-quick-small-fixes/64003/4 "2006-06-21T09:14:29Z")

</div>

On Wed, 2006-06-21 at 15:14 +0900, James B. wrote:

> gems. So aborted that.
> 
> I then tried ‘gem update mongrel’
> 
> That was better, but the highest version offered was 0.3.13, there was  
> no 0.3.13.1 offered.

James, you seem like a non-newbie Ruby fellow, judging from:

[http://www.jamesbritt.com/](http://www.jamesbritt.com/)

So I’m curious why you mention the update command updating all your gems  
every time I tell people to update. Are you indirectly saying I  
shouldn’t tell people that, or are you asking a question? From your  
blog it would seem that you understand RubyGems fairly well so I’m a  
little baffled why your e-mail seems to imply that you’re baffled by the  
update command.

Not being harsh, just curious why you mention this every time. Maybe  
there’s something about gem update that I’m missing and you need to just  
tell me about? Maybe a misunderstanding that the RubyGems manual  
doesn’t clarify?

---

<div class="post-metadata">

**Author:** ![Zed\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/da6949/32.png) [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Post date:** [June 21, 2006, 3:23pm UTC](https://www.ruby-forum.com/t/ann-mongrel-0-3-13-1-quick-small-fixes/64003/5 "2006-06-21T15:23:20Z")

</div>

On Wed, 2006-06-21 at 02:39 -0400, Tom C. wrote:

> And it _should_ be making its way out to the gem mirrors, although it  
> doesn’t seem to be there just yet:
> 
> [http://rubyforge.rubyuser.de/gems/mongrel-0.3.13.1.gem](http://rubyforge.rubyuser.de/gems/mongrel-0.3.13.1.gem)

My mistake, I had munged the rsync configuration. Fixed now and the gem  
is out there.

Yours,

Tom

---

<div class="post-metadata">

**Author:** ![Zed\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/da6949/32.png) [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Post date:** [June 21, 2006, 3:51pm UTC](https://www.ruby-forum.com/t/ann-mongrel-0-3-13-1-quick-small-fixes/64003/6 "2006-06-21T15:51:54Z")

</div>

On Wed, 2006-06-21 at 16:27 +0900, Stoyan Z. wrote:

> ERROR: While executing gem … (OpenURI::HTTPError)  
> 300 Multiple Choices

It can take some time for gems to migrate to the mirrors. Just try  
again in a while.

–  
Zed A. Shaw

> **[Zed A. shaw](https://zedshaw.com/)**
>
> Personal essays and writings by Zed A. Shaw.

[http://mongrel.rubyforge.org/](http://mongrel.rubyforge.org/)

---

<div class="post-metadata">

**Author:** ![Zed\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/da6949/32.png) [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Post date:** [June 21, 2006, 9:29am UTC](https://www.ruby-forum.com/t/ann-mongrel-0-3-13-1-quick-small-fixes/64003/7 "2006-06-21T09:29:36Z")

</div>

On 6/21/06, Zed S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Everyone should upgrade with the usual _gem update_ command (which tells  
> you it’s “Upgrading…”) and tell me how it works.

Select which gem to install for your platform (i686-linux)

1. mongrel 0.3.13.1 (ruby)
2. mongrel 0.3.13.1 (mswin32)  
…

> 1  
> ERROR: While executing gem … (OpenURI::HTTPError)  
> 300 Multiple Choices

---

<div class="post-metadata">

**Author:** ![Zed\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/da6949/32.png) [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Post date:** [June 21, 2006, 7:52pm UTC](https://www.ruby-forum.com/t/ann-mongrel-0-3-13-1-quick-small-fixes/64003/8 "2006-06-21T19:52:40Z")

</div>

Zed S. wrote:

> update command.  
> No, I don’t understand rubygems all that well. Like much software, the  
> available commands have evolved, and I tend to use only a small subset  
> with any regularity, so over time I lose tack of what the current  
> options are and how they may differ from past behavior.

As with much software, there can be unintended behavior or inconsistent  
behavior with unpleasant side effects. At least at some point running  
gem update would simply update all gems even if you gave a list of gems.  
Now you can update selected gems, but the initial behavior is still  
there if called with no other arguments, which is what you instructed.

> Not being harsh, just curious why you mention this every time. Maybe  
> there’s something about gem update that I’m missing and you need to just  
> tell me about? Maybe a misunderstanding that the RubyGems manual  
> doesn’t clarify?

Because, they way your mail states it, (or at least the way I read it),  
you are suggesting that people run this:

gem update

which will update all installed gems

And I’ve been bitten by that before; not all updates are good, and  
undoing an update or locking code to specific gem versions can get  
tedious.

But this command:

gem install mongrel

does what (I now gather) is intended, with no confusion.

This is different from telling people to use, say, ‘gem install’; it  
become obvious quite fast, and with no unexpected side effects, that  
another argument is needed. Unfortunately, there is no symmetry with  
‘gem update’. I’d prefer if ‘gem update’ always required additional  
arguments, perhaps -all to update all gems. And I half expected that  
simply running ‘gem update’ would ask for the names of the gems to  
update (things change). But it does not.

I’m also unclear if there is any difference between running ‘gem update  
mongrel’ or ‘gem install mongrel’; my usage of rubygems tends towards  
either uninstalling or (rarely) uninstalling. So perhaps running 'gem  
install ’ is a better way to update; no accidental behavior. But  
there may be other factors with that (such as fetching the index).

The ability to update selected gems is, think, a (fairly) recent  
feature. Maybe motivated by past whining from me.

The ambiguity of your instructions, though, leave open the real chance  
that people are going to get more than they asked for. And I want to  
make that clear before someone starts complaining that after updating  
Mongrel, other, unrelated code, stopped working.

I believe now that when you instruct people to run “gem update” you are  
assuming that they know to add a third argument specifying a particular  
gem to update. I think that is a mistaken assumption, and would prefer  
that people not learn about it the hard way.

And I know that you are an experienced Rubyist, but I also considered  
the real possibility that you in fact believed the best or right way for  
people to update Mongrel was by updating all their gems. But if Zed  
says “run ‘gem update’”, people will do exactly that.

–  
James B.

“In Ruby, no one cares who your parents were, all they care  
about is if you know what you are talking about.”

- Logan C.

---

<div class="post-metadata">

**Author:** ![Zed\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/da6949/32.png) [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Post date:** [June 22, 2006, 5:04am UTC](https://www.ruby-forum.com/t/ann-mongrel-0-3-13-1-quick-small-fixes/64003/9 "2006-06-22T05:04:41Z")

</div>

On Thu, 2006-06-22 at 02:50 +0900, James B. wrote:

> > blog it would seem that you understand RubyGems fairly well so I’m a  
> > gem update would simply update all gems even if you gave a list of gems.  
> > Now you can update selected gems, but the initial behavior is still  
> > there if called with no other arguments, which is what you instructed.

You know, the guy who runs [ruby-doc.org](http://ruby-doc.org) should be able to read  
documentation.

> which will update all installed gems
> 
> And I’ve been bitten by that before; not all updates are good, and  
> undoing an update or locking code to specific gem versions can get  
> tedious.
> 
> But this command:
> 
> gem install mongrel

Then just come out and say that. Don’t be a passive aggressive twerp  
about it. Pony up some cajones and say, “Hey Zed, you should tell  
people to use gem install mongrel.” I’ll then just adjust my  
documentation for the folks like you who can’t keep up with their gems.

Now that you’ve gone and done a massive round-about 10 e-mail passive  
aggressive indirection maneuver to get to where you can finally say what  
you want to say, I’m just going to continue doing this so that you can  
be properly annoyed from now on.

Even more bizarre is how you’re doing this to get the RubyGems team to  
change their project. Talk about a Rube G. machine. “My e-mail  
pretends to be a newbie to ask Zed why I should do a gem update to  
mongrel so that RubyGems will add a prompt! It’s brilliant!”

Next time, be direct about what you want, and don’t waste my time.  
There’s legit users with real problems who need my help. Guys like you  
should know better.
