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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/api_six_client/base.rb +5 -1
- data/lib/api_six_client/base_hidden.rb +15 -0
- data/lib/api_six_client/config.rb +1 -0
- data/lib/api_six_client/version.rb +1 -1
- data/lib/api_six_client.rb +5 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f01ce06723b2cf886512fcb0ce13a0d66d6bb0cade9e9702456a6285f9bfb869
|
4
|
+
data.tar.gz: 2839a44a8533e8f76d6cd2af9b1f19b9f59b2e387a998a5782567a5ebbaae06a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 710996bcb16a2a030bf60acc5c6cc580cd86e8549fe40c03d8500714abcbb599a2ee5dde9f9792fc4c074ce819806c30a1bff59dc130ad9d05ba76de71ee2e88
|
7
|
+
data.tar.gz: fad27ce4c99f9a947f2635d108c5219b7167e2d023c7d306ffa924468b4c293dd33334175f755e003f1cb56f52c16bacbb4b9d58a8caa1185e2ac0cc131a6b82
|
data/Gemfile.lock
CHANGED
data/lib/api_six_client/base.rb
CHANGED
@@ -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
|
-
|
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
|
data/lib/api_six_client.rb
CHANGED
@@ -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 <
|
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.
|
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-
|
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
|