v2.0.1.rc1February 12, 2018
Use Mustermann for patterns #1086 by Konstantin Haase
Server now provides
-qflag for quiet mode, which disables start/stop messages #1153 by Vasiliy.
Session middleware can now be specified with
:session_storesetting #1161 by Jordan Owens.
APP_ENVis now preferred and recommended over
RACK_ENVfor setting environment #984 by Damien Mathieu.
Add Reel support #793 by Patricio Mac Adden.
Make route params available during error handling #895 by Jeremy Evans.
error404 behavior #896 by Jeremy Evans.
Enable Ruby 2.3
frozen_string_literalfeature #1076 by Vladimir Kochnev.
Add Sinatra::ShowExceptions::TEMPLATE and patched Rack::ShowExceptions to prefer Sinatra template by Zachary Scott.
Sinatra::Runner is used internally for integration tests #840 by Nick Sutterer.
Fix case-sensitivity issue in
urimethod #889 by rennex.
statushelper to use symbol as well as numeric codes #968 by Tobias H. Michaelsen.
Improved error handling for invalid params through Rack #1070 by Jordan Owens.
Ensure template is cached only once #1021 by Patrik Rak.
Rack middleware is initialized at server runtime rather than after receiving first request #1205 by Itamar Turner-Trauring.
Improve Session Secret documentation to encourage better security practices #1218 by Glenn Rempe
Exposed global and per-route options for Mustermann route parsing #1233 by Mike Pastore
session_secretfor classic and modular apps in development #1245 by Marcus Stollsteimer
Make authenticity token length a fixed value of 32 #1181 by Jordan Owens
Modernize Rack::Protection::ContentSecurityPolicy with CSP Level 2 and 3 Directives #1202 by Glenn Rempe
Adds preload option to Rack:Protection:StrictTransport #1209 by Ed Robinson
Improve BadRequest logic. Raise and handle exceptions if status is 400 #1212 by Mike Pastore
Make Rack::Test a development dependency #1232 by Mike Pastore
Capture exception messages of raised NotFound and BadRequest #1210 by Mike Pastore
Add explicit set method to contrib/cookies to override cookie settings #1240 by Andrew Allen
Avoid executing filters even if prefix matches with other namespace #1253 by namusyaka
#has_key?also indifferent in access, can accept String or Symbol #1262 by Stephen Paul Weber
allow_ifoption to bypass json csrf protection #1265 by Jordan Owens
rack-protection: Bundle StrictTransport, CookieTossing, and CSP #1267 by Mike Pastore
:strict_pathsoption for managing trailing slashes #1273 by namusyaka
Add full IndifferentHash implementation to params #1279 by Mike Pastore
v2.0.0.rc5May 06, 2017
v2.0.0.rc4May 06, 2017
v2.0.0.rc3May 06, 2017
Add Ashley Williams, Trevor Bramble, and Kashyap Kondamudi to team Sinatra.
Correctly handle encoded colons in routes. (Jeremy Evans)
Rename CHANGES to CHANGELOG.md and update Rakefile. #1043 (Eliza Sorensen)
Sinatra::Extto workaround Rack 1.6 bug to fix Ruby 1.8.7 support. #1080 (Zachary Scott)
Add CONTRIBUTING guide. #987 (Katrina Owen)
Improve tests and documentation. (Darío Hereñú, Seiichi Yonezawa, kyoendo, John Voloski, Ferenc-, Renaud Martinet, Christian Haase, marocchino, huoxito, Damir Svrtan, Amaury Medeiros, Jeremy Evans, Kashyap, shenqihui, Ausmarton Fernandes, kami, Vipul A M, Lei Wu, 7stud, Taylor Shuler, namusyaka, burningTyger, Cornelius Bock, detomastah, hakeda, John Hope, Ruben Gonzalez, Andrey Deryabin, attilaolah, Anton Davydov, Nikita Penzin, Dyego Costa)
Remove duplicate require of sinatra/base. (Alexey Muranov)
Escape HTML in 404 error page. (Andy Brody)
Refactor to method call in
#callback. (Damir Svrtan)
Depend on latest version of Slim. (Damir Svrtan)
Fix compatibility with Tilt version 2. (Yegor Timoschenko)
Fix compatibility issue with Rack
prettymethod from ShowExceptions. (Kashyap)
Show date in local time in exception messages. (tayler1)
Fix logo on error pages when using Ruby 1.8. (Jeremy Evans)
Upgrade test suite to Minitest version 5 and fix Ruby 2.2 compatibility. (Vipul A M)
Improve tests and documentation. (Seiichi Yonezawa, Mike Gehard, Andrew Deitrick, Matthew Nicholas Bradley, GoGo tanaka, Carlos Lazo, Shim Tw, kyoendo, Roman Kuznietsov, Stanislav Chistenko, Ryunosuke SATO, Ben Lewis, wuleicanada, Patricio Mac Adden, Thais Camilo)
Fix Ruby warnings. (Vipul A M, Piotr Szotkowski)
Fix template cache memory leak. (Scott Holden)
Work around UTF-8 bug in JRuby. (namusyaka)
Don't set charset for JSON mime-type (Sebastian Borrazas)
Fix bug in request.accept? that might trigger a NoMethodError. (sbonami)
Allow setting layout to false specifically for a single rendering engine. (Matt Wildig)
Allow using wildcard in argument passed to
Treat missing Accept header like wild card. (Patricio Mac Adden)
Improve tests and documentation. (Darío Javier Cravero, Armen P., michelc, Patricio Mac Adden, Matt Wildig, Vipul A M, utenmiki, George Timoschenko, Diogo Scudelletti)
Fix Ruby warnings. (Vipul A M, Patricio Mac Adden)
Improve self-hosted server started by
run!method or in classic mode. (Tobias Bühlmann)
Reduce objects allocated per request. (Vipul A M)
Drop unused, undocumented options hash from Sinatra.new. (George Timoschenko)
Keep Content-Length header when response is a
Rack::Fileor when streaming. (Patricio Mac Adden, George Timoschenko)
Use reel if it's the only server available besides webrick. (Tobias Bühlmann)
disable :trapsso setting up signal traps for self hosted server can be skipped. (George Timoschenko)
statusoption passed to
send_filemay now be a string. (George Timoschenko)
Reduce file size of dev mode images for 404 and 500 pages. (Francis Go)