blackstack-core 1.2.30 → 1.2.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/functions.rb +3 -6
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6319585aa6afd55c363b5b7e59acc4afe407a741d22306831b3c5cef48724c76
4
- data.tar.gz: 2d7e134595693737c9beb9cfabaf05ac502a7631a79bafbbb5b60ae03cd90512
3
+ metadata.gz: f9422bf619ee5c62514cede0f715c896f9721bd679c106b328dce187a5a404a6
4
+ data.tar.gz: 46f704d4f1ce7e8c6d5664ef4c3de74bc5a1dd6179e42f8247956410445fccb4
5
5
  SHA512:
6
- metadata.gz: f6d4de6e017a5871b60a1d1f3a987e9233ac2df83700ba3d794ddf843f5ffd3ec30de9efd4544eb4415e4f9381898826dd80647d8250c89d6d0f3001c38355ed
7
- data.tar.gz: 3e8c922cb98658ef9677b4e5badb5e4592f112b71d6a76d79ac59361f19cfbb0ad94558bbaea5a6ad99493a876eda33f224ccdde11e0cebc4d4e09716a70c0a7
6
+ metadata.gz: 4cffd17c2b4a54c112fc6cacd6fec8a3f48b9286ea83e401662770a6580f4c40c030a229be9b3a066b965fb5a853cb79eb85d7ae15d358e8ca5908d0fe830eab
7
+ data.tar.gz: b71b7512bd2e941742359dd7135772956ed8956eafb98dc1c459760e0055a8009faabb14d3bd9e300047b401a747f053794cce0deaf6ddfd8cb4d3e7b2ef9ef9
data/lib/functions.rb CHANGED
@@ -941,11 +941,9 @@ module BlackStack
941
941
 
942
942
  while attempts < DEFAULT_RETRY_ATTEMPTS
943
943
  begin
944
- uri = URI.parse(url)
945
-
946
944
  # Create a basic Faraday connection
947
945
  conn = Faraday.new(
948
- url: "#{uri.scheme}://#{uri.host}",
946
+ url: url, #"#{uri.scheme}://#{uri.host}:#{uri.port}",
949
947
  ssl: { verify: ssl_verify_mode != OpenSSL::SSL::VERIFY_NONE },
950
948
  request: {
951
949
  open_timeout: DEFAULT_OPEN_TIMEOUT,
@@ -1018,9 +1016,8 @@ module BlackStack
1018
1016
  while (nTries < max_retries && bSuccess == false)
1019
1017
  begin
1020
1018
  nTries = nTries + 1
1021
- uri = URI(url)
1022
- res = BlackStack::Netting::call_post(uri, params, ssl_verify_mode) if method==BlackStack::Netting::CALL_METHOD_POST
1023
- res = BlackStack::Netting::call_get(uri, params, ssl_verify_mode) if method==BlackStack::Netting::CALL_METHOD_GET
1019
+ res = BlackStack::Netting::call_post(url, params, ssl_verify_mode) if method==BlackStack::Netting::CALL_METHOD_POST
1020
+ res = BlackStack::Netting::call_get(url, params, ssl_verify_mode) if method==BlackStack::Netting::CALL_METHOD_GET
1024
1021
  parsed = JSON.parse(res.body)
1025
1022
  if (parsed['status']==BlackStack::Netting::SUCCESS)
1026
1023
  bSuccess = true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blackstack-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.30
4
+ version: 1.2.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Daniel Sardi