roda-unpoly 0.2.4 → 0.3.0
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 +7 -1
- 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: a5df7078e07d240b65ffbb5381e68546a884ee6b
|
4
|
+
data.tar.gz: bed8ccfde1acb5f461898117d2844e0d652d93f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af2aca067de6df3eb85e80c066b99a645dadfa85af173e1197957c8223f55eeeab57fcd26300d6c02068bb86769834311c0ce808b272a9a9f802cfe53470ad31
|
7
|
+
data.tar.gz: e5bfadde3b72ade0784dad68b54f2fa56dcd7292510cc3467513c6b6e0439e39104cb3fb7c3a8f328a8ed00dc602f3f0c80c8c7ad0360bf4dee85ebb11992e1a
|
data/lib/roda/plugins/unpoly.rb
CHANGED
@@ -55,7 +55,13 @@ class Roda
|
|
55
55
|
|
56
56
|
# Determine if this is a validate request.
|
57
57
|
def validate?
|
58
|
-
|
58
|
+
validate_name.to_s.strip != ""
|
59
|
+
end
|
60
|
+
|
61
|
+
# The name attribute of the form field that triggered
|
62
|
+
# the validation.
|
63
|
+
def validate_name
|
64
|
+
get_header("HTTP_X_UP_VALIDATE")
|
59
65
|
end
|
60
66
|
end
|
61
67
|
|
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.
|
4
|
+
version: 0.3.0
|
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-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: roda
|