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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de76d9680b3074417f5f689e1007eecc4650ea5039ae6801dddd18cb65f8caa4
4
- data.tar.gz: 3ad04f860f33b643c63d77f3e8fb3a815680b68e889d48e7cf129eb9b8923d46
3
+ metadata.gz: 94a9b4a77081e448fdd8183dbbbbfd2dd7cf797508e84ee2e37830a9398fd6d1
4
+ data.tar.gz: 3761a642f1b421fd554303de7bab636bc69296df1f62c1c76fe987ecc617971f
5
5
  SHA512:
6
- metadata.gz: 1eab24203a21f9f260b7f617377499291077e56e373219202ce6939f4ee93a9bcc0908107258979cb02cfdbda6aabb2e308977c0c8235d3d9f0c4b0bb0f5a7a2
7
- data.tar.gz: 6898d78b6f1962fc863f992f55ceb7ba7bb19fb75fb34bf591c4931ecce96c06bc961943be8ba92aca534ad111f8f35c9e4330d25adc9566934b3a9750ec8165
6
+ metadata.gz: 07d9a1f2fff0d745a59eb0e28d23879a22203037971ed1d3311b39bccf1b34f8120ab58a2cd7e05fabd7037ab2ad0e3d5882f3335d103c9f27145026deef19a6
7
+ data.tar.gz: 2b2b799c18f2dd81346213d74c1d62729e241de41ab2f19c2b3ec04d57534f8adb5fd4922d7a219d0f8c916e63a842d0802ba4364f84d7388de7d4736ec90e46
@@ -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/, '_').camelize
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/, '-').dasherize
292
+ action.to_s.gsub(/\W/, '-').tr('_', '-')
293
293
  end
294
294
 
295
295
  private_class_method def self.hash_to_query(hash)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Recaptcha
4
- VERSION = '5.1.1'
4
+ VERSION = '5.2.0'
5
5
  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: 5.1.1
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-01 00:00:00.000000000 Z
11
+ date: 2019-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json