Skip to content

Commit

Permalink
Release
Browse files Browse the repository at this point in the history
  • Loading branch information
soveran committed Jun 9, 2016
1 parent 1e7745a commit 021e8b6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
3.7.0

* Add syntactic sugar for matching all HTTP methods.

3.6.0

* Set Strict-Transport-Security to a better default
* Set Strict-Transport-Security to a better default.

3.5.0

Expand Down
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -395,12 +395,13 @@ among your meta tags. Here's an example that assumes you are using
HTTP Verbs
----------

There are four matchers defined for HTTP Verbs: `get`, `post`, `put` and
`delete`. But the world doesn't end there, does it? As you have the whole
request available via the `req` object, you can query it with helper methods
like `req.options?` or `req.head?`, or you can even go to a lower level
and inspect the environment via the `env` object, and check for example if
`env["REQUEST_METHOD"]` equals the obscure verb `PATCH`.
There are matchers defined for the following HTTP Verbs: `get`,
`post`, `put`, `patch`, `delete`, `head`, `options`, `link`, `unlink`
and `trace`. As you have the whole request available via the `req`
object, you can also query it with helper methods like `req.options?`
or `req.head?`, or you can even go to a lower level and inspect the
environment via the `env` object, and check for example if
`env["REQUEST_METHOD"]` equals the verb `PATCH`.

What follows is an example of different ways of saying the same thing:

Expand Down
2 changes: 1 addition & 1 deletion cuba.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = "cuba"
s.version = "3.6.0"
s.version = "3.7.0"
s.summary = "Microframework for web applications."
s.description = "Cuba is a microframework for web applications."
s.authors = ["Michel Martens"]
Expand Down

0 comments on commit 021e8b6

Please sign in to comment.