recaptcha 4.11.0 → 4.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/recaptcha/client_helper.rb +5 -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: 5fbc77769a76c44c16ea01074613dfa48011f908c52d382b383df1079c961d80
|
4
|
+
data.tar.gz: 1b6551381ca327ea5e824948ba4f286f47b5fc1ce644b5f42bde8a2b9ffd0264
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5cbe1e421fcf0dc4fb7bd03b4f0a96915ac5441b1d208c989b52513b4a7d646713fff3af65d7eaaef2d230ccc295d802257ada95cd6c79064657fb9b97e86be
|
7
|
+
data.tar.gz: f7a1348743e0eb19843a11ab5fa73cc282ced62d1dc43a45a4aa326f6dfd7a5cb1b558fc5fe973d6e7372dfa5ddd637c8afe8ec26899056143d6e04c4163e500
|
@@ -78,8 +78,12 @@ module Recaptcha
|
|
78
78
|
hl = options.delete(:hl).to_s
|
79
79
|
nonce = options.delete(:nonce)
|
80
80
|
skip_script = (options.delete(:script) == false)
|
81
|
+
ui = options.delete(:ui)
|
82
|
+
|
83
|
+
data_attribute_keys = [:badge, :theme, :type, :callback, :expired_callback, :error_callback, :size]
|
84
|
+
data_attribute_keys << :tabindex unless ui == :button
|
81
85
|
data_attributes = {}
|
82
|
-
|
86
|
+
data_attribute_keys.each do |data_attribute|
|
83
87
|
value = options.delete(data_attribute)
|
84
88
|
data_attributes["data-#{data_attribute.to_s.tr('_', '-')}"] = value if value
|
85
89
|
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.11.
|
4
|
+
version: 4.11.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: 2018-08-
|
11
|
+
date: 2018-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|