blackstack_commons 1.1.22 → 1.1.23

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 +10 -10
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 54da7e208a27cbb90b758e1aba532ea49c7dab4d
4
- data.tar.gz: b976cc150ae7792bd69699e6060bc46e1d325075
3
+ metadata.gz: 345922a44893caebb3f49941d727caeaec60b5cb
4
+ data.tar.gz: 7273fc7489470e892f5c6acabbaf01de6400d059
5
5
  SHA512:
6
- metadata.gz: 619c854dad06c9fe6d9da134beb2455c86117bbcda4b2d55e9c5b9f87ab2beb278c68e17f377d6e8e3cbabde31c333290bbf04d83d367987317adc09269b53f9
7
- data.tar.gz: 3867591d2a31f27bc0d8a3801e72314859d2c9dd0fe9477ad1fc4afae4bc2721c0ae8d4c4eee5cf270edfef699a80d57d8a5a5e287afc724f707774e177afd57
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blackstack_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.22
4
+ version: 1.1.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Daniel Sardi