seam 2.0.0b1 → 2.0.0b3

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: c47615cf01fabbff89ed3fb2c39328d738ec2a4793c98a5dd91f0227806d2fbb
4
- data.tar.gz: 6824424bfc7f8cfd753e91b25e8baf8c88f2e61ae9254a4fe0489afaa91609f4
3
+ metadata.gz: 5cf7ba597155429f0ddcc3e5efb8c845f4c0efba246457787859b6b86ca84053
4
+ data.tar.gz: 9e89f9ac8ad280152002744808c2f13681c77855c08647621494fa3ac8730567
5
5
  SHA512:
6
- metadata.gz: 990c8295e652aba9d0ccc06bf3af2a894ff1a1a095055438115e6a295e1082a04966dbeaffca13e34bc22dc41031a5cdbb1569f3c5a967130dfa507ffd6eb0e8
7
- data.tar.gz: e0b2a61c39c454efba706c907779a73ed34781c921e893f2eb621f4ce91413111ea79a325947326c7a055d5438d209335cb6c9682f30ee7a02824b0bfe55e127
6
+ metadata.gz: '042008d371d9f6bca1a997a7a2dc5b8dff5abb369f8735727472dc50c60f548fda06acafd4ff1d49af97ef31b452ae0f002e890c183c7f50c50c677781cf0329'
7
+ data.tar.gz: bdf45e0bd91efb50eb3a04745d43b9825a1dd06ef424dcc14b272248084841b31cbbd2b13379cbff6adf16f07b0f80a09465ebcfc8554e4a992adb0eeb34961f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seam (2.0.0b1)
4
+ seam (2.0.0b3)
5
5
  faraday (~> 2.7)
6
6
  faraday-retry (~> 2.2)
7
7
  svix (~> 1.30)
@@ -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.0b1"
4
+ VERSION = "2.0.0b3"
5
5
  end
data/lib/seam.rb CHANGED
@@ -1,22 +1,22 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "seam/logger"
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.0b1
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-12 00:00:00.000000000 Z
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
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