Mongrel2 0.2.4 Released

mongrel2 version 0.2.4 has been released!

Ruby-Mongrel2 is a complete Ruby connector for Mongrel2
[http://mongrel2.org/].

This library includes configuration-database ORM classes, a Ruby
implementation of the ‘m2sh’ tool, a configuration DSL for generating
config databases in pure Ruby, a Control port interface object, and
handler classes for creating applications or higher-level frameworks.

It differs from the original Mongrel2 Ruby library (m2r), and the
mongrel2-rack library in several ways:

  • It uses the C extension for 0MQ (zmq) instead of the FFI one. If you
    strongly prefer the FFI library, both of the other Mongrel2 libraries
    use it, so you’ll want to stick to one of them.

  • It doesn’t come with a Rack handler, or Rails examples, or anything
    fancy. I intend to build my own webby framework bits around Mongrel2,
    and I thought maybe someone else might want to as well. If you don’t,
    well again, there are two other libraries for you.

  • It includes configuration stuff. I want to make tools that use the
    Mongrel2 config database, so I wrote config classes. Sequel::Model
    made it stupid-easy. There’s also a DSL for generating a config
    database, too, mostly because I found it an interesting exercise, and
    I like the way it looks.

Ruby-Mongrel2 is Ruby 1.9-only.

RDoc API docs live here:

Ruby-Mongrel2

Changes:

  • Added a cleaned-up Mongrel2::Response#inspect like
    Mongrel2::Request.
  • Correct body size in inspected request/response output.