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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/roda/plugins/unpoly.rb +7 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bce94d931d8a8e76d0602398c733267420a4cde2
4
- data.tar.gz: f81a3fc22ae33e67c74fe5672ba0eb789871b3dd
3
+ metadata.gz: a5df7078e07d240b65ffbb5381e68546a884ee6b
4
+ data.tar.gz: bed8ccfde1acb5f461898117d2844e0d652d93f0
5
5
  SHA512:
6
- metadata.gz: 660e36deab1a846b8c91b8f9b5abcbc1d242c1fdc048d838e41292e29904aca2f9eeadc93d3a025f3178b8c308f8a6f2feac7e1dbaf41ea84fce7dab940ba73c
7
- data.tar.gz: 5ca9c1db059ddbc477a3bf43b987eed924576ec734399965a87604ab9cdcad75870d9262ad162cf8dbbfcbd01f3bd11920ea8be58e58d6e3b56fef13cddd3e54
6
+ metadata.gz: af2aca067de6df3eb85e80c066b99a645dadfa85af173e1197957c8223f55eeeab57fcd26300d6c02068bb86769834311c0ce808b272a9a9f802cfe53470ad31
7
+ data.tar.gz: e5bfadde3b72ade0784dad68b54f2fa56dcd7292510cc3467513c6b6e0439e39104cb3fb7c3a8f328a8ed00dc602f3f0c80c8c7ad0360bf4dee85ebb11992e1a
@@ -55,7 +55,13 @@ class Roda
55
55
 
56
56
  # Determine if this is a validate request.
57
57
  def validate?
58
- get_header("HTTP_X_UP_VALIDATE").to_s.strip != ""
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.2.4
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-08-16 00:00:00.000000000 Z
11
+ date: 2017-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: roda