In association with heise online

03 October 2011, 14:22

Sinatra 1.3 adds streaming

  • Twitter
  • Facebook
  • submit to slashdot
  • StumbleUpon
  • submit to reddit

Sinatra logo The developers of Sinatra, the light-weight web framework for Ruby programmers, have announced the availability of a new feature release, Sinatra 1.3.0, which allows applications to keep connections open over time while still delivering data over the connection.

The developers point out that the new streaming implementation "abstracts away the differences between all the different Rack servers". Streaming is useful for implementing collaboration and chat systems or any browser applications which receive irregular updates over a long period of time. Other additions to Sinatra 1.3.0 include support for the "PATCH" HTTP verb, inspired by GitHub's API and a helper for logging. Sinatra 1.3.0 will drop support for Ruby prior to 1.8.6 and Rack prior to version 1.3, but the developers will maintain Sinatra 1.2 until the end of life of Rack 1.2. To that end, a number of patches have been backported to the Sinatra 1.2.x tree to produce Sinatra 1.2.7.

As there are many Sinatra extensions now available, and with some being used by a large number of apps, the Sinatra developers are creating Sinatra-Contrib. This project will contain the most useful extensions, with older ones rewritten to the Sinatra developer's coding standard. With each future release of Sinatra, the developers promise there will always be a compatible release of "contrib" to ensure an easier transition to the new version. Other developers will also find Sinatra Recipes useful; it is an independent collection of community techniques, documentation and tutorials for the web framework.


Print Version | Send by email | Permalink:

  • July's Community Calendar

The H Open

The H Security

The H Developer

The H Internet Toolkit