recaptcha 4.7.0 → 4.8.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/README.md +15 -12
- data/lib/recaptcha/client_helper.rb +1 -1
- data/lib/recaptcha/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c434e585eb9173141c68b0d58ef1768f94b022ae1cdd36b8e05c3c492ce10fcf
|
|
4
|
+
data.tar.gz: 7dd6cf798980cfadfede4bc86e0a5500573ba04e5123f445e9109f9fcdc96ef1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e5f40f9c46f92729779145ec5a85fd6ee1def8b2a9bab652f8064012ac41d4068fd60733f8bf7ae20189d27dfefdb1b0f378dbd8ee1ba917f3e3db398e0ff89a
|
|
7
|
+
data.tar.gz: 82e4fdcfee5d2d306419c7c82fffe3c42f7673b28ed584cd19f61c174668fd3c6d54dae528ae988ba93856aa086e88a3f1d56693130119182ad005a0a18d7e06
|
data/README.md
CHANGED
|
@@ -64,18 +64,21 @@ See [sinatra demo](/demo/sinatra) for details.
|
|
|
64
64
|
|
|
65
65
|
Some of the options available:
|
|
66
66
|
|
|
67
|
-
| Option
|
|
68
|
-
|
|
69
|
-
| :noscript
|
|
70
|
-
| :theme
|
|
71
|
-
| :ajax
|
|
72
|
-
| :site_key
|
|
73
|
-
| :error
|
|
74
|
-
| :size
|
|
75
|
-
| :hl
|
|
76
|
-
| :nonce
|
|
77
|
-
| :id
|
|
78
|
-
| :script
|
|
67
|
+
| Option | Description |
|
|
68
|
+
|-------------------|-------------|
|
|
69
|
+
| :noscript | Include <noscript> content (default `true`)|
|
|
70
|
+
| :theme | Specify the theme to be used per the API. Available options: `dark` and `light`. (default `light`)|
|
|
71
|
+
| :ajax | Render the dynamic AJAX captcha per the API. (default `false`)|
|
|
72
|
+
| :site_key | Override site API key |
|
|
73
|
+
| :error | Override the error code returned from the reCAPTCHA API (default `nil`)|
|
|
74
|
+
| :size | Specify a size (default `nil`)|
|
|
75
|
+
| :hl | Optional. Forces the widget to render in a specific language. Auto-detects the user's language if unspecified. (See [language codes](https://developers.google.com/recaptcha/docs/language)) |
|
|
76
|
+
| :nonce | Optional. Sets nonce attribute for script. Can be generated via `SecureRandom.base64(32)`. (default `nil`)|
|
|
77
|
+
| :id | Specify an html id attribute (default `nil`)|
|
|
78
|
+
| :script | If you do not need to add a script tag by helper you can set the option to false. It's necessary when you add a script tag manualy (default `true`)|
|
|
79
|
+
| :callback | Optional. Name of success callback function, executed when the user submits a successful response |
|
|
80
|
+
| :expired_callback | Optional. Name of expiration callback function, executed when the reCAPTCHA response expires and the user needs to re-verify. |
|
|
81
|
+
| :error_callback | Optional. Name of error callback function, executed when reCAPTCHA encounters an error (e.g. network connectivity) |
|
|
79
82
|
|
|
80
83
|
You can also override the html attributes for the sizes of the generated `textarea` and `iframe`
|
|
81
84
|
elements, if CSS isn't your thing. Inspect the source of `recaptcha_tags` to see these options.
|
|
@@ -71,7 +71,7 @@ module Recaptcha
|
|
|
71
71
|
nonce = options.delete(:nonce)
|
|
72
72
|
skip_script = (options.delete(:script) == false)
|
|
73
73
|
data_attributes = {}
|
|
74
|
-
[:badge, :theme, :type, :callback, :expired_callback, :size, :tabindex].each do |data_attribute|
|
|
74
|
+
[:badge, :theme, :type, :callback, :expired_callback, :error_callback, :size, :tabindex].each do |data_attribute|
|
|
75
75
|
value = options.delete(data_attribute)
|
|
76
76
|
data_attributes["data-#{data_attribute.to_s.tr('_', '-')}"] = value if value
|
|
77
77
|
end
|
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: 4.
|
|
4
|
+
version: 4.8.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: 2018-
|
|
11
|
+
date: 2018-04-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|