roda-unpoly 0.2.1 → 0.2.2
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 +3 -3
- 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: 7a60021308b32538bbfed6a2722b1fdacf294369
|
4
|
+
data.tar.gz: 920ed9b37dfa7b6aaa8d4cd2e558e9b5d2c43028
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fcb7b908b88733a3e9281bc2b8f9e36fa6af6c1202f0c292de3b83313c3981f4eb88721b92b76b1066e3b0c27df9697fa8c2558050ae99b2dab72b4b7c85266
|
7
|
+
data.tar.gz: 78903a9203b9edcfde50c3a4981a8939ddbcf8f63572aa9200c79f029b685602077fdf0569c3dc030f8b6632ecf4630a9f06182fc2bc765e1da27e9a974c4f57
|
data/lib/roda/plugins/unpoly.rb
CHANGED
@@ -20,7 +20,7 @@ class Roda
|
|
20
20
|
|
21
21
|
# Determine if this is an Unpoly request.
|
22
22
|
def unpoly?
|
23
|
-
|
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("
|
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("
|
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.
|
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-
|
11
|
+
date: 2017-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: roda
|