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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc10a90443e23e0efa1487b60109eaa6f321cf45
4
- data.tar.gz: 7980cd1b25bb89a4b6b1d639301a1a980e39c861
3
+ metadata.gz: 7a20fd376758062148a3889f9f705e388c03e7f0
4
+ data.tar.gz: 20e4347e487bedfa42d4fac9844ef13582eb88a3
5
5
  SHA512:
6
- metadata.gz: 903966c0745225c203815089865940698aacfb3ba1fad916b0ea7a252d4010e806ba3f50a26ef926f831eb978a3dd8e2c74dec981355a280a2a2e9d3b12000d1
7
- data.tar.gz: edd1dbedac82f04e8876937d2377ffac6dc5c5789bb5405ff06f6e043533a5f53742515c0d1429075d1a7dffdd393f64aee287d305f13f486f0f7bfdf6652429
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 style="width: 302px; height: 352px;">
38
- <div style="width: 302px; height: 352px; position: relative;">
39
- <div style="width: 302px; height: 352px; position: absolute;">
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:352px; border-style: none;">
43
+ style="width: 302px; height:422px; border-style: none;">
44
44
  </iframe>
45
45
  </div>
46
- <div style="width: 250px; height: 80px; position: absolute; border-style: none;
47
- bottom: 21px; left: 25px; margin: 0px; padding: 0px; right: 25px;">
48
- <textarea id="g-recaptcha-response" name="g-recaptcha-response"
49
- class="g-recaptcha-response"
50
- style="width: 250px; height: 80px; border: 1px solid #c1c1c1;
51
- margin: 0px; padding: 0px; resize: none;" value="">
52
- </textarea>
53
- </div>
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>
@@ -1,3 +1,3 @@
1
1
  module Recaptcha
2
- VERSION = "3.3.0".freeze
2
+ VERSION = "3.4.0".freeze
3
3
  end
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.3.0
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-07-03 00:00:00.000000000 Z
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.4.5.1
189
+ rubygems_version: 2.5.1
190
190
  signing_key:
191
191
  specification_version: 4
192
192
  summary: Helpers for the reCAPTCHA API