Cuba Versions Save

Rum based microframework for web development.

4.0.2

8 months ago

3.9.0

6 years ago

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

3.8.0

7 years ago

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

3.7.0

7 years ago

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

8 years ago

3.5.0

8 years ago
  • 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.