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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -0
- data/lib/reputable/version.rb +1 -1
- data/lib/reputable.rb +4 -2
- 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: c5ea31e6c135265677697ac1411fb0d9308f6d4454f23a3d1558018eddfccb4a
|
|
4
|
+
data.tar.gz: 0aea9d057b70a2ca763f5e1f5e6b024d25d07d783feee0447bd311526a189574
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f9621074b650d78f8ba44014f5df9880ee8431065f88a9cd6e3da467aef4885da7230851de5cfe316ef3d8162317bd43cba10fd943d87affbbb2ae11046901c9
|
|
7
|
+
data.tar.gz: 59c4953b9caaf151b3b8a97d057d90b9dab88bdfe71809460a588f35cc8ddc903dacc6805bb9b14ba39d70d203e7622331bbd469e7b870be1da968a8b74b3f77
|
data/Gemfile.lock
CHANGED
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
|
---
|
data/lib/reputable/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2025-12-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: redis
|