blackstack_commons 1.1.33 → 1.1.34

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/functions.rb +6 -5
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 96d14cd4096908b9904b488cb6d0b50f4ba46e1a
4
- data.tar.gz: 39cf2e762c291ca387e954efc5ce83919a61637a
3
+ metadata.gz: 1bf323bf87e9ad791105370e7fbd0a41c7fc50ae
4
+ data.tar.gz: 1c7bf646475bb5ab9c1b05080b68c0ded854bced
5
5
  SHA512:
6
- metadata.gz: b9a3ac449388ea64b55f269397ec5dd304b54ab748b1e3aea83fdc731cabc552dc4e542996b96b7a058043c7622ded33a8ccc290aa12c736b2b1e7d2b323f934
7
- data.tar.gz: 4d61c4496735d814c33559705940998ae8cb6718ba35b6f8faddf5b64585328fd545d82bc39b825301925e883287aed6f5c0acb761a4e85830ba7d66442b909a
6
+ metadata.gz: 7914ab263ca9f5ba3d853212bebeea28298aad8e0626cfca93f1904c3bc52c4ca342277bec7f619af3e8737b8b08e4cf7483cb006e2fcb3ae6b39584505b1b46
7
+ data.tar.gz: 162f8cb3bfc71412a2ca5e29e9c31c53a09fefa073172c716d014fe4376d35284b67b2ce7b0369119ea93ae875871b2605d316284e013b9324a0a673bb499102
@@ -16,7 +16,7 @@ module BlackStack
16
16
  # * https://stackoverflow.com/questions/8577223/ruby-get-the-file-being-executed
17
17
  # * https://stackoverflow.com/questions/7399882/ruby-getting-path-from-pathfilename/7400057
18
18
  #
19
- def self.require_in_working_path(filename, path,show_path_info=false)
19
+ def self.require_in_working_path(filename, path, show_path_info=false)
20
20
  puts '' if show_path_info
21
21
  path = File.expand_path File.dirname(path)
22
22
  #path = Dir.pwd
@@ -535,6 +535,7 @@ module BlackStack
535
535
  # max_channels: this method use lockfiles to prevent an excesive number of API calls from each datacenter. There is not allowed more simultaneous calls than max_channels.
536
536
  # TODO: setup max_simultaneus_calls in the configurtion file.
537
537
  def self.call_post(url, params = {}, ssl_verify_mode=BlackStack::Netting::DEFAULT_SSL_VERIFY_MODE, use_lockfile=true)
538
+ =begin
538
539
  # build the lockfile name
539
540
  x = 0
540
541
  if BlackStack::Netting.max_api_call_channels.to_i > 0
@@ -543,7 +544,7 @@ module BlackStack
543
544
  # lock the file
544
545
  BlackStack::Netting.lockfiles[x].flock(File::LOCK_EX) if use_lockfile
545
546
  end
546
-
547
+ =end
547
548
  begin
548
549
 
549
550
  # do the call
@@ -563,16 +564,16 @@ module BlackStack
563
564
  end
564
565
 
565
566
  # release the file
566
- BlackStack::Netting.lockfiles[x].flock(File::LOCK_UN) if use_lockfile && BlackStack::Netting.max_api_call_channels.to_i > 0
567
+ # BlackStack::Netting.lockfiles[x].flock(File::LOCK_UN) if use_lockfile && BlackStack::Netting.max_api_call_channels.to_i > 0
567
568
  rescue => e
568
569
  # release the file
569
- BlackStack::Netting.lockfiles[x].flock(File::LOCK_UN) if use_lockfile && BlackStack::Netting.max_api_call_channels.to_i > 0
570
+ # BlackStack::Netting.lockfiles[x].flock(File::LOCK_UN) if use_lockfile && BlackStack::Netting.max_api_call_channels.to_i > 0
570
571
 
571
572
  # elevo la excepcion
572
573
  raise e
573
574
  ensure
574
575
  # release the file
575
- BlackStack::Netting.lockfiles[x].flock(File::LOCK_UN) if use_lockfile && BlackStack::Netting.max_api_call_channels.to_i > 0
576
+ # BlackStack::Netting.lockfiles[x].flock(File::LOCK_UN) if use_lockfile && BlackStack::Netting.max_api_call_channels.to_i > 0
576
577
  end
577
578
 
578
579
  # return
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.33
4
+ version: 1.1.34
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-05-24 00:00:00.000000000 Z
11
+ date: 2020-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: content_spinning