reacon-sdk 0.4.0.beta.1 → 0.5.0.beta.1

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: 13f1bd64f6305766b62c2a0af00e9aae0c630c4f53cc4328064558bf766887cf
4
- data.tar.gz: 9487c0848eea948629f7f8ce43e4300bfccd3def83b35b899cf29b19b492fd1a
3
+ metadata.gz: 3a769b37f63230685e4f6072e1cd9fa0d7540e6b4a84619b58257516703bd333
4
+ data.tar.gz: c1e7818e3ac4c260821e8f6947f8d8f027348b92bc8276446b5475ecf4de49f7
5
5
  SHA512:
6
- metadata.gz: 422685de7d0a9f6f40676ecc59673852c4a9197ebce67e3eaa466c9fa2bd6dc6680635aae670f295d1899b93d4bfebfee30de053382b2f1afdd693d11df6415f
7
- data.tar.gz: 99d582518accfcf9ffe5b0ed0d201b4f8af5ed4ccb4a646a1a94c659538e131445fddf1dca5b9e65f48d95633f9cf0da8da03b02c32d6061c1cb1a1cc3b32c3d
6
+ metadata.gz: c745794c845e6d227db0e5057d292c3c9847789e2d7052ca16a769552b1574a2fdf0417db76a1e77ad9f667540fdaba27b0756495a8abc4e7e3f2b76a61610f8
7
+ data.tar.gz: 4e13f3a143d7020f40bc6ca7bf2cceb6f6b1c9156dd781effd600815a6d7f5dd91235dddf9daf2f95bc79839d11427bccfa93926c5db41e6a9dc28c35ae19242
data/README.md CHANGED
@@ -7,7 +7,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 0.1.0
10
- - Package version: 0.4.0.beta.1
10
+ - Package version: 0.5.0.beta.1
11
11
  - Generator version: 7.25.0
12
12
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
13
13
 
@@ -24,16 +24,16 @@ gem build reacon-sdk.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./reacon-sdk-0.4.0.beta.1.gem
27
+ gem install ./reacon-sdk-0.5.0.beta.1.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./reacon-sdk-0.4.0.beta.1.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./reacon-sdk-0.5.0.beta.1.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'reacon-sdk', '~> 0.4.0.beta.1'
36
+ gem 'reacon-sdk', '~> 0.5.0.beta.1'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -909,3 +909,5 @@ Authentication schemes defined for the API:
909
909
 
910
910
  - **Type**: Bearer authentication
911
911
 
912
+
913
+ The service URL is fixed to https://api.reacon.io. SDKs do not accept a service URL override.
@@ -13,13 +13,13 @@ Generator version: 7.25.0
13
13
  module Reacon
14
14
  class Configuration
15
15
  # Defines url scheme
16
- attr_accessor :scheme
16
+ attr_reader :scheme
17
17
 
18
18
  # Defines url host
19
- attr_accessor :host
19
+ attr_reader :host
20
20
 
21
21
  # Defines url base path
22
- attr_accessor :base_path
22
+ attr_reader :base_path
23
23
 
24
24
  # Define server configuration index
25
25
  attr_accessor :server_index
@@ -195,31 +195,12 @@ module Reacon
195
195
  yield(self) if block_given?
196
196
  end
197
197
 
198
- def scheme=(scheme)
199
- # remove :// from scheme
200
- @scheme = scheme.sub(/:\/\//, '')
201
- end
202
198
 
203
- def host=(host)
204
- # remove http(s):// and anything after a slash
205
- @host = host.sub(/https?:\/\//, '').split('/').first
206
- end
207
199
 
208
- def base_path=(base_path)
209
- # Add leading and trailing slashes to base_path
210
- @base_path = "/#{base_path}".gsub(/\/+/, '/')
211
- @base_path = '' if @base_path == '/'
212
- end
213
200
 
214
201
  # Returns base URL for specified operation based on server settings
215
202
  def base_url(operation = nil)
216
- return "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '') if ignore_operation_servers
217
- if operation_server_settings.key?(operation) then
218
- index = server_operation_index.fetch(operation, server_index)
219
- server_url(index.nil? ? 0 : index, server_operation_variables.fetch(operation, server_variables), operation_server_settings[operation])
220
- else
221
- server_index.nil? ? "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '') : server_url(server_index, server_variables, nil)
222
- end
203
+ 'https://api.reacon.io'
223
204
  end
224
205
 
225
206
  # Gets API key (with prefix if set).
@@ -27,9 +27,9 @@ module Reacon
27
27
 
28
28
  # Credentials are per instance. Each active stream owns its Net::HTTP connection.
29
29
  class VerificationStreamClient
30
- def initialize(api_key:, base_url: 'https://api.reacon.io', ca_file: nil)
30
+ def initialize(api_key:, ca_file: nil)
31
31
  raise ArgumentError, 'api_key is required' if api_key.to_s.strip.empty?
32
- @key, @base_url, @ca_file = api_key, base_url.delete_suffix('/'), ca_file
32
+ @key, @base_url, @ca_file = api_key, 'https://api.reacon.io', ca_file
33
33
  end
34
34
  # Creating a stream does no I/O. Use #each with a block; #close cancels from another thread.
35
35
  def stream_verification(email, only_if_free: nil, cache_max_age: nil, idle_timeout: 30, total_timeout: 300)
@@ -11,5 +11,5 @@ Generator version: 7.25.0
11
11
  =end
12
12
 
13
13
  module Reacon
14
- VERSION = '0.4.0.beta.1'
14
+ VERSION = '0.5.0.beta.1'
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reacon-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0.beta.1
4
+ version: 0.5.0.beta.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Reacon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-09-29 00:00:00.000000000 Z
11
+ date: 2026-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: event_stream_parser