recaptcha 4.7.0 → 4.8.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
  SHA256:
3
- metadata.gz: 89e73b4d5bdbe1aec048837d3d1dc11d81f18230812e9bc6c112361f629452e3
4
- data.tar.gz: e549c5fc22aec16de94dace0da38a9b72a225244ee44f5ef51f0b1556b228943
3
+ metadata.gz: c434e585eb9173141c68b0d58ef1768f94b022ae1cdd36b8e05c3c492ce10fcf
4
+ data.tar.gz: 7dd6cf798980cfadfede4bc86e0a5500573ba04e5123f445e9109f9fcdc96ef1
5
5
  SHA512:
6
- metadata.gz: 5eef36c932e5f1f3824e046d3a32b2d22f51542b680fa22a163c943b07f34b574eceb9b9b73edf8e4bcd15d01fc97f13eeebfe353a27dfa0bd1968babbb98b1e
7
- data.tar.gz: 3068c04af8220f5c2eebfa7b1d95757c927b9988b0923de931349303dcf7f569b5a8427357a993578dce30269a47992da529e0f796013f59fc00911bf283a8fc
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 | 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`)|
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
@@ -1,3 +1,3 @@
1
1
  module Recaptcha
2
- VERSION = "4.7.0".freeze
2
+ VERSION = "4.8.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: 4.7.0
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-03-29 00:00:00.000000000 Z
11
+ date: 2018-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json