blackstack_commons 1.1.22 → 1.1.23
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/functions.rb +10 -10
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 345922a44893caebb3f49941d727caeaec60b5cb
|
4
|
+
data.tar.gz: 7273fc7489470e892f5c6acabbaf01de6400d059
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f67ecc32793dc0d973afde9f79ebfca57a0119dafcd9f37a9c75bc72e858f014adb137356f0482f65ff0bd5c304c5e4c5e18a5c1800ca6eef1f3f2f5fa07e4fd
|
7
|
+
data.tar.gz: 9cd3982e6265e59c742e02a44165d8d78cef80747512c5700d57818b887878ed0c11d8f49043e22dd339faed61666936cef795e630440b6039e8b21b9b4620f0
|
data/lib/functions.rb
CHANGED
@@ -508,8 +508,8 @@ module BlackStack
|
|
508
508
|
# TODO: setup max_simultaneus_calls in the configurtion file.
|
509
509
|
def self.call_post(url, params = {}, ssl_verify_mode=BlackStack::Netting::DEFAULT_SSL_VERIFY_MODE, use_lockfile=true, allow_redirection=true)
|
510
510
|
# build the lockfile name
|
511
|
-
puts ''
|
512
|
-
puts "call_post.url:#{url}:."
|
511
|
+
#puts ''
|
512
|
+
#puts "call_post.url:#{url}:."
|
513
513
|
=begin
|
514
514
|
x = 0
|
515
515
|
|
@@ -522,7 +522,7 @@ puts "call_post.url.1:."
|
|
522
522
|
end
|
523
523
|
=end
|
524
524
|
begin
|
525
|
-
puts "call_post.url.2:."
|
525
|
+
#puts "call_post.url.2:."
|
526
526
|
# do the call
|
527
527
|
uri = URI(url)
|
528
528
|
ret = Net::HTTP.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https', :verify_mode => ssl_verify_mode) do |http|
|
@@ -539,24 +539,24 @@ puts "call_post.url.2:."
|
|
539
539
|
res.error!
|
540
540
|
end
|
541
541
|
end
|
542
|
-
puts "call_post.url.3:."
|
542
|
+
#puts "call_post.url.3:."
|
543
543
|
# release the file
|
544
544
|
# BlackStack::Netting.lockfiles[x].flock(File::LOCK_UN) if use_lockfile && BlackStack::Netting.max_api_call_channels.to_i > 0
|
545
|
-
puts "call_post.url.4:."
|
545
|
+
#puts "call_post.url.4:."
|
546
546
|
rescue => e
|
547
547
|
# release the file
|
548
|
-
puts "call_post.url.5:."
|
548
|
+
#puts "call_post.url.5:."
|
549
549
|
# BlackStack::Netting.lockfiles[x].flock(File::LOCK_UN) if use_lockfile && BlackStack::Netting.max_api_call_channels.to_i > 0
|
550
|
-
puts "call_post.url.6:."
|
550
|
+
#puts "call_post.url.6:."
|
551
551
|
# elevo la excepcion
|
552
552
|
raise e
|
553
553
|
ensure
|
554
554
|
# release the file
|
555
|
-
puts "call_post.url.7:."
|
555
|
+
#puts "call_post.url.7:."
|
556
556
|
# BlackStack::Netting.lockfiles[x].flock(File::LOCK_UN) if use_lockfile && BlackStack::Netting.max_api_call_channels.to_i > 0
|
557
|
-
puts "call_post.url.8:."
|
557
|
+
#puts "call_post.url.8:."
|
558
558
|
end
|
559
|
-
puts "call_post.url.9:."
|
559
|
+
#puts "call_post.url.9:."
|
560
560
|
# return
|
561
561
|
ret
|
562
562
|
end
|