recaptcha 5.6.0 → 5.7.0
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 +7 -0
- data/README.md +19 -0
- data/lib/recaptcha/version.rb +1 -1
- data/rails/locales/fr.yml +5 -0
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ec76ff47d12ef3388c2a45d56850272fff3675c9f59619a09b55c918f70b5494
|
|
4
|
+
data.tar.gz: 697f0a4d41ffab63c6eb5b7d7b81c1f5ac2b1305f27bb84b5fccc421bcd38e2c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 51b3627583241aef9a99e2a3ed9c78091c87a92e87210749d38e9ccf0d418dbec455fd524d83210b8331be7064efac2be2308366b8288c574c53b84f6013333e
|
|
7
|
+
data.tar.gz: 8018c4668d7eef292e5908d609a7ebdd5cfbfb84b0c86a361dac36d3982cc075dc7e694c51639dd09eaf148cfd9536cecb12f6fa188ec72f87328e85976a4e22
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
|
|
1
2
|
# reCAPTCHA
|
|
2
3
|
[](https://badge.fury.io/rb/recaptcha)
|
|
3
4
|
|
|
@@ -12,6 +13,23 @@ views you can use the `recaptcha_tags` method to embed the needed javascript, an
|
|
|
12
13
|
in your controllers with `verify_recaptcha` or `verify_recaptcha!`, which raises an error on
|
|
13
14
|
failure.
|
|
14
15
|
|
|
16
|
+
|
|
17
|
+
# Table of Contents
|
|
18
|
+
1. [Obtaining a key](#obtaining-a-key)
|
|
19
|
+
2. [Rails Installation](#rails-installation)
|
|
20
|
+
3. [Sinatra / Rack / Ruby Installation](#sinatra--rack--ruby-installation)
|
|
21
|
+
4. [reCAPTCHA V2 API & Usage](#recaptcha-v2-api-and-usage)
|
|
22
|
+
- [`recaptcha_tags`](#recaptcha_tags)
|
|
23
|
+
- [`verify_recaptcha`](#verify_recaptcha)
|
|
24
|
+
- [`invisible_recaptcha_tags`](#invisible_recaptcha_tags)
|
|
25
|
+
5. [reCAPTCHA V3 API & Usage](#recaptcha-v3-api-and-usage)
|
|
26
|
+
- [`recaptcha_v3`](#recaptcha_v3)
|
|
27
|
+
- [`verify_recaptcha` (use with v3)](#verify_recaptcha-use-with-v3)
|
|
28
|
+
- [`recaptcha_reply`](#recaptcha_reply)
|
|
29
|
+
6. [I18n Support](#i18n-support)
|
|
30
|
+
7. [Testing](#testing)
|
|
31
|
+
8. [Alternative API Key Setup](#alternative-api-key-setup)
|
|
32
|
+
|
|
15
33
|
## Obtaining a key
|
|
16
34
|
|
|
17
35
|
Go to the [reCAPTCHA admin console](https://www.google.com/recaptcha/admin) to obtain a reCAPTCHA API key.
|
|
@@ -71,6 +89,7 @@ else
|
|
|
71
89
|
render 'new'
|
|
72
90
|
end
|
|
73
91
|
```
|
|
92
|
+
Please note that this setup uses [`reCAPTCHA_v2`](#recaptcha-v2-api-and-usage). For a `recaptcha_v3` use, please refer to [`reCAPTCHA_v3 setup`](#examples).
|
|
74
93
|
|
|
75
94
|
## Sinatra / Rack / Ruby installation
|
|
76
95
|
|
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: 5.
|
|
4
|
+
version: 5.7.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:
|
|
11
|
+
date: 2021-02-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|
|
@@ -155,6 +155,7 @@ files:
|
|
|
155
155
|
- lib/recaptcha/railtie.rb
|
|
156
156
|
- lib/recaptcha/version.rb
|
|
157
157
|
- rails/locales/en.yml
|
|
158
|
+
- rails/locales/fr.yml
|
|
158
159
|
homepage: http://github.com/ambethia/recaptcha
|
|
159
160
|
licenses:
|
|
160
161
|
- MIT
|
|
@@ -168,7 +169,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
168
169
|
requirements:
|
|
169
170
|
- - ">="
|
|
170
171
|
- !ruby/object:Gem::Version
|
|
171
|
-
version: 2.
|
|
172
|
+
version: 2.4.0
|
|
172
173
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
173
174
|
requirements:
|
|
174
175
|
- - ">="
|