seamapi 1.0.0.pre.rc.1 → 1.1.1

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: 208a92b843c3e45e6c387d9fb0e2befb3add4fffa73b901e5e163e33063d0999
4
- data.tar.gz: '09bebe6565dbe2045d5e5c96a8b37c895f553f4bd8482993ce06ca400b232251'
3
+ metadata.gz: 21aec08cf14fd08e79d590afdbf7d5b0f5595a4ed598878b527a7240e78d68ca
4
+ data.tar.gz: 8b74e57807badebef432314ae659101c1f1d266e891f2b22f3c38e8f45685186
5
5
  SHA512:
6
- metadata.gz: 597917f7ce75c2c00105b5b583b77caca3914595185aa24a968451c7017c830072d781695beb483a03ceecea70da8b344dfb99cbfade95be0f32e85bff4fc143
7
- data.tar.gz: 1570e83866c523ab34b5aa77437068528cbf07c03c762065ed346c927c2778ebfce2ff0ffb090a2b8b1736e5e8f84bb14a3b2a7b69e063657b90044f2b4c9707
6
+ metadata.gz: 9c5509ea49932bc8befe57d8c581c35b5d2586350f9e76b66b18b87c5a2f67625557b14a65924afab55c26e5330bef11e56db4ec989a51f5cb48479ad8f3fa94
7
+ data.tar.gz: c621ee5d4beec18ae8f15367c79d1011d7d4835164f357d7fa705aad1cc4b647298edd50d2340ac7be99140eb84acf029acb7fabfe5a2b1360c4a59b54e503a3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seamapi (1.0.0.pre.rc.1)
4
+ seamapi (1.1.1)
5
5
  http (~> 5.0.0)
6
6
 
7
7
  GEM
@@ -104,6 +104,7 @@ GEM
104
104
  hashdiff
105
105
 
106
106
  PLATFORMS
107
+ arm64-darwin-21
107
108
  x86_64-linux
108
109
 
109
110
  DEPENDENCIES
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Seam
4
+ class ResourceError < BaseResource
5
+ attr_accessor :error_code, :message
6
+ end
7
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Seam
4
+ module ResourceErrorsSupport
5
+ def errors
6
+ @errors ||= @data["errors"].is_a?(Array) ? Seam::ResourceError.load_from_response(@data["errors"]) : []
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Seam
4
+ class ResourceWarning < BaseResource
5
+ attr_accessor :warning_code, :message
6
+ end
7
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Seam
4
+ module ResourceWarningsSupport
5
+ def warnings
6
+ @warnings ||= @data["warnings"].is_a?(Array) ? Seam::ResourceWarning.load_from_response(@data["warnings"]) : []
7
+ end
8
+ end
9
+ end
data/lib/seam/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Seam
4
- VERSION = "1.0.0-rc.1"
4
+ VERSION = "1.1.1"
5
5
  end
data/lib/seamapi.rb CHANGED
@@ -13,6 +13,10 @@ require_relative "seam/clients/connected_accounts"
13
13
  require_relative "seam/clients/access_codes"
14
14
  require_relative "seam/clients/action_attempts"
15
15
  require_relative "seam/resources/base_resource"
16
+ require_relative "seam/resources/resource_warning"
17
+ require_relative "seam/resources/resource_error"
18
+ require_relative "seam/resources/resource_warnings_support"
19
+ require_relative "seam/resources/resource_errors_support"
16
20
  require_relative "seam/resources/device"
17
21
  require_relative "seam/resources/access_code"
18
22
  require_relative "seam/resources/action_attempt"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seamapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.rc.1
4
+ version: 1.1.1
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: 2022-11-29 00:00:00.000000000 Z
11
+ date: 2022-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http
@@ -168,6 +168,10 @@ files:
168
168
  - lib/seam/resources/action_attempt.rb
169
169
  - lib/seam/resources/connect_webview.rb
170
170
  - lib/seam/resources/connected_account.rb
171
+ - lib/seam/resources/resource_error.rb
172
+ - lib/seam/resources/resource_errors_support.rb
173
+ - lib/seam/resources/resource_warning.rb
174
+ - lib/seam/resources/resource_warnings_support.rb
171
175
  - lib/seam/version.rb
172
176
  - lib/seamapi.rb
173
177
  homepage: https://github.com/seamapi/ruby
@@ -190,9 +194,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
190
194
  version: 2.6.0
191
195
  required_rubygems_version: !ruby/object:Gem::Requirement
192
196
  requirements:
193
- - - ">"
197
+ - - ">="
194
198
  - !ruby/object:Gem::Version
195
- version: 1.3.1
199
+ version: '0'
196
200
  requirements: []
197
201
  rubygems_version: 3.2.33
198
202
  signing_key: