api_six_client 1.5.5 → 1.5.6

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: 834c8a1280df7efc3885a5a1eecdf63183cbf70fde573363d07e1f1c9399b292
4
- data.tar.gz: c8abc5d5d829ae5e54048de2cf1e91db4750a11fdb1422507ba97d1c02130647
3
+ metadata.gz: 49a37f5d9f10386f37c24266e8a4e80025af81771e8fb02d6f7eba220221f846
4
+ data.tar.gz: 2c9cfafba5bf45e23800509ad628e26d15dbd45e75306024f333acf86cf70ee0
5
5
  SHA512:
6
- metadata.gz: c589f501c5bcfcfa8fc4a4844fcce12a0f8fb56559811ce521bd90374cef0030d1213960fdb81221468ab8b697eec6ec421d0ea3917cc804e06dc61e6060c8f9
7
- data.tar.gz: 76ede5a71ffd71bebb129a94bb738c19cea9500a3c8b1083dbbe48db6d596666d2061d13f58b2b2c0ecf3bcfeba9941357630abc2266a010119c09baebd77beb
6
+ metadata.gz: fac9892134780019a2782fd303a84710b3f2a047a150adf266acf7828a340a2f6e064e0bba3d4fa0d9f78e450d495f5c68eb1be2f847e08a5c835175a0d7723b
7
+ data.tar.gz: ba8a4fa855b1e29f49110bc1aff6cd1d3321862ec3bd535888c5f6fb7996f66e20a267eba08422f1a6c24f46b8b8fa0e27140f9b2dcb2a8ba92be596f75f9f8b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- api_six_client (1.5.5)
4
+ api_six_client (1.5.6)
5
5
  faraday (~> 2)
6
6
 
7
7
  GEM
@@ -2,14 +2,12 @@
2
2
 
3
3
  module ApiSixClient
4
4
  class BaseInt < Base
5
- SERVICES_OUTSIDE_K8S = %w[olc_int cad_int]
6
-
7
5
  DEFAULT_INTRANET_MAPPING = ->(service_name) {
8
6
  { k8s_service: "http://#{service_name.gsub('_int', '-api')}", api_int_path: 'api_int'}
9
7
  }
10
8
  INTRANET_MAPPING = {
11
- # 'olc_int' => { k8s_service: 'http://core-web:3000', api_int_path: 'api_hiden' },
12
- # 'cad_int' => { k8s_service: 'http://core-web:3000', api_int_path: 'api_int' },
9
+ 'olc_int' => { k8s_service: 'http://core-web:3000', api_int_path: 'api_hiden' },
10
+ 'cad_int' => { k8s_service: 'http://core-web:3000', api_int_path: 'api_int' },
13
11
  'cuna_int' => { k8s_service: 'http://cuna-api:3000', api_int_path: 'api_int' },
14
12
  'val' => { k8s_service: 'http://val:8000', api_int_path: 'api' },
15
13
  'coma_int' => { k8s_service: 'http://coma-api:3000', api_int_path: 'api_int' },
@@ -48,7 +46,6 @@ module ApiSixClient
48
46
  private
49
47
  def current_service
50
48
  service_name = self.class.name.demodulize.underscore
51
- return nil if service_name.in?(SERVICES_OUTSIDE_K8S)
52
49
 
53
50
  INTRANET_MAPPING[service_name] || DEFAULT_INTRANET_MAPPING.call(service_name)
54
51
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ApiSixClient
4
- VERSION = "1.5.5"
4
+ VERSION = "1.5.6"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_six_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.5
4
+ version: 1.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugene Dobrorodnov