Sinatra v2.2.0 Release Notes
Release Date: 2022-02-15 // about 3 years ago-
π Handle EOFError raised by Rack and return Bad Request 400 status. #1743 by tamazon
π¨ Minor refactors in
base.rb
. #1640 by ceclinuxβ Add escaping to the static 404 page. #1645 by Chris Gavin
Remove
detect_rack_handler
method. #1652 by ceclinuxπ Respect content type set in superclass before filter. Fixes #1647 #1649 by Jordan Owens
βͺ Revert "Use prepend instead of include for helpers. #1662 by namusyaka
π Fix usage of inherited
Sinatra::Base
classes keyword arguments. Fixes #1669 #1670 by Cadu Ribeiroβ¬οΈ Reduce RDoc generation time by not including every README. Fixes #1578 #1671 by Eloy PΓ©rez
β Add support for per form csrf tokens. Fixes #1616 #1653 by Jordan Owens
β‘οΈ Update MAINTENANCE.md with the
stable
branch status. #1681 by Fredrik RubenssonValidate expanded path matches
public_dir
when serving static files. #1683 by cji-stripeπ Fix Delegator to pass keyword arguments for Ruby 3.0. #1684 by andrewtblake
π Fix use with keyword arguments for Ruby 3.0. #1701 by Robin Wallin
π Fix memory leaks for proc template. Fixes #1704 #1719 by Slevin
β Remove unnecessary
test_files
from the gemspec. #1712 by Masataka Pocke Kuwabaraβ Add
#select
,#reject
and#compact
methods toSinatra::IndifferentHash
. #1711 by Olivier Belloneπ Docs: Spanish documentation: Update README.es.md with removal of Thin. #1630 by Espartaco Palma
π Docs: German documentation: Fixed typos in German README.md. #1648 by Juri
π Docs: Japanese documentation: Update README.ja.md with removal of Thin. #1629 by Ryuichi KAWAMATA
π Docs: English documentation: Various minor fixes to README.md. #1663 by Yanis ZafirΓ³pulos
π Docs: English documentation: Document when
dump_errors
is enabled. Fixes #1664 #1665 by Patrik Ragnarssonπ Docs: Brazilian Portuguese documentation: Update README.pt-br.md with translation fixes. #1668 by Vitor Oliveira
CI
β Use latest JRuby 9.2.16.0 on CI. #1682 by Olle Jonsson
π· Switch CI from travis to GitHub Actions. #1691 by namusyaka
Skip the Slack action if
secrets.SLACK_WEBHOOK
is not set. #1705 by Robin Wallinπ· Small CI improvements. #1703 by Robin Wallin
β¬οΈ Drop auto-generated boilerplate comments from CI configuration file. #1728 by Olle Jonsson
sinatra-contrib
- Do not raise when key is an enumerable. #1619 by Ulysse Buonomo
Rack protection
Previous changes from v2.1.0
-
π Fix additional Ruby 2.7 keyword warnings #1586 by Stefan Sundin
β¬οΈ Drop Ruby 2.2 support #1455 by Eloy PΓ©rez
β Add Rack::Protection::ReferrerPolicy #1291 by Stefan Sundin
Add
default_content_type
setting. Fixes #1238 #1239 by Mike Pastoreπ Allow
set :<engine>
in sinatra-namespace #1255 by Christian HΓΆppnerπ Use prepend instead of include for helpers. Fixes #1213 #1214 by Mike Pastore
π Fix issue with passed routes and provides Fixes #1095 #1606 by Mike Pastore, Jordan Owens
β Add QuietLogger that excludes pathes from Rack::CommonLogger 1250 by Christoph Wagner
β‘οΈ Sinatra::Contrib dependency updates. Fixes #1207 #1411 by Mike Pastore
π Allow CSP to fallback to default-src. Fixes #1484 #1490 by Jordan Owens
Replace
origin_whitelist
withpermitted_origins
. Closes #1620 #1625 by rhymesπ Use Rainbows instead of thin for async/stream features. Closes #1624 #1627 by Ryuichi KAWAMATA
Enable EscapedParams if passed via settings. Closes #1615 #1632 by Anders BΓ€lter
π Support for parameters in mime types. Fixes #1141 by John Hope
π Handle null byte when serving static files #1574 by Kush Fanikiso
π Improve development support and documentation and source code by Olle Jonsson, Pierre-Adrien Buisson, Shota Iguchi