api_six_client 1.2.9 → 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: 61c958a1e5ae851bf3fbdf7c0a93dc815339a2ef753e6f55bdaa38c9a7b9f236
4
- data.tar.gz: fc788555757739cd9a02766f633e66fafcef15d1a9bf8a8d9b16990026a9f4ad
3
+ metadata.gz: f01ce06723b2cf886512fcb0ce13a0d66d6bb0cade9e9702456a6285f9bfb869
4
+ data.tar.gz: 2839a44a8533e8f76d6cd2af9b1f19b9f59b2e387a998a5782567a5ebbaae06a
5
5
  SHA512:
6
- metadata.gz: 283a828131eef56f0d6ec58b4cc350c2318e4939215db70ec979eddbaf6c01e7ecd3d2618ded2479ac0c3a34e0331280c80e2bc4c7fbfc054f6e47ac69b831b9
7
- data.tar.gz: ba5e3957d31582c21ff2c0eec9bdd63ed7d318e0ecbe2a0989b4cadf3e5d3cd1f70c440de006c19be155c035ca821a1c0a3aef90d5ab99f2ca0a2a354176e94e
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.9)
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.9"
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,16 +30,18 @@ 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
41
43
  class LyrInt < BaseInt; end
44
+ class GbkInt < BaseInt; end
42
45
  class Val < BaseInt; end
43
46
  end
44
47
 
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.9
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-25 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