recaptcha 5.12.2 → 5.12.3

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: 6a8e985580ee7e6829b2b213403c7a7062167dac7f5184800b6585b0897cdaab
4
- data.tar.gz: 9b7dd59495998217cdc96ec7436163f3faec7fccdc5c60ebd21611ccec1f9ad5
3
+ metadata.gz: 4052ca42cf536d84329b553a058de58f2c3579e0ac2ad1e08ba42fed8ce974b4
4
+ data.tar.gz: 90c873c15d0772690ca3da6cf2588669a05c159e4fbaa1d6bdf5d809ad05dfd0
5
5
  SHA512:
6
- metadata.gz: ce899e801c0679cfa3e4074826ef349d6142914fafbef12bfd69467811b3e7d4855638f53f13f469224f5500911f4481240c54d5f394bc767337a1a3f747b778
7
- data.tar.gz: d4c7626d90d7423d446bb03178476c30e78db7a3834443f70bb395f3fe8380b7e5ae70cb8ab5a2931e9f82e1a0b5053ac59f1dad8ac6244f55bc9138e089b86c
6
+ metadata.gz: 403d9de96d890bb3f75cfb83c5907f01944d8e88233248ec199fe014e04f7f1386c13cd867c9020a232cd5501faada986f6d3413d3a2369e5d38d9c56a0704b9
7
+ data.tar.gz: ce0d965054455acff094e60ccad808fbf836992666f9bd1233684b172e766440ba922a0f8d030803575b3a538945e3273d0ae237ce2527f9e0983b7b76671328
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## Next
2
2
 
3
+ ## 5.12.3
4
+ * Remove score fallback for enterprise
5
+ * Update enterprise tests to v1 assessment schema
6
+
3
7
  ## 5.12.2
4
8
  * Fix minimum score for enterprise
5
9
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Recaptcha
4
- VERSION = '5.12.2'
4
+ VERSION = '5.12.3'
5
5
  end
data/lib/recaptcha.rb CHANGED
@@ -77,7 +77,7 @@ module Recaptcha
77
77
  body['event']['userIpAddress'] = options[:remote_ip] if options.key?(:remote_ip)
78
78
 
79
79
  reply = api_verification_enterprise(query_params, body, project_id, timeout: options[:timeout])
80
- score = reply.dig('riskAnalysis', 'score') || reply['score']
80
+ score = reply.dig('riskAnalysis', 'score')
81
81
  token_properties = reply['tokenProperties']
82
82
  success = !token_properties.nil? &&
83
83
  token_properties['valid'].to_s == 'true' &&
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recaptcha
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.12.2
4
+ version: 5.12.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason L Perry
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2022-09-05 00:00:00.000000000 Z
@@ -163,7 +163,7 @@ licenses:
163
163
  - MIT
164
164
  metadata:
165
165
  source_code_uri: https://github.com/ambethia/recaptcha
166
- post_install_message:
166
+ post_install_message:
167
167
  rdoc_options: []
168
168
  require_paths:
169
169
  - lib
@@ -178,8 +178,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
178
  - !ruby/object:Gem::Version
179
179
  version: '0'
180
180
  requirements: []
181
- rubygems_version: 3.1.6
182
- signing_key:
181
+ rubygems_version: 3.3.3
182
+ signing_key:
183
183
  specification_version: 4
184
184
  summary: Helpers for the reCAPTCHA API
185
185
  test_files: []