api_six_client 1.2.10 → 1.2.12
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: 1a5f38d58f1f5950fcaba1cd749e35b218d31cb2c1fed03fbd61e0929751d130
|
4
|
+
data.tar.gz: 0ba45cfc216917e5eb8ba126f3a1ae12eadce0f6d74a35f56a649c3170769632
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d2cad99a11c5ff3f474fe780e2408368565f1f421302a5fcb488583a39c935de888ca90de8f634e1bdf1053026db8311836713b6a929f307fe89a123bd32425
|
7
|
+
data.tar.gz: bf504967d4185606afeab68700380003f917ffe65cb90e366b8e0d5561264ad2d8016066a04923d60b439d99c030b42fd2b203543b6c32df65b919f0db23dfb2
|
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,18 +30,20 @@ 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
|
42
44
|
class GbkInt < BaseInt; end
|
43
45
|
class Val < BaseInt; end
|
46
|
+
class StataInt < BaseInt; end
|
44
47
|
end
|
45
48
|
|
46
49
|
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.2.
|
4
|
+
version: 1.2.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eugene Dobrorodnov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-22 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
|