istox 0.1.157.11.t4 → 0.1.157.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/istox/helpers/grpc_client.rb +2 -9
- data/lib/istox/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1d44758af9ddfc876008db9c38f15552d5619e3daef4f954b8068791e79bfda6
|
|
4
|
+
data.tar.gz: 29b3af8dd4299885c56b43b35dd170e95494874d1d8b8c3328dcbf277c0c5e2e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 82db288849c740293f051b1ebe57b537b7f9c6a1638cc61b8f8d737c5960a7c7a703d92a7f4ec0c7fac4bd2720949b99eec59fa7ac8199629e5f8b434721b11e
|
|
7
|
+
data.tar.gz: 5640bb9097f6e26c69df4ba05a15013b9b9901f055572f28afaee7efeee26174d2cb950bd2c9dc0db43906e38154330c03e80413fac7577612e007cfcf2b60dc
|
|
@@ -3,11 +3,9 @@ require 'istox/helpers/logger'
|
|
|
3
3
|
module Istox
|
|
4
4
|
class GrpcClient
|
|
5
5
|
class << self
|
|
6
|
-
def add_host(host_type, url
|
|
6
|
+
def add_host(host_type, url)
|
|
7
7
|
@@hosts = {} unless defined?(@@hosts)
|
|
8
|
-
@@ssl_certs = {} unless defined?(@@ssl_certs)
|
|
9
8
|
|
|
10
|
-
@@ssl_certs[host_type] = ssl_certificate unless ssl_certificate.nil? || ssl_certificate.empty?
|
|
11
9
|
@@hosts[host_type] = url
|
|
12
10
|
end
|
|
13
11
|
|
|
@@ -84,12 +82,7 @@ module Istox
|
|
|
84
82
|
|
|
85
83
|
log.info 'Reinitiating to grpc host at ' + host_url
|
|
86
84
|
t1 = Time.now
|
|
87
|
-
|
|
88
|
-
if @@ssl_certs[host_type]
|
|
89
|
-
log.info '[INFO] Using SSL connection...'
|
|
90
|
-
grpc_options[:ssl_certificate] = @@ssl_certs[host_type]
|
|
91
|
-
end
|
|
92
|
-
@@services[get_key(host_type, service)] = ::Gruf::Client.new(service: service, options: grpc_options, client_options: client_options)
|
|
85
|
+
@@services[get_key(host_type, service)] = ::Gruf::Client.new(service: service, options: { hostname: host_url }, client_options: client_options)
|
|
93
86
|
log.info "Time taken for reinitiating grpc host: #{Time.now - t1} seconds"
|
|
94
87
|
end
|
|
95
88
|
|
data/lib/istox/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: istox
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.157.11
|
|
4
|
+
version: 0.1.157.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Siong Leng
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-01-
|
|
11
|
+
date: 2021-01-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: amazing_print
|
|
@@ -542,9 +542,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
542
542
|
version: '0'
|
|
543
543
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
544
544
|
requirements:
|
|
545
|
-
- - "
|
|
545
|
+
- - ">="
|
|
546
546
|
- !ruby/object:Gem::Version
|
|
547
|
-
version:
|
|
547
|
+
version: '0'
|
|
548
548
|
requirements: []
|
|
549
549
|
rubygems_version: 3.0.6
|
|
550
550
|
signing_key:
|