cuba 3.5.0 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG +4 -0
- data/README.md +3 -1
- data/cuba.gemspec +1 -1
- data/lib/cuba/safe/secure_headers.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 42cd957e785c42b14bbfe58e527dacb30a01a6da
|
|
4
|
+
data.tar.gz: 9cea4d3fae0509433f694eb682429b5fef1e3224
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 84b6ac48a32e192b791840dfabf751293a1f11619f281c267dea76f94ec9be24e2ca0f67c555b8f2873e4e1958a616ff62d74185f8201d0cfe26122434afce8e
|
|
7
|
+
data.tar.gz: 61590ca736f30164a9f4546b21870e4bd3339f012c8484173cb4855c3115d0a7b896f92cc7e617031b975642bf09f0318305a1d0b784cac10bacdc5f209f3c4d
|
data/CHANGELOG
CHANGED
data/README.md
CHANGED
|
@@ -184,6 +184,8 @@ Cuba.define do
|
|
|
184
184
|
end
|
|
185
185
|
```
|
|
186
186
|
|
|
187
|
+
Note that once an `on` block matches, processing halts at the conclusion of that block.
|
|
188
|
+
|
|
187
189
|
Status codes
|
|
188
190
|
------------
|
|
189
191
|
|
|
@@ -466,7 +468,7 @@ In the second case, the substring `:id` gets replaced by `([^\\/]+)` and the
|
|
|
466
468
|
string becomes `"users/([^\\/]+)"` before performing the match, thus it reverts
|
|
467
469
|
to the first form we saw.
|
|
468
470
|
|
|
469
|
-
In the third case, the symbol
|
|
471
|
+
In the third case, the symbol--no matter what it says--gets replaced
|
|
470
472
|
by `"([^\\/]+)"`, and again we are in presence of case 1.
|
|
471
473
|
|
|
472
474
|
The fourth case, again, reverts to the basic matcher: it generates the string
|
data/cuba.gemspec
CHANGED
|
@@ -29,7 +29,7 @@ class Cuba
|
|
|
29
29
|
"X-Frame-Options" => "SAMEORIGIN",
|
|
30
30
|
"X-Permitted-Cross-Domain-Policies" => "none",
|
|
31
31
|
"X-XSS-Protection" => "1; mode=block",
|
|
32
|
-
"Strict-Transport-Security" => "max-age=
|
|
32
|
+
"Strict-Transport-Security" => "max-age=2628000"
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
def self.setup(app)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cuba
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michel Martens
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-03-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rack
|