reputable 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c8047e39b4f09d6580aeba68d04e3231c2774b9f0eac1d7c70591b7e45e11df
4
- data.tar.gz: 14aecba661b4bd57381f496274dfd0185cc7ef1e7332ab71d2ce56d623935cb8
3
+ metadata.gz: c5ea31e6c135265677697ac1411fb0d9308f6d4454f23a3d1558018eddfccb4a
4
+ data.tar.gz: 0aea9d057b70a2ca763f5e1f5e6b024d25d07d783feee0447bd311526a189574
5
5
  SHA512:
6
- metadata.gz: 34507a4124cca8739008ccf9bc1762226aeef05c994fb861be47bc08eb4e4b06dcad501082750cf56b6f9025b0e1d7596bc057da761bba23c94b583048096425
7
- data.tar.gz: 67d7c49193f2c2492d49cc34a0e5051f45db49ed98f7d62a7623fc32cfc753f481da5c6ba9a9fba71f624d68cab535334d409b7c74532c102ffd4f29f338e2ba
6
+ metadata.gz: f9621074b650d78f8ba44014f5df9880ee8431065f88a9cd6e3da467aef4885da7230851de5cfe316ef3d8162317bd43cba10fd943d87affbbb2ae11046901c9
7
+ data.tar.gz: 59c4953b9caaf151b3b8a97d057d90b9dab88bdfe71809460a588f35cc8ddc903dacc6805bb9b14ba39d70d203e7622331bbd469e7b870be1da968a8b74b3f77
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- reputable (0.1.4)
4
+ reputable (0.1.6)
5
5
  connection_pool (~> 2.2)
6
6
  redis (>= 4.0, < 6.0)
7
7
 
data/README.md CHANGED
@@ -442,6 +442,7 @@ The return URL will contain:
442
442
  - `reputable_outcome`: The specific reputation outcome (e.g., `trusted_verified`)
443
443
  - `reputable_ignore_analytics`: 'true'/'false' flag
444
444
  - `reputable_country`: ISO country code
445
+ - `reputable_challenge_passed`: 'true' when an interactive challenge was completed
445
446
  - `reputable_signature`: HMAC-SHA256 signature of the above
446
447
 
447
448
  ---
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Reputable
4
- VERSION = "0.1.6"
4
+ VERSION = "0.1.7"
5
5
  end
data/lib/reputable.rb CHANGED
@@ -180,6 +180,7 @@ module Reputable
180
180
  outcome = params["reputable_outcome"]
181
181
  ignore_analytics = params["reputable_ignore_analytics"]
182
182
  country = params["reputable_country"] || ""
183
+ challenge_passed = params["reputable_challenge_passed"]
183
184
 
184
185
  return false unless status && session_id && signature
185
186
 
@@ -189,14 +190,15 @@ module Reputable
189
190
  return false
190
191
  end
191
192
 
192
- # Reconstruct data string: status:sessionId:outcome:ignoreAnalytics:country
193
+ # Reconstruct data string: status:sessionId:outcome:ignoreAnalytics:country:challengePassed
193
194
  # Note: optional params default to empty strings if missing in reconstruction logic on server
194
195
  data_parts = [
195
196
  status,
196
197
  session_id,
197
198
  outcome || "",
198
199
  ignore_analytics.nil? ? "" : ignore_analytics,
199
- country
200
+ country,
201
+ challenge_passed || ""
200
202
  ]
201
203
 
202
204
  data = data_parts.join(":")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reputable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Reputable
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-12-27 00:00:00.000000000 Z
11
+ date: 2025-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis