Sinatra 2.0 Released
Sinatra 2.0 Released
Written by Ian Elliot   
Monday, 08 May 2017

The second major release of the domain specific language for creating Ruby applications has been released. Sinatra is an alternative to Rails and other Ruby frameworks but with a different approach and is dependent on the Rack web server interface.

sinartahat

 

Sinatra is an open source project with an MIT licence. On its GitHub repo it claims to be:

Classy web-development dressed in a DSL

Named after musician Frank Sinatra (hence the hat logo) Sinatra was designed and developed by Blake Mizerany and was initially released in 2007 as a:

DSL (doman specific language) for quickly creating web applications in Ruby with minimal effort

 

 

According to Konstantin Haase, Sinatra's lead developer and co-author of Sinatra Up and Running:

Sinatra serves as a lightweight wrapper around Rack middleware, with syntax that maps closely to functions exposed by HTTP verbs, which makes it ideal for web services and APIs. 

sinatrasnippet

Although you may not be familiar with Sinatra it is a widely used and highly influential framework. Its prominent users include: GitHub, Apple, LinkedIn, the US National Security Agency, the UK Government Digital Service, BBC,  Engine Yard, Heroku and Songbird. As well as being cloned in the Ruby ecosystem, it is the inspiration behind Express for Node.js and Flask for Python.

 

Sinatra 2.0 is the first substantive release since Sinatra 1.4 in March 2013 and includes the following enhancements, among many more detailed in the chagelog.

 

  • Server now provides -q flag for quiet mode, which disables start/stop messages 

  • Session middleware can now be specified with :session_store setting

  • Route params available during error handling 

  • Ruby 2.3 frozen_string_literal feature enabled

 

 sinartahatsq

More Information

Sinatra Website

Sinatra 2.0

Sinatra 2.0 Changelog

Related Articles

Seven Web Frameworks in Seven Weeks (book review) 

Service-Oriented Design with Ruby and Rails (book review) 

Top 10 From Around The Web: Ruby On Rails Resources 

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on, Twitter, FacebookGoogle+ or Linkedin.

 

Banner


jQuery Mobile 1.5 Alpha Officially Available
12/05/2017

The first alpha release of jQuery 1.5 has been announced. This long overdue news comes as a great relief to its users as it signals that the project is still ongoing. The new release is expected to mo [ ... ]



AlphGo Defeats World's Top Ranking Go Player - UPDATE
25/05/2017

AlphaGo has now won two of three games against the world’s number one player, Ke Jie, at the Future of Go Summit, taking place in Wuzhen China. Although this means Alpha Go has taken the m [ ... ]


More News

<ASIN:1449304230>

<ASIN:B006C3HPS4>

<ASIN:0987332147>

<ASIN:B00TJ6UY8O>

<ASIN: 1937785637>

<ASIN: B00I800FE0>

<ASIN:0321659368>

<ASIN:B00413PHZU>

 
 

 

blog comments powered by Disqus

Last Updated ( Monday, 08 May 2017 )
 
 

   
Banner
RSS feed of news items only
I Programmer News
Copyright © 2017 i-programmer.info. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.