Ruby-Mongrel2 0.13.0 Released

Ruby-Mongrel2 version 0.13.0 has been released!

Ruby-Mongrel2 is a complete Ruby (1.9-only) 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.

Installation:

gem install mongrel2

Changes:

v0.13.0 [2012-02-24] Michael G. [email protected]

  • Fix the ZMQ socket identifier used by Connection.
  • Add missing slash in the control socket URI
  • Add an argument so the helloworld handler can use another config DB
  • Fix handling of NO CONTENT (204) responses.
  • Don’t set a Content-type header
  • Omit the body even if there is one
  • Set the content-length to 0