All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Modernize the gem setup #5
- Make Allow middleware thread-safe without duping (85x faster!) #6
- Return 404 HEAD response by default (if
public/404.html
is present in Rails apps, it is rendered instead) #7 - Automatically reload allowed routes in Rails apps when routes change (in development mode)
- Use Standard styles
- Add config options for
:content
,:content_type
, and:status
. If:content
is nil (the default), no headers will be returned. Otherwise, acontent-type
header will be added. If:content_type
is nil (the default),"text/plain"
will be used.
- Allowed routes now require a leading slash (i.e., "/") #9
- Drop support for the
:message
config option (use:content
instead) - Drop support for allowing routes as symbols
- Require Ruby 2.7
- Make allow middleware thread-safe (61a3b50)
- Recognize root paths #3
- Initial release