blackstack_commons 1.1.21 → 1.1.22

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 -4
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 33db41aa5cfe363ecbe0e717e953177118b5d809
4
- data.tar.gz: e182e9b8d8b744fe74101346cdbac4a6f4c49c9c
3
+ metadata.gz: 54da7e208a27cbb90b758e1aba532ea49c7dab4d
4
+ data.tar.gz: b976cc150ae7792bd69699e6060bc46e1d325075
5
5
  SHA512:
6
- metadata.gz: addc2c6437dceab39acca80eb24b9694d4c83d6d5ccd37b6a30843cec5b3b95f01a4d281f32d04003e0d77c99924de448b28ce728dc7999edecf8c92714fe3f1
7
- data.tar.gz: b46fa3ce44d53e01d43d9df23ed5d3c4e2e8e49bfa008fbaf7f52661b675ccc7162ab70f59d3f852ae43aed4649c5d57379768df4ed03d1bbe47feb5ce5a8a20
6
+ metadata.gz: 619c854dad06c9fe6d9da134beb2455c86117bbcda4b2d55e9c5b9f87ab2beb278c68e17f377d6e8e3cbabde31c333290bbf04d83d367987317adc09269b53f9
7
+ data.tar.gz: 3867591d2a31f27bc0d8a3801e72314859d2c9dd0fe9477ad1fc4afae4bc2721c0ae8d4c4eee5cf270edfef699a80d57d8a5a5e287afc724f707774e177afd57
data/lib/functions.rb CHANGED
@@ -510,6 +510,7 @@ module BlackStack
510
510
  # build the lockfile name
511
511
  puts ''
512
512
  puts "call_post.url:#{url}:."
513
+ =begin
513
514
  x = 0
514
515
 
515
516
  if BlackStack::Netting.max_api_call_channels.to_i > 0
@@ -519,7 +520,7 @@ puts "call_post.url.1:."
519
520
  # lock the file
520
521
  BlackStack::Netting.lockfiles[x].flock(File::LOCK_EX) if use_lockfile
521
522
  end
522
-
523
+ =end
523
524
  begin
524
525
  puts "call_post.url.2:."
525
526
  # do the call
@@ -540,19 +541,19 @@ puts "call_post.url.2:."
540
541
  end
541
542
  puts "call_post.url.3:."
542
543
  # release the file
543
- BlackStack::Netting.lockfiles[x].flock(File::LOCK_UN) if use_lockfile && BlackStack::Netting.max_api_call_channels.to_i > 0
544
+ # BlackStack::Netting.lockfiles[x].flock(File::LOCK_UN) if use_lockfile && BlackStack::Netting.max_api_call_channels.to_i > 0
544
545
  puts "call_post.url.4:."
545
546
  rescue => e
546
547
  # release the file
547
548
  puts "call_post.url.5:."
548
- BlackStack::Netting.lockfiles[x].flock(File::LOCK_UN) if use_lockfile && BlackStack::Netting.max_api_call_channels.to_i > 0
549
+ # BlackStack::Netting.lockfiles[x].flock(File::LOCK_UN) if use_lockfile && BlackStack::Netting.max_api_call_channels.to_i > 0
549
550
  puts "call_post.url.6:."
550
551
  # elevo la excepcion
551
552
  raise e
552
553
  ensure
553
554
  # release the file
554
555
  puts "call_post.url.7:."
555
- BlackStack::Netting.lockfiles[x].flock(File::LOCK_UN) if use_lockfile && BlackStack::Netting.max_api_call_channels.to_i > 0
556
+ # BlackStack::Netting.lockfiles[x].flock(File::LOCK_UN) if use_lockfile && BlackStack::Netting.max_api_call_channels.to_i > 0
556
557
  puts "call_post.url.8:."
557
558
  end
558
559
  puts "call_post.url.9:."
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blackstack_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.21
4
+ version: 1.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Daniel Sardi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-30 00:00:00.000000000 Z
11
+ date: 2020-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: content_spinning