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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5489546353449d9ea972532a4bb92af2f4b9639460a2c3e6f05e6975f102f1ce
4
- data.tar.gz: 4a045f79f0b1a76f2cf67a094c7379ed5d859933258f8034abc3fa4e51c41bac
3
+ metadata.gz: 1a5f38d58f1f5950fcaba1cd749e35b218d31cb2c1fed03fbd61e0929751d130
4
+ data.tar.gz: 0ba45cfc216917e5eb8ba126f3a1ae12eadce0f6d74a35f56a649c3170769632
5
5
  SHA512:
6
- metadata.gz: b82907548a84b2473218b78e5d5514ade59905d2294e9472bf112cdb7f0c8b61c35183f444c4c27c41736a1469ab85ee9102dee12251e6a5f3fb24a408a29b07
7
- data.tar.gz: aa109526cca86f938bc2592a814c33fd6538f22a64a5976209428bea43ea421f83616c396961ccde2213eda54c34b3440935920ba293c780c9dd93384c446638
6
+ metadata.gz: 7d2cad99a11c5ff3f474fe780e2408368565f1f421302a5fcb488583a39c935de888ca90de8f634e1bdf1053026db8311836713b6a929f307fe89a123bd32425
7
+ data.tar.gz: bf504967d4185606afeab68700380003f917ffe65cb90e366b8e0d5561264ad2d8016066a04923d60b439d99c030b42fd2b203543b6c32df65b919f0db23dfb2
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.12)
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.12"
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,18 +30,20 @@ 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
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.10
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: 2023-11-26 00:00:00.000000000 Z
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