seam 2.0.0b2 → 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: ffc806cfc6622c01070491958e6ad27961b6860031f18be40eb2f66ae0d7e120
4
- data.tar.gz: 5716fef93acb4d2024e67a2ecb1c5d26213e4897ca6c6ea07319eded2b32de22
3
+ metadata.gz: 5cf7ba597155429f0ddcc3e5efb8c845f4c0efba246457787859b6b86ca84053
4
+ data.tar.gz: 9e89f9ac8ad280152002744808c2f13681c77855c08647621494fa3ac8730567
5
5
  SHA512:
6
- metadata.gz: 9246aa205d16d2139cc87dadf49fa6fd32bb11b618bcbdb4e08e41dc616ef3a174624c64614edaee89ff3f78b8285c63116229e387899ba6a687d5070f16563a
7
- data.tar.gz: 12d3f02931cdc6baf594627c92d2f8d8886afa52cc19fe3929e38844d451dd2342687351cf733eaac88df64438c7f17e9aa6d79b113584a42d70bcc6831d7890
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.0b2)
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.0b2"
4
+ VERSION = "2.0.0b3"
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.0b3
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