trustcaptcha 3.0.0.pre.beta.1 → 3.0.0

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: 10be47df90f618cc6611a61abc1a854103de387ab11485d5441792cb9020ef2b
4
- data.tar.gz: d07f749734370f5389306497b494a0c4174a62a589a96642f12e5bff70ca9a56
3
+ metadata.gz: 8d40366b9d6968d37ed33df2d971f378de90ef05eff58f818271d17f74394f18
4
+ data.tar.gz: 6843d1c0a88abe067a394637ccd2a7f3751e4f8cc50c6c63fea8dbff9ff0d262
5
5
  SHA512:
6
- metadata.gz: 9124e75c419119f80641dd7c4a7740359872e01ffc771c840caae4cb7be8035818d3cc158663b47787d889052567d92048fa8433872f1576d8f4e455262c0a8d
7
- data.tar.gz: 5be40a6a066b02c720969460754a7a322f6beb31de61f3be9b4b133ded5e4a3a15279c6135b458eeb948586704f948b1accae85102d85c16b75c47456d774d89
6
+ metadata.gz: 9f15f90f43bcea6f32cae1e332c65a15852621f0ac7e9a2ac3371f83b6bb3474e3612f5822aa3b7b9e8df939b747c48f6e6cbbfbee3f8e85b997f45c46671211
7
+ data.tar.gz: 4285540cb9818e5bdf5dc20bceb0a40e890e62391959035df8b4b79900ce83e9bc2f97a1f0a95aac9e21e094d4ab64296f4a31d6bf251e09cb4d899d18cfd5c4
@@ -29,7 +29,7 @@ class TrustCaptcha
29
29
  read_timeout_s: DEFAULT_READ_TIMEOUT_S,
30
30
  proxy: nil)
31
31
  raise ArgumentError, 'api_key must not be empty' if api_key.nil? || api_key.empty?
32
- @api_key = api_key
32
+ @api_key = api_key.strip
33
33
  @api_host = api_host
34
34
  @connect_timeout_s = connect_timeout_s
35
35
  @read_timeout_s = read_timeout_s
@@ -59,7 +59,7 @@ class TrustCaptcha
59
59
  request = Net::HTTP::Get.new(url.request_uri, headers)
60
60
  http.request(request)
61
61
  rescue SocketError, Errno::ECONNREFUSED, Errno::EHOSTUNREACH, Errno::ENETUNREACH, Net::OpenTimeout, Net::ReadTimeout, Errno::ETIMEDOUT
62
- raise ServerUnreachableException, 'Could not reach the TrustCaptcha server. This is a high-trust failover signal your backend was unable to contact our servers.'
62
+ raise ServerUnreachableException, 'Could not reach the TrustCaptcha server. Please check your network connection and consider implementing a failover mechanism.'
63
63
  end
64
64
 
65
65
  case response.code.to_i
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trustcaptcha
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.pre.beta.1
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - TrustComponent
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-05-07 00:00:00.000000000 Z
11
+ date: 2026-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -65,9 +65,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
65
65
  version: '0'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - ">"
68
+ - - ">="
69
69
  - !ruby/object:Gem::Version
70
- version: 1.3.1
70
+ version: '0'
71
71
  requirements: []
72
72
  rubygems_version: 3.3.7
73
73
  signing_key: