blackstack_commons 1.1.18 → 1.1.19

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 +5 -5
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 21d05d94db57a01b9541c7ddd578cf442538a588
4
- data.tar.gz: ee0df7cad3443bb40fbfc21c1a1356c522bbac20
3
+ metadata.gz: d51fd13ba00ed9f54bda8d4a372257f8cbc9f58b
4
+ data.tar.gz: d9af32eb424f6f1865bb56ed74792ec95848efaa
5
5
  SHA512:
6
- metadata.gz: 31ecb5202229ac4a7810c7a3f390c8a9496d805a36be81cff9a0b227612bebe8fa1a5cee2e9fd1ef17f807e226a0a7ffcfd38c6322ae98c4be013bec03ef323e
7
- data.tar.gz: 3d12f6474ba13fd0d084a6bfd6b4f599c1971558eb1bd958b508f1098b2f46ee3c6aadc0feaa9b45fd49681324db9df65c52d004b2efa0cd547682f623db69db
6
+ metadata.gz: b5288b1620883ee73240aea2636a61f47426a07c8dd026d64f9bcd35ee71b6d70d1c9a3cae457d340d61963a93c5776d4b85bcb540ccf5043eb05580454ae6f7
7
+ data.tar.gz: 2ec2a5da7afe4eb951b40b3b0593a5c2c5b67cdf84a64649f47e839fb56bb04da31d3ba62a2d9b43551302c28dfa97b05bcf5edd1b3e2738fb8f54f81bdfdc04
data/lib/functions.rb CHANGED
@@ -509,14 +509,14 @@ module BlackStack
509
509
  def self.call_post(url, params = {}, ssl_verify_mode=BlackStack::Netting::DEFAULT_SSL_VERIFY_MODE, use_lockfile=true)
510
510
  # build the lockfile name
511
511
  x = 0
512
- =begin
512
+
513
513
  if BlackStack::Netting.max_api_call_channels.to_i > 0
514
514
  raise "Max Channels cannot be higher than #{BlackStack::Netting.lockfiles.size.to_s}" if BlackStack::Netting.max_api_call_channels > BlackStack::Netting.lockfiles.size
515
515
  x = rand(BlackStack::Netting.max_api_call_channels)
516
516
  # lock the file
517
517
  BlackStack::Netting.lockfiles[x].flock(File::LOCK_EX) if use_lockfile
518
518
  end
519
- =end
519
+
520
520
  begin
521
521
 
522
522
  # do the call
@@ -536,16 +536,16 @@ module BlackStack
536
536
  end
537
537
 
538
538
  # release the file
539
- # BlackStack::Netting.lockfiles[x].flock(File::LOCK_UN) if use_lockfile && BlackStack::Netting.max_api_call_channels.to_i > 0
539
+ BlackStack::Netting.lockfiles[x].flock(File::LOCK_UN) if use_lockfile && BlackStack::Netting.max_api_call_channels.to_i > 0
540
540
  rescue => e
541
541
  # release the file
542
- # BlackStack::Netting.lockfiles[x].flock(File::LOCK_UN) if use_lockfile && BlackStack::Netting.max_api_call_channels.to_i > 0
542
+ BlackStack::Netting.lockfiles[x].flock(File::LOCK_UN) if use_lockfile && BlackStack::Netting.max_api_call_channels.to_i > 0
543
543
 
544
544
  # elevo la excepcion
545
545
  raise e
546
546
  ensure
547
547
  # release the file
548
- # BlackStack::Netting.lockfiles[x].flock(File::LOCK_UN) if use_lockfile && BlackStack::Netting.max_api_call_channels.to_i > 0
548
+ BlackStack::Netting.lockfiles[x].flock(File::LOCK_UN) if use_lockfile && BlackStack::Netting.max_api_call_channels.to_i > 0
549
549
  end
550
550
 
551
551
  # return
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.18
4
+ version: 1.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Daniel Sardi