reacon-sdk 0.4.0.beta.1 → 0.7.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 +4 -4
- data/README.md +6 -4
- data/lib/reacon-sdk/configuration.rb +4 -23
- data/lib/reacon-sdk/verification_stream.rb +2 -2
- data/lib/reacon-sdk/version.rb +1 -1
- 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: 730b7c1584d89b95976da708966c943df2f6caa38bb3a775df3fdc774e4b01be
|
|
4
|
+
data.tar.gz: '09fb3ed09640776c6f5ffb1b0ff0b3a1a717fa0c9a41910a8210fd8b2ef16a56'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e17885011d5cd222ee4dc9b0fe5e083924e884ec66c32a31c2e9c1dca5520836996cab03baf1007e32ba31b8a36a0185f902209eb9822f9de544cc1c71099812
|
|
7
|
+
data.tar.gz: 288d734a961f244b83758f722338ed559444c4219341f09cc35cad6a78787c76ca4af00633b7e0b2ca37786b88027a56cad7b34e46a4d319a95b6f644b667a3a
|
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.
|
|
10
|
+
- Package version: 0.7.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.
|
|
27
|
+
gem install ./reacon-sdk-0.7.0.beta.1.gem
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
(for development, run `gem install --dev ./reacon-sdk-0.
|
|
30
|
+
(for development, run `gem install --dev ./reacon-sdk-0.7.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.
|
|
36
|
+
gem 'reacon-sdk', '~> 0.7.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
|
-
|
|
16
|
+
attr_reader :scheme
|
|
17
17
|
|
|
18
18
|
# Defines url host
|
|
19
|
-
|
|
19
|
+
attr_reader :host
|
|
20
20
|
|
|
21
21
|
# Defines url base path
|
|
22
|
-
|
|
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
|
-
|
|
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:,
|
|
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,
|
|
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)
|
data/lib/reacon-sdk/version.rb
CHANGED
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
|
+
version: 0.7.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-
|
|
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
|