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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8dbfe63b93f0fad52b2a691726c05a656630bc59
4
- data.tar.gz: 6d390f4273a38f8e2f88c927909a9eed36b6b29d
3
+ metadata.gz: 42cd957e785c42b14bbfe58e527dacb30a01a6da
4
+ data.tar.gz: 9cea4d3fae0509433f694eb682429b5fef1e3224
5
5
  SHA512:
6
- metadata.gz: f85d1c11cd06092a300765ec9a86fd8572aa768505f788d4675f57ecaddf8e7d3b925e58ef316bd6abe10eda5b071b4e8836fc03ada14c165bbe70b9e0f6ce95
7
- data.tar.gz: 1af18ce865a90bb8fba27d8d160d7cabb8f53e687c5d12d8a109b8518513a0bebdadff8f70474fa4095bfb02d37a865a3ba6c14fcbf4bbdddddb3ba102c1df53
6
+ metadata.gz: 84b6ac48a32e192b791840dfabf751293a1f11619f281c267dea76f94ec9be24e2ca0f67c555b8f2873e4e1958a616ff62d74185f8201d0cfe26122434afce8e
7
+ data.tar.gz: 61590ca736f30164a9f4546b21870e4bd3339f012c8484173cb4855c3115d0a7b896f92cc7e617031b975642bf09f0318305a1d0b784cac10bacdc5f209f3c4d
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ 3.6.0
2
+
3
+ * Set Strict-Transport-Security to a better default
4
+
1
5
  3.5.0
2
6
 
3
7
  * Add `not_found` hook for customizing the 404 error.
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 ––no matter what it says––gets replaced
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cuba"
3
- s.version = "3.5.0"
3
+ s.version = "3.6.0"
4
4
  s.summary = "Microframework for web applications."
5
5
  s.description = "Cuba is a microframework for web applications."
6
6
  s.authors = ["Michel Martens"]
@@ -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=631138519; includeSubdomains; preload"
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.5.0
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-01-15 00:00:00.000000000 Z
11
+ date: 2016-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack