recaptcha 3.3.0 → 3.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/recaptcha/client_helper.rb +13 -12
- data/lib/recaptcha/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a20fd376758062148a3889f9f705e388c03e7f0
|
4
|
+
data.tar.gz: 20e4347e487bedfa42d4fac9844ef13582eb88a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e878f44d1a2cd1e83e68ff970a45bda7132aaf6a693df821919bbd1a27da96919b4f90d29687f947b0ab89251ef771bc4638666545884555dee8ecad6e875f91
|
7
|
+
data.tar.gz: ababd2e302f90d8f52f860a9cd3b83e71a00fac62d0d6f431a4e1a2993d9e74c297ce99e19c1fd255d441b922dad21840ba1c0ca817b92b5765d53fef1709679
|
data/README.md
CHANGED
@@ -97,6 +97,7 @@ Some of the options available:
|
|
97
97
|
| :timeout | The number of seconds to wait for reCAPTCHA servers before give up. (default `3`)
|
98
98
|
| :response | Custom response parameter. (default: params['g-recaptcha-response'])
|
99
99
|
| :hostname | Expected hostname or a callable that validates the hostname, see [domain validation](https://developers.google.com/recaptcha/docs/domain_validation) and [hostname](https://developers.google.com/recaptcha/docs/verify#api-response) docs. (default: `nil`, but can be changed by setting `config.hostname`)
|
100
|
+
| :env | Current environment. The request to verify will be skipped if the environment is specified in configuration under `skip_verify_env`
|
100
101
|
|
101
102
|
## I18n support
|
102
103
|
reCAPTCHA passes two types of error explanation to a linked model. It will use the I18n gem
|
@@ -34,23 +34,24 @@ module Recaptcha
|
|
34
34
|
if options[:noscript] != false
|
35
35
|
html << <<-HTML
|
36
36
|
<noscript>
|
37
|
-
<div
|
38
|
-
<div style="width: 302px; height:
|
39
|
-
<div style="width: 302px; height:
|
37
|
+
<div>
|
38
|
+
<div style="width: 302px; height: 422px; position: relative;">
|
39
|
+
<div style="width: 302px; height: 422px; position: absolute;">
|
40
40
|
<iframe
|
41
41
|
src="#{fallback_uri}"
|
42
42
|
frameborder="0" scrolling="no"
|
43
|
-
style="width: 302px; height:
|
43
|
+
style="width: 302px; height:422px; border-style: none;">
|
44
44
|
</iframe>
|
45
45
|
</div>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
46
|
+
</div>
|
47
|
+
<div style="width: 300px; height: 60px; border-style: none;
|
48
|
+
bottom: 12px; left: 25px; margin: 0px; padding: 0px; right: 25px;
|
49
|
+
background: #f9f9f9; border: 1px solid #c1c1c1; border-radius: 3px;">
|
50
|
+
<textarea id="g-recaptcha-response" name="g-recaptcha-response"
|
51
|
+
class="g-recaptcha-response"
|
52
|
+
style="width: 250px; height: 40px; border: 1px solid #c1c1c1;
|
53
|
+
margin: 10px 25px; padding: 0px; resize: none;" value="">
|
54
|
+
</textarea>
|
54
55
|
</div>
|
55
56
|
</div>
|
56
57
|
</noscript>
|
data/lib/recaptcha/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: recaptcha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason L Perry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -186,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
186
186
|
version: '0'
|
187
187
|
requirements: []
|
188
188
|
rubyforge_project:
|
189
|
-
rubygems_version: 2.
|
189
|
+
rubygems_version: 2.5.1
|
190
190
|
signing_key:
|
191
191
|
specification_version: 4
|
192
192
|
summary: Helpers for the reCAPTCHA API
|