Skip to content

Releases: soveran/cuba

Fix compatibility with Rack 3

Choose a tag to compare

@soveran soveran released this 14 Sep 12:33
4.0.2

Release

Caching regular expressions

Choose a tag to compare

@soveran soveran released this 21 Nov 16:17

This release includes a bump in performance due to the way regular expressions are handled internally. For more information, check this issue.

Rack 2!

Choose a tag to compare

@soveran soveran released this 01 Jul 18:14

This release has no new features, but it relaxes the gemspec so that Cuba can be used with Rack 2.

Syntactic sugar for matching all HTTP methods

Choose a tag to compare

@soveran soveran released this 09 Jun 07:38

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.

3.6.0

Choose a tag to compare

@soveran soveran released this 19 Mar 17:38
  • Set Strict-Transport-Security to a better default (See #73).

3.5.0

Choose a tag to compare

@soveran soveran released this 15 Jan 15:12
  • Add not_found hook for customizing the 404 error.
  • Remove undocumented header matcher.
  • Depend explicitly on Rack 1.6.x.
  • Experimental feature: param now accepts a second parameter
    with a default value.