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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ffc806cfc6622c01070491958e6ad27961b6860031f18be40eb2f66ae0d7e120
4
- data.tar.gz: 5716fef93acb4d2024e67a2ecb1c5d26213e4897ca6c6ea07319eded2b32de22
3
+ metadata.gz: 05aa44abe90978dfb3e6a0477af3a2ba1c1a5df22abc5682234cde3b1a618991
4
+ data.tar.gz: 12e5d69b5848e92a182ec71e30d138347fe69b28653571893bea5d53cce9aa75
5
5
  SHA512:
6
- metadata.gz: 9246aa205d16d2139cc87dadf49fa6fd32bb11b618bcbdb4e08e41dc616ef3a174624c64614edaee89ff3f78b8285c63116229e387899ba6a687d5070f16563a
7
- data.tar.gz: 12d3f02931cdc6baf594627c92d2f8d8886afa52cc19fe3929e38844d451dd2342687351cf733eaac88df64438c7f17e9aa6d79b113584a42d70bcc6831d7890
6
+ metadata.gz: dbd7f2fa7491f0aabd34d54c5ea015605fc0a08bb3ecc8f256b1e89d025a2c18c6d64c7688c74e522b8c812bec88570fdf9a0186bed795fce29373b6006646bd
7
+ data.tar.gz: eaf9f2cbaa0943da932c98a8a2d3f05873d565f6b72c73b7e8de122f6edd39aa261e50eab0217e50feecc9786fdec5be554171d14083a77f29d4202dc272559e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seam (2.0.0b2)
4
+ seam (2.0.0b4)
5
5
  faraday (~> 2.7)
6
6
  faraday-retry (~> 2.2)
7
7
  svix (~> 1.30)
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "time"
3
4
  require_relative "deep_hash_accessor"
4
5
 
5
6
  module Seam
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require_relative "../wait_for_action_attempt"
4
+
3
5
  module Seam
4
6
  module Helpers
5
7
  module ActionAttempt
@@ -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 = Seam::Http::Request.create_faraday_client(@endpoint, @auth_headers, faraday_options,
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 || Seam::Http::Request.create_faraday_client(@endpoint, @auth_headers, faraday_options,
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
@@ -2,6 +2,8 @@
2
2
 
3
3
  require "faraday"
4
4
  require "faraday/retry"
5
+ require_relative "lts_version"
6
+ require_relative "version"
5
7
 
6
8
  module Seam
7
9
  module Http
data/lib/seam/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Seam
4
- VERSION = "2.0.0b2"
4
+ VERSION = "2.0.0b4"
5
5
  end
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.0b2
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
data/lib/seam/logger.rb DELETED
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "logger"
4
-
5
- module Seam
6
- class Logger
7
- def self.info(message)
8
- logger = ::Logger.new($stdout)
9
- logger.info(message)
10
- end
11
- end
12
- end