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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/roda/plugins/unpoly.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2851514cb992b5c57576513afac1309557eb6127
4
- data.tar.gz: 7c25677023ad826e5d3ee7263d162429c10c211d
3
+ metadata.gz: 556b254e8e1d2478193d235debd1774633913f56
4
+ data.tar.gz: 6f7bda088259a8d8d90b99296ba20eab1f0bad7a
5
5
  SHA512:
6
- metadata.gz: 7a07c1bfba4d348e9126cc5e4e967ce3209af6ba685d1b0a99e0e7737085f7224d7db6163495271245f9ff8bcf7b3663d4e2215ae19b306f693f63cf17e58ecc
7
- data.tar.gz: 294899218a907c5f7d7c422302917d13da65162fd1442eebdbf3126b384e6b6b4fa1f9e56a72c5375d4dd91b6721435d0e348ecd5e780a09f3b9ab6d990133b1
6
+ metadata.gz: e672f3eb2c1274878c6afe736676b4d88bcadea9dde20948d500728626bcba85becc6934ab4de8080dfead4dd6fc277eefe7107fa137879997a112a986c6c07e
7
+ data.tar.gz: 941b2b7889fea5eb3c597eca987b2b62357d9f816de7e8d3a3b38dd848b5c697f2298a7f17804741defaadf88cc0411b229f1f2610af3a301359ca69ab065aca
@@ -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.0
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-03-06 00:00:00.000000000 Z
11
+ date: 2017-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: roda