This commit is contained in:
sdogruyol 2017-07-01 22:02:09 +03:00
parent eb3e83d590
commit 2720ab6e25
2 changed files with 11 additions and 2 deletions

View file

@ -1,4 +1,4 @@
# Next # 0.20.0 (01-07-2017)
- Make `Route` a `Struct`. - Make `Route` a `Struct`.
- Handlers are now completely customizable and you can specify your own handlers. - Handlers are now completely customizable and you can specify your own handlers.
@ -7,6 +7,15 @@
Kemal.config.handlers = [Kemal::InitHandler.new, YourHandler.new, Kemal::RouteHandler::INSTANCE] Kemal.config.handlers = [Kemal::InitHandler.new, YourHandler.new, Kemal::RouteHandler::INSTANCE]
``` ```
- Updated [Kilt](https://github.com/jeromegn/kilt) to v0.4.0.
You can also insert a handler into a specific position in the default / existing handlers.
```ruby
# This adds MyCustomHandler instance to 1 position. Be aware that the index starts from 0.
add_handler MyCustomHandler.new, 1
```
# 0.19.0 (09-05-2017) # 0.19.0 (09-05-2017)
- Return no body for head route fixes #323. (thanks @crisward) - Return no body for head route fixes #323. (thanks @crisward)

View file

@ -1,5 +1,5 @@
name: kemal name: kemal
version: 0.19.0 version: 0.20.0
dependencies: dependencies:
radix: radix: