recaptcha 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +4 -3
- data/lib/recaptcha/verify.rb +2 -2
- data/lib/recaptcha/version.rb +1 -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: 29c3f75ba10692addbbd19f1bd12cae4c454a3f6
|
|
4
|
+
data.tar.gz: 969b301fed7facba2b81ce74b3b81256e632716a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 549b6852c1e18e2425b9e76a7967012a9666f7f884f8f47ce67da39a654ebf066940b81ff2a85d590f71c60516d6dce452e8a627d500c73c025103be79243428
|
|
7
|
+
data.tar.gz: 672ba630cebbf60f9f62eb914a5085a8fa1295e1922dfdbdfddd87365de1441f3c99eb8f485995658df2997860215b12b4fe56eea5426d44b77f3803ffbc4e3f
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -19,7 +19,7 @@ which throws an error on failiure.
|
|
|
19
19
|
gem "recaptcha", require: "recaptcha/rails"
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
Keep keys out of the code base with environment variables.<br/>
|
|
22
|
+
Keep keys out of the code base with environment variables.<br/>
|
|
23
23
|
Set in production and locally use [dotenv](https://github.com/bkeepers/dotenv), make sure to add it above recaptcha.
|
|
24
24
|
|
|
25
25
|
Otherwise see [Alternative API key setup](#alternative-api-key-setup).
|
|
@@ -29,7 +29,7 @@ export RECAPTCHA_PUBLIC_KEY = '6Lc6BAAAAAAAAChqRbQZcn_yyyyyyyyyyyyyyyyy'
|
|
|
29
29
|
export RECAPTCHA_PRIVATE_KEY = '6Lc6BAAAAAAAAKN3DRm6VA_xxxxxxxxxxxxxxxxx'
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
Add `recaptcha_tags` to the forms you want to protect.
|
|
32
|
+
Add `recaptcha_tags` to the forms you want to protect.
|
|
33
33
|
|
|
34
34
|
```Erb
|
|
35
35
|
<%= form_for @foo do |f| %>
|
|
@@ -72,7 +72,7 @@ Some of the options available:
|
|
|
72
72
|
| :ajax | Render the dynamic AJAX captcha per the API. (default `false`)|
|
|
73
73
|
| :public_key | Override public API key |
|
|
74
74
|
| :error | Override the error code returned from the reCAPTCHA API (default `nil`)|
|
|
75
|
-
| :stoken | Include
|
|
75
|
+
| :stoken | Include security token to enable the use of any domain without registration with reCAPTCHA, `stoken expired` will be raised when the system clock is out of sync (default `true`)|
|
|
76
76
|
| :size | Specify a size (default `nil`)|
|
|
77
77
|
|
|
78
78
|
You can also override the html attributes for the sizes of the generated `textarea` and `iframe`
|
|
@@ -161,3 +161,4 @@ verify_recaptcha private_key: '6Lc6BAAAAAAAAKN3DRm6VA_xxxxxxxxxxxxxxxxx'
|
|
|
161
161
|
## Misc
|
|
162
162
|
- Check out the [wiki](https://github.com/ambethia/recaptcha/wiki) and leave whatever you found valuable there.
|
|
163
163
|
- [Add multiple widgets to the same page](https://github.com/ambethia/recaptcha/wiki/Add-multiple-widgets-to-the-same-page)
|
|
164
|
+
- [Use Recaptcha with Devise](https://github.com/plataformatec/devise/wiki/How-To:-Use-Recaptcha-with-Devise)
|
data/lib/recaptcha/verify.rb
CHANGED
|
@@ -35,7 +35,7 @@ module Recaptcha
|
|
|
35
35
|
attribute,
|
|
36
36
|
options[:message],
|
|
37
37
|
"recaptcha.errors.verification_failed",
|
|
38
|
-
"
|
|
38
|
+
"reCAPTCHA verification failed, please try again."
|
|
39
39
|
)
|
|
40
40
|
false
|
|
41
41
|
end
|
|
@@ -46,7 +46,7 @@ module Recaptcha
|
|
|
46
46
|
attribute,
|
|
47
47
|
options[:message],
|
|
48
48
|
"recaptcha.errors.recaptcha_unreachable",
|
|
49
|
-
"Oops, we failed to validate your
|
|
49
|
+
"Oops, we failed to validate your reCAPTCHA response. Please try again."
|
|
50
50
|
)
|
|
51
51
|
false
|
|
52
52
|
else
|
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: 1.1.
|
|
4
|
+
version: 1.1.1
|
|
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-03-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|