seam 2.0.0b1 → 2.0.0b3
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/lib/seam/helpers/action_attempt.rb +2 -0
- data/lib/seam/http_multi_workspace.rb +5 -1
- data/lib/seam/http_single_workspace.rb +5 -1
- data/lib/seam/request.rb +2 -0
- data/lib/seam/version.rb +1 -1
- data/lib/seam.rb +5 -5
- metadata +2 -3
- data/lib/seam/logger.rb +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5cf7ba597155429f0ddcc3e5efb8c845f4c0efba246457787859b6b86ca84053
|
4
|
+
data.tar.gz: 9e89f9ac8ad280152002744808c2f13681c77855c08647621494fa3ac8730567
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '042008d371d9f6bca1a997a7a2dc5b8dff5abb369f8735727472dc50c60f548fda06acafd4ff1d49af97ef31b452ae0f002e890c183c7f50c50c677781cf0329'
|
7
|
+
data.tar.gz: bdf45e0bd91efb50eb3a04745d43b9825a1dd06ef424dcc14b272248084841b31cbbd2b13379cbff6adf16f07b0f80a09465ebcfc8554e4a992adb0eeb34961f
|
data/Gemfile.lock
CHANGED
@@ -3,7 +3,11 @@
|
|
3
3
|
require_relative "request"
|
4
4
|
require_relative "parse_options"
|
5
5
|
require_relative "lts_version"
|
6
|
+
require_relative "version"
|
6
7
|
require_relative "auth"
|
8
|
+
require_relative "routes/resources/index"
|
9
|
+
require_relative "routes/clients/index"
|
10
|
+
require_relative "routes/routes"
|
7
11
|
|
8
12
|
module Seam
|
9
13
|
module Http
|
@@ -16,7 +20,7 @@ module Seam
|
|
16
20
|
@defaults = {"wait_for_action_attempt" => wait_for_action_attempt}
|
17
21
|
@endpoint = Http::Options.get_endpoint(endpoint)
|
18
22
|
@auth_headers = Http::Auth.get_auth_headers_for_multi_workspace_personal_access_token(personal_access_token)
|
19
|
-
@client =
|
23
|
+
@client = Http::Request.create_faraday_client(@endpoint, @auth_headers, faraday_options,
|
20
24
|
faraday_retry_options)
|
21
25
|
end
|
22
26
|
|
@@ -2,7 +2,11 @@
|
|
2
2
|
|
3
3
|
require_relative "request"
|
4
4
|
require_relative "parse_options"
|
5
|
+
require_relative "routes/resources/index"
|
6
|
+
require_relative "routes/clients/index"
|
5
7
|
require_relative "routes/routes"
|
8
|
+
require_relative "version"
|
9
|
+
require_relative "deep_hash_accessor"
|
6
10
|
|
7
11
|
module Seam
|
8
12
|
module Http
|
@@ -18,7 +22,7 @@ module Seam
|
|
18
22
|
@endpoint = options[:endpoint]
|
19
23
|
@auth_headers = options[:auth_headers]
|
20
24
|
@defaults = Seam::DeepHashAccessor.new({"wait_for_action_attempt" => wait_for_action_attempt})
|
21
|
-
@client = client ||
|
25
|
+
@client = client || Http::Request.create_faraday_client(@endpoint, @auth_headers, faraday_options,
|
22
26
|
faraday_retry_options)
|
23
27
|
|
24
28
|
initialize_routes(client: @client, defaults: @defaults)
|
data/lib/seam/request.rb
CHANGED
data/lib/seam/version.rb
CHANGED
data/lib/seam.rb
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative "seam/
|
3
|
+
require_relative "seam/lts_version"
|
4
4
|
require_relative "seam/http"
|
5
5
|
require_relative "seam/http_multi_workspace"
|
6
|
-
require_relative "seam/wait_for_action_attempt"
|
7
6
|
require_relative "seam/webhook"
|
7
|
+
require_relative "seam/wait_for_action_attempt"
|
8
8
|
|
9
9
|
module Seam
|
10
10
|
def self.new(**args)
|
11
|
-
Http.new(**args)
|
11
|
+
Seam::Http.new(**args)
|
12
12
|
end
|
13
13
|
|
14
14
|
def self.from_api_key(api_key, endpoint: nil, wait_for_action_attempt: false)
|
15
|
-
Http.from_api_key(api_key, endpoint: endpoint, wait_for_action_attempt: wait_for_action_attempt)
|
15
|
+
Seam::Http.from_api_key(api_key, endpoint: endpoint, wait_for_action_attempt: wait_for_action_attempt)
|
16
16
|
end
|
17
17
|
|
18
18
|
def self.from_personal_access_token(personal_access_token, workspace_id, endpoint: nil, wait_for_action_attempt: false)
|
19
|
-
Http.from_personal_access_token(personal_access_token, workspace_id, endpoint: endpoint, wait_for_action_attempt: wait_for_action_attempt)
|
19
|
+
Seam::Http.from_personal_access_token(personal_access_token, workspace_id, endpoint: endpoint, wait_for_action_attempt: wait_for_action_attempt)
|
20
20
|
end
|
21
21
|
|
22
22
|
def self.lts_version
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: seam
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.0b3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seam Labs, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -198,7 +198,6 @@ files:
|
|
198
198
|
- lib/seam/http.rb
|
199
199
|
- lib/seam/http_multi_workspace.rb
|
200
200
|
- lib/seam/http_single_workspace.rb
|
201
|
-
- lib/seam/logger.rb
|
202
201
|
- lib/seam/lts_version.rb
|
203
202
|
- lib/seam/options.rb
|
204
203
|
- lib/seam/parse_options.rb
|