api_six_client 1.4.17 → 1.5.1

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: b189d81e839dbb2a9a26192da8f801c63d9c435210ce22064a40c229875cc100
4
- data.tar.gz: 4c70d91525ec16bf8aec13e5d21d178fce3492396d74675dbcff305765ed68d4
3
+ metadata.gz: 4770d0b4e1efdb337288881828be1d95b0978e28e08a1035babb505bfad9ebf0
4
+ data.tar.gz: 2e2c2e717f0c7a728183d46f6a0c328d1113284d94a63e69fb2075256aa6f645
5
5
  SHA512:
6
- metadata.gz: 106ac55ca45e0b0e132aed0b7d2fc020fbca63f1206acb73cbb920ccb24613da4769eed70160ea707188a8587b15845c16b8be282e033f43dad60ec133fdec7f
7
- data.tar.gz: e4167af44078f638de5d69f75cb365e1ffef905a7c6a9b72940e0a1f2bce8cafdf4588b6a5908e9377fe762093f6cdc4b2d5baf10cfabd65859b9703d2adf594
6
+ metadata.gz: 45df367a82295b73aedc9d272c878181807a24f2a4f803912096787acb1e29d6d6e6a43706b8424df239eb3c138e862a98832874de58025e326e9d0ebd3e0f12
7
+ data.tar.gz: fe2240087088cc96254a32dbe3cd312b2324fe4d3637ac68fdaa698cdda5dfd7e9ece33e2f466af19931ae11a530873874da5bc55eb2e397d07582e05d1ef95d
data/Gemfile.lock CHANGED
@@ -1,20 +1,20 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- api_six_client (1.4.17)
4
+ api_six_client (1.5.1)
5
5
  faraday (~> 2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- base64 (0.2.0)
11
- faraday (2.7.12)
12
- base64
13
- faraday-net_http (>= 2.0, < 3.1)
14
- ruby2_keywords (>= 0.0.4)
15
- faraday-net_http (3.0.2)
10
+ faraday (2.9.0)
11
+ faraday-net_http (>= 2.0, < 3.2)
12
+ faraday-net_http (3.1.0)
13
+ net-http
14
+ net-http (0.4.1)
15
+ uri
16
16
  rake (13.0.6)
17
- ruby2_keywords (0.0.5)
17
+ uri (0.13.0)
18
18
 
19
19
  PLATFORMS
20
20
  arm64-darwin-21
@@ -2,14 +2,15 @@
2
2
 
3
3
  module ApiSixClient
4
4
  class BaseInt < Base
5
- APP_OUTSIDE_K8S = %w[Grunnbok Brreg Projects]
6
- SERVICES_OUTSIDE_K8S = %w[gbk_int prj_int brg_int]
5
+ APP_OUTSIDE_K8S = %w[Grunnbok Brreg]
6
+ SERVICES_OUTSIDE_K8S = %w[gbk_int brg_int olc_int cad_int]
7
+
7
8
  DEFAULT_INTRANET_MAPPING = ->(service_name) {
8
9
  { k8s_service: "http://#{service_name.gsub('_int', '-api')}", api_int_path: 'api_int'}
9
10
  }
10
11
  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' },
12
+ # 'olc_int' => { k8s_service: 'http://core-web:3000', api_int_path: 'api_hiden' },
13
+ # 'cad_int' => { k8s_service: 'http://core-web:3000', api_int_path: 'api_int' },
13
14
  'val' => { k8s_service: 'http://val:8000', api_int_path: 'api' },
14
15
  }.freeze
15
16
 
@@ -36,8 +37,8 @@ module ApiSixClient
36
37
  end
37
38
 
38
39
  def intranet_connection?
39
- return false if Rails.application.class.to_s.split('::').first.in?(APP_OUTSIDE_K8S)
40
40
  return false if ENV['RAILS_ENV'] == 'development'
41
+ return false if Rails.application.class.to_s.split('::').first.in?(APP_OUTSIDE_K8S)
41
42
 
42
43
  current_service.present?
43
44
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ApiSixClient
4
- VERSION = "1.4.17"
4
+ VERSION = "1.5.1"
5
5
  end
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.4.17
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugene Dobrorodnov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-02-07 00:00:00.000000000 Z
11
+ date: 2024-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday