recaptcha 5.1.1 → 5.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/recaptcha/helpers.rb +2 -2
- 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: 94a9b4a77081e448fdd8183dbbbbfd2dd7cf797508e84ee2e37830a9398fd6d1
|
4
|
+
data.tar.gz: 3761a642f1b421fd554303de7bab636bc69296df1f62c1c76fe987ecc617971f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07d9a1f2fff0d745a59eb0e28d23879a22203037971ed1d3311b39bccf1b34f8120ab58a2cd7e05fabd7037ab2ad0e3d5882f3335d103c9f27145026deef19a6
|
7
|
+
data.tar.gz: 2b2b799c18f2dd81346213d74c1d62729e241de41ab2f19c2b3ec04d57534f8adb5fd4922d7a219d0f8c916e63a842d0802ba4364f84d7388de7d4736ec90e46
|
data/lib/recaptcha/helpers.rb
CHANGED
@@ -283,13 +283,13 @@ module Recaptcha
|
|
283
283
|
# Returns a camelized string that is safe for use in a JavaScript variable/function name.
|
284
284
|
# sanitize_action_for_js('my/action') => 'MyAction'
|
285
285
|
private_class_method def self.sanitize_action_for_js(action)
|
286
|
-
action.to_s.gsub(/\W/, '_').
|
286
|
+
action.to_s.gsub(/\W/, '_').split(/\/|_/).map(&:capitalize).join
|
287
287
|
end
|
288
288
|
|
289
289
|
# Returns a dasherized string that is safe for use as an HTML ID
|
290
290
|
# dasherize_action('my/action') => 'my-action'
|
291
291
|
private_class_method def self.dasherize_action(action)
|
292
|
-
action.to_s.gsub(/\W/, '-').
|
292
|
+
action.to_s.gsub(/\W/, '-').tr('_', '-')
|
293
293
|
end
|
294
294
|
|
295
295
|
private_class_method def self.hash_to_query(hash)
|
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.2.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: 2019-10-
|
11
|
+
date: 2019-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|