roda-unpoly 0.2.1 → 0.2.2

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/roda/plugins/unpoly.rb +3 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 556b254e8e1d2478193d235debd1774633913f56
4
- data.tar.gz: 6f7bda088259a8d8d90b99296ba20eab1f0bad7a
3
+ metadata.gz: 7a60021308b32538bbfed6a2722b1fdacf294369
4
+ data.tar.gz: 920ed9b37dfa7b6aaa8d4cd2e558e9b5d2c43028
5
5
  SHA512:
6
- metadata.gz: e672f3eb2c1274878c6afe736676b4d88bcadea9dde20948d500728626bcba85becc6934ab4de8080dfead4dd6fc277eefe7107fa137879997a112a986c6c07e
7
- data.tar.gz: 941b2b7889fea5eb3c597eca987b2b62357d9f816de7e8d3a3b38dd848b5c697f2298a7f17804741defaadf88cc0411b229f1f2610af3a301359ca69ab065aca
6
+ metadata.gz: 9fcb7b908b88733a3e9281bc2b8f9e36fa6af6c1202f0c292de3b83313c3981f4eb88721b92b76b1066e3b0c27df9697fa8c2558050ae99b2dab72b4b7c85266
7
+ data.tar.gz: 78903a9203b9edcfde50c3a4981a8939ddbcf8f63572aa9200c79f029b685602077fdf0569c3dc030f8b6632ecf4630a9f06182fc2bc765e1da27e9a974c4f57
@@ -20,7 +20,7 @@ class Roda
20
20
 
21
21
  # Determine if this is an Unpoly request.
22
22
  def unpoly?
23
- get_header("X-Up-Target").to_s.strip != ""
23
+ target.to_s.strip != ""
24
24
  end
25
25
  alias up? unpoly?
26
26
 
@@ -45,7 +45,7 @@ class Roda
45
45
 
46
46
  # The actual target as requested by Unpoly.
47
47
  def target
48
- get_header("X-Up-Target")
48
+ get_header("HTTP_X_UP_TARGET")
49
49
  end
50
50
 
51
51
  # Set the page title.
@@ -55,7 +55,7 @@ class Roda
55
55
 
56
56
  # Determine if this is a validate request.
57
57
  def validate?
58
- get_header("X-Up-Validate").to_s.strip != ""
58
+ get_header("HTTP_X_UP_VALIDATE").to_s.strip != ""
59
59
  end
60
60
  end
61
61
 
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.1
4
+ version: 0.2.2
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-04-11 00:00:00.000000000 Z
11
+ date: 2017-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: roda