seam 2.0.0b2 → 2.0.0b4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/seam/base_resource.rb +1 -0
- 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 +4 -6
- metadata +1 -2
- 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: 05aa44abe90978dfb3e6a0477af3a2ba1c1a5df22abc5682234cde3b1a618991
|
4
|
+
data.tar.gz: 12e5d69b5848e92a182ec71e30d138347fe69b28653571893bea5d53cce9aa75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbd7f2fa7491f0aabd34d54c5ea015605fc0a08bb3ecc8f256b1e89d025a2c18c6d64c7688c74e522b8c812bec88570fdf9a0186bed795fce29373b6006646bd
|
7
|
+
data.tar.gz: eaf9f2cbaa0943da932c98a8a2d3f05873d565f6b72c73b7e8de122f6edd39aa261e50eab0217e50feecc9786fdec5be554171d14083a77f29d4202dc272559e
|
data/Gemfile.lock
CHANGED
data/lib/seam/base_resource.rb
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,24 +1,22 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative "seam/logger"
|
4
3
|
require_relative "seam/lts_version"
|
5
4
|
require_relative "seam/http"
|
6
5
|
require_relative "seam/http_multi_workspace"
|
7
|
-
require_relative "seam/version"
|
8
|
-
require_relative "seam/wait_for_action_attempt"
|
9
6
|
require_relative "seam/webhook"
|
7
|
+
require_relative "seam/wait_for_action_attempt"
|
10
8
|
|
11
9
|
module Seam
|
12
10
|
def self.new(**args)
|
13
|
-
Http.new(**args)
|
11
|
+
Seam::Http.new(**args)
|
14
12
|
end
|
15
13
|
|
16
14
|
def self.from_api_key(api_key, endpoint: nil, wait_for_action_attempt: false)
|
17
|
-
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)
|
18
16
|
end
|
19
17
|
|
20
18
|
def self.from_personal_access_token(personal_access_token, workspace_id, endpoint: nil, wait_for_action_attempt: false)
|
21
|
-
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)
|
22
20
|
end
|
23
21
|
|
24
22
|
def self.lts_version
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.0b4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seam Labs, Inc.
|
@@ -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
|