Sinatra is a well-known open source framework written in Ruby. It is one of the main alternatives to Ruby on Rails and it is finally ready to introduce to the public the long-awaited pre-release of version 2.0. Let’s have a look at what they have prepared for us.

Those who work with Sinatra have been waiting for this update since the release of Ruby on Rails 5.0.

Sinatra creators had to come through a number of hurdles, but now they are finally ready to show the world the beta version of what Sinatra 2.0 would look like. Like always with betas, some bugs might appear, but this pre-release version will definitely let us to get a sneak peek of what we should expect from this framework.

So let’s have a look at the main features it offers.

1. Rack 2.0 support

From now on Sinatra 2.0 will not only support Rack 2.0 version, but will also stop supporting younger versions. This way if you are using an old Rack for your webservers, it is high time to go for some updates.

2. Ruby 2.2+ support

Obviously, Sinatra couldn’t pass by major Ruby update. And, to be frank, this might be the major reason, why we even see Sinatra 2.0 pre-release version. The new version of Sinatra will support Ruby 2.2+ versions. At the same time it will stop working with any of the younger Ruby versions.

3. Mustermann introduced

The pre-release shows that now Mustermann will replace Sinatra router. Mustermann is a very powerful library. Besides, it is compatible params parsing interface. It will add some new patterns and make easier working with some old ones.

Where can I download it?

All gems for the pre-release version can be found at rubygems.org. The list includes:

  1. sinatra: v2.0.0.beta2
  2. sinatra-contrib: v2.0.0.beta2
  3. mustermann: v1.0.0.beta2
  4. mustermann-contrib: v1.0.0.beta2
  5. rack-protection: v2.0.0.beta2

As you see, there are a number of things to have a look at in the new version of Sinatra. You can find more details here. We in Rubyroid Labs enjoy working with Sinatra and use it for some of our projects.

And what do you think about it? Share with us in the comments.

How useful was this post?

Click on a star to rate it!

Average rating 4.9 / 5. Vote count: 22

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?


Author

Daria Stolyar is a Marketing Manager at Rubyroid Labs. You can follow her at Linkedin.

Write A Comment