api_six_client 1.4.13 → 1.4.15

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: 90d6134425c62b2e2af83dea681e83634074f2097640a6a3efbad3c2e93fa784
4
- data.tar.gz: 264e4f56dacc418e6b3e871b2d02a2d57b31b7e914eb8dc816deba525129e94c
3
+ metadata.gz: 176633fdcd2899f81314595967660398a580ceffc47f0c77c12652c80df265de
4
+ data.tar.gz: b08f4742eb10849eb1d4dd91fd5a60f024c09655ba55ccefae0a88b809a0b667
5
5
  SHA512:
6
- metadata.gz: f1dee11bbbf65264e65595856fe20256584dcec9825ffa1d634b167828122c20c36dbf3eb7ae522f0ebfb0628a0d7c4a19d0159a435319284464835426a9d040
7
- data.tar.gz: aec7de8d3a43bf5ba9373d9d466b40b25bbe556aef327628466e9cf9b3ef6daf885c6e90ddfdafafcfbc9b14475615f6e2665294ceed722c5ca25c99959e895d
6
+ metadata.gz: a9c93a41ec555426e41030b4c631d4a704af10bf8c6b8cf57f35e6e2fb0e50933e7085b81b01713d95ed144982988cb87041afcd45fb37c3f1d4ad78ccd3759b
7
+ data.tar.gz: 5af753a60ded22561480754963134c3cbeeaa10e407c074ed2d7b2f29b79dd018c18db65154b19631533fb63e15e26cdc241e7e3b5e2b23e029105b08f672aee
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- api_six_client (1.4.13)
4
+ api_six_client (1.4.15)
5
5
  faraday (~> 2)
6
6
 
7
7
  GEM
@@ -65,7 +65,11 @@ module ApiSixClient
65
65
  begin
66
66
  response = connection.run_request(method, "#{endpoint}/#{service_path}/#{path}", params.to_json, headers)
67
67
  rescue Faraday::Error => e
68
- raise Errors::FaradayError.new("#{e.to_s} by #{self.class.name}##{path}")
68
+ if defined?(Rails)
69
+ Rails.logger.error "Message: #{e.message}, caused by: #{self.class.name}##{path}"
70
+ end
71
+
72
+ raise e
69
73
  end
70
74
 
71
75
  res = JSON.parse(response.body)
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ApiSixClient
4
- class BaseHiddenInt < Base
4
+ class BaseHidden < Base
5
5
  protected
6
6
 
7
7
  def deprecation_msg
@@ -9,7 +9,7 @@ module ApiSixClient
9
9
 
10
10
  def override_defaults
11
11
  @endpoint = ApiSixClient.config.endpoint_int
12
- @auth_token = ApiSixClient.config.auth_token_hidden_int
12
+ @auth_token = ApiSixClient.config.auth_token_hidden
13
13
  end
14
14
  end
15
15
  end
@@ -6,5 +6,6 @@ module ApiSixClient
6
6
  attr_accessor :endpoint_v2, :auth_token_v2
7
7
  attr_accessor :endpoint_int, :auth_token_int
8
8
  attr_accessor :endpoint_v2_int, :auth_token_v2_int
9
+ attr_accessor :auth_token_hidden
9
10
  end
10
11
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ApiSixClient
4
- VERSION = "1.4.13"
4
+ VERSION = "1.4.15"
5
5
  end
@@ -5,7 +5,7 @@ require 'api_six_client/config'
5
5
  require 'api_six_client/base'
6
6
  require 'api_six_client/base_v2'
7
7
  require 'api_six_client/base_int'
8
- require 'api_six_client/base_hidden_int'
8
+ require 'api_six_client/base_hidden'
9
9
  require 'api_six_client/base_v2_int'
10
10
  require 'api_six_client/errors'
11
11
 
@@ -30,8 +30,8 @@ module ApiSixClient
30
30
  class Eno < BaseV2; end
31
31
  class Uas < BaseV2; end
32
32
 
33
- class OlcInt < BaseHiddenInt; end
34
- class AuthInt < BaseHiddenInt; end
33
+ class OlcInt < BaseHidden; end
34
+ class AuthInt < BaseHidden; end
35
35
 
36
36
  class PrjInt < BaseInt; end
37
37
  class UasInt < BaseInt; end
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.13
4
+ version: 1.4.15
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-27 00:00:00.000000000 Z
11
+ date: 2023-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -42,7 +42,7 @@ files:
42
42
  - bin/setup
43
43
  - lib/api_six_client.rb
44
44
  - lib/api_six_client/base.rb
45
- - lib/api_six_client/base_hidden_int.rb
45
+ - lib/api_six_client/base_hidden.rb
46
46
  - lib/api_six_client/base_int.rb
47
47
  - lib/api_six_client/base_v2.rb
48
48
  - lib/api_six_client/base_v2_int.rb