Skip to content

Commit 021e8b6

Browse files
committed
Release
1 parent 1e7745a commit 021e8b6

3 files changed

Lines changed: 13 additions & 8 deletions

File tree

CHANGELOG

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
3.7.0
2+
3+
* Add syntactic sugar for matching all HTTP methods.
4+
15
3.6.0
26

3-
* Set Strict-Transport-Security to a better default
7+
* Set Strict-Transport-Security to a better default.
48

59
3.5.0
610

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -395,12 +395,13 @@ among your meta tags. Here's an example that assumes you are using
395395
HTTP Verbs
396396
----------
397397

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

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

cuba.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |s|
22
s.name = "cuba"
3-
s.version = "3.6.0"
3+
s.version = "3.7.0"
44
s.summary = "Microframework for web applications."
55
s.description = "Cuba is a microframework for web applications."
66
s.authors = ["Michel Martens"]

0 commit comments

Comments
 (0)