roda-unpoly 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/roda/plugins/unpoly.rb +2 -2
- 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: 556b254e8e1d2478193d235debd1774633913f56
|
4
|
+
data.tar.gz: 6f7bda088259a8d8d90b99296ba20eab1f0bad7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e672f3eb2c1274878c6afe736676b4d88bcadea9dde20948d500728626bcba85becc6934ab4de8080dfead4dd6fc277eefe7107fa137879997a112a986c6c07e
|
7
|
+
data.tar.gz: 941b2b7889fea5eb3c597eca987b2b62357d9f816de7e8d3a3b38dd848b5c697f2298a7f17804741defaadf88cc0411b229f1f2610af3a301359ca69ab065aca
|
data/lib/roda/plugins/unpoly.rb
CHANGED
@@ -72,9 +72,9 @@ class Roda
|
|
72
72
|
response.headers["X-Up-Method"] = request_method
|
73
73
|
|
74
74
|
if !get? && !unpoly?
|
75
|
-
Rack::Utils.set_cookie_header!(response.headers, "_up_method", request_method)
|
75
|
+
Rack::Utils.set_cookie_header!(response.headers, "_up_method", { value: request_method, path: "/" })
|
76
76
|
else
|
77
|
-
Rack::Utils.delete_cookie_header!(response.headers, "_up_method")
|
77
|
+
Rack::Utils.delete_cookie_header!(response.headers, "_up_method", { path: "/" })
|
78
78
|
end
|
79
79
|
end
|
80
80
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roda-unpoly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Daniels
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: roda
|