Releases: soveran/cuba
Releases · soveran/cuba
Fix compatibility with Rack 3
Caching regular expressions
This release includes a bump in performance due to the way regular expressions are handled internally. For more information, check this issue.
Rack 2!
Syntactic sugar for matching all HTTP methods
This release adds matchers for the HTTP Verbs patch
, head
, options
, link
, unlink
and trace
. Previously, only get
, post
, put
and delete
were supported, and in order to match other methods you had to query the req
object.
Prior to this release, this is how you could match an OPTIONS
request:
on req.options? do
...
end
And now you can use the options
matcher:
on options do
...
end
Functionally equivalent, but easier on the eyes :-)
Thanks to @firoxer for the idea and the changeset.