api_six_client 1.2.10 → 1.2.11

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: 5489546353449d9ea972532a4bb92af2f4b9639460a2c3e6f05e6975f102f1ce
4
- data.tar.gz: 4a045f79f0b1a76f2cf67a094c7379ed5d859933258f8034abc3fa4e51c41bac
3
+ metadata.gz: f01ce06723b2cf886512fcb0ce13a0d66d6bb0cade9e9702456a6285f9bfb869
4
+ data.tar.gz: 2839a44a8533e8f76d6cd2af9b1f19b9f59b2e387a998a5782567a5ebbaae06a
5
5
  SHA512:
6
- metadata.gz: b82907548a84b2473218b78e5d5514ade59905d2294e9472bf112cdb7f0c8b61c35183f444c4c27c41736a1469ab85ee9102dee12251e6a5f3fb24a408a29b07
7
- data.tar.gz: aa109526cca86f938bc2592a814c33fd6538f22a64a5976209428bea43ea421f83616c396961ccde2213eda54c34b3440935920ba293c780c9dd93384c446638
6
+ metadata.gz: 710996bcb16a2a030bf60acc5c6cc580cd86e8549fe40c03d8500714abcbb599a2ee5dde9f9792fc4c074ce819806c30a1bff59dc130ad9d05ba76de71ee2e88
7
+ data.tar.gz: fad27ce4c99f9a947f2635d108c5219b7167e2d023c7d306ffa924468b4c293dd33334175f755e003f1cb56f52c16bacbb4b9d58a8caa1185e2ac0cc131a6b82
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- api_six_client (1.2.10)
4
+ api_six_client (1.2.11)
5
5
  faraday (~> 1)
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)
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ApiSixClient
4
+ class BaseHidden < Base
5
+ protected
6
+
7
+ def deprecation_msg
8
+ end
9
+
10
+ def override_defaults
11
+ @endpoint = ApiSixClient.config.endpoint_int
12
+ @auth_token = ApiSixClient.config.auth_token_hidden
13
+ end
14
+ end
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.2.10"
4
+ VERSION = "1.2.11"
5
5
  end
@@ -5,6 +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'
8
9
  require 'api_six_client/base_v2_int'
9
10
  require 'api_six_client/errors'
10
11
 
@@ -29,12 +30,13 @@ module ApiSixClient
29
30
  class Eno < BaseV2; end
30
31
  class Uas < BaseV2; end
31
32
 
32
- class OlcInt < BaseInt; end
33
+ class OlcInt < BaseHidden; end
34
+ class AuthInt < BaseHidden; end
35
+
33
36
  class PrjInt < BaseInt; end
34
37
  class UasInt < BaseInt; end
35
38
  class BrgInt < BaseInt; end
36
39
  class CadInt < BaseInt; end
37
- class AuthInt < BaseInt; end
38
40
  class NtfInt < BaseInt; end
39
41
  class MatInt < BaseInt; end
40
42
  class FinnInt < 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.2.10
4
+ version: 1.2.11
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-26 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,6 +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.rb
45
46
  - lib/api_six_client/base_int.rb
46
47
  - lib/api_six_client/base_v2.rb
47
48
  - lib/api_six_client/base_v2_int.rb