api_six_client 1.4.8 → 1.4.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f356f941ae882e2a2e439c7ed01b3ba54c1bd8654543b7752445b8ae5fb43615
4
- data.tar.gz: 46b2f9b63cf9f0e4457d5fb6f1b3ffe172321f93965a34309742c21f3b87f2f0
3
+ metadata.gz: acff3bce026459b569bcd1011acb9aecb42e509ac46a2befbd96b30ffb177ff7
4
+ data.tar.gz: 9b58a6dde197181504a54616d827a1e437fe04481ec5d984c10da6b2bf89dff8
5
5
  SHA512:
6
- metadata.gz: 86260da81f7745cc92f2a5975f2c6dcb695ce1e00ff3685170e550fc053d624a3bbf1a1484322d0edcfd1ee5435137f2f9312262b6494f73b67df9d4d5992018
7
- data.tar.gz: 16e2abd5b61c7eda9269f9f3513a3cb4ad2646fd727ca7c2bd2a2a90f1c8c892e2c2dca005d5b8c2af17b2e8f87a4d39773a2af71d16f1cb6c40f0454574549d
6
+ metadata.gz: 40711119c01b8ae01c5f97caac8ceaafc61e251c0b58fa3cc0ecd1b580d41fbde2dad39ab20864e3055d8b01b8d8bb0152056ead84e18cbed5968e2e588bcdc8
7
+ data.tar.gz: 3921bb6df47416938e8d2916141b19c7844d8ae9ad5d4606a86c95936ef9746aeef00eacd29603f37de9bf0dbb253680c6355b7862505c0b53d83e5629cd7ba3
data/Gemfile.lock CHANGED
@@ -1,13 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- api_six_client (1.4.8)
4
+ api_six_client (1.4.10)
5
5
  faraday (~> 2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- base64 (0.1.1)
10
+ base64 (0.2.0)
11
11
  faraday (2.7.11)
12
12
  base64
13
13
  faraday-net_http (>= 2.0, < 3.1)
@@ -55,7 +55,13 @@ module ApiSixClient
55
55
  end
56
56
 
57
57
  def request(method, path, params = {}, headers = {})
58
- response = connection.run_request(method, "#{endpoint}/#{service_path}/#{path}", params.to_json, headers)
58
+ response = nil
59
+ begin
60
+ response = connection.run_request(method, "#{endpoint}/#{service_path}/#{path}", params.to_json, headers)
61
+ rescue Faraday::Error => e
62
+ raise Errors::FaradayError.new("#{e.to_s} by #{self.class.name}##{path}")
63
+ end
64
+
59
65
  res = JSON.parse(response.body)
60
66
 
61
67
  return res.with_indifferent_access if res.is_a?(Hash)
@@ -4,5 +4,6 @@ module ApiSixClient
4
4
  module Errors
5
5
  class EndpointIsEmpty < StandardError; end
6
6
  class AuthTokenIsEmpty < StandardError; end
7
+ class FaradayError < StandardError; end
7
8
  end
8
9
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ApiSixClient
4
- VERSION = "1.4.8"
4
+ VERSION = "1.4.10"
5
5
  end
@@ -20,7 +20,6 @@ module ApiSixClient
20
20
  class Brg < Base; end
21
21
  class Gbk < Base; end
22
22
  class Mat < Base; end
23
- class Val < Base; end
24
23
  class Prj < Base; end
25
24
  class Fin < Base; end
26
25
  class Olc < Base; end
@@ -40,6 +39,7 @@ module ApiSixClient
40
39
  class FinnInt < BaseV2Int; end
41
40
  class LyrInt < BaseV2Int; end
42
41
  class BrgInt < BaseV2Int; end
42
+ class Val < BaseV2Int; end
43
43
  end
44
44
 
45
45
  A6C = ApiSixClient
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_six_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.8
4
+ version: 1.4.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugene Dobrorodnov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-02 00:00:00.000000000 Z
11
+ date: 2023-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday