stealth_browser_automation 1.1.14 → 1.1.15

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/browserfactory.rb +12 -12
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 21640c82b73b41bf364eed2b7c4335f0ab277c9c
4
- data.tar.gz: 01db4550704f75599a64b6bb9932cc6774cda8a3
3
+ metadata.gz: 00286f6d3b50ffb0711be6823fba844a7e2058a9
4
+ data.tar.gz: 9054fae3844772ed71b7e8a1b438785c366d6e47
5
5
  SHA512:
6
- metadata.gz: 7baf5aec88a335e0e3626764c8b6084a28ad7e0c9f74f98bcaa6a05b89a5eb038ea883456571eaae1c5270b6013c9eeeb50223f123ea776ab9925b3c23517554
7
- data.tar.gz: f41dbe4c41e6de7eac6109efdcf5a27e2467f8af036af7bc965b2b348268bbf0f12558795d91f554a091cb282913b3dd276a0776d96213ec4eb7497f66759d3f
6
+ metadata.gz: 5ea645f15d68bbeacf6cd437849c1239e340073a1fae83b2f6baef7d38199244f1c9eb018ccdad193f541522a7015a4aeac3a879be270e86b5e647bd7d719433
7
+ data.tar.gz: 4b45e8ab0311a4a0e23cb83e2762c094d864380d1a0c3d98790620367762f8edd067e698748eada2b07586f3165d0b0b739d8dcd23f2683bdad1dd876fc7ff1c
@@ -542,13 +542,13 @@ module BlackStack
542
542
  # Close the browser only if itIsMe? returns true.
543
543
  # Set nil to @@browser, @@pid, @@profile_name, @@driver, @@type.
544
544
  def self.destroy
545
- if self.itIsMe?
545
+ #if self.itIsMe?
546
546
  begin
547
547
  # borro el contenido de PROFILE_LOCK_FILENAME
548
- if !@@profile_name.nil?
549
- fname = PROFILE_LOCK_FILENAME.gsub('%PROFILE_NAME%', @@profile_name)
550
- File.open(fname,'w')
551
- end
548
+ #if !@@profile_name.nil?
549
+ # fname = PROFILE_LOCK_FILENAME.gsub('%PROFILE_NAME%', @@profile_name)
550
+ # File.open(fname,'w')
551
+ #end
552
552
 
553
553
  #
554
554
  if @@type == BlackStack::BrowserFactory::TYPE_CHROME
@@ -598,7 +598,7 @@ module BlackStack
598
598
  self.release
599
599
  raise e
600
600
  end
601
- end # if self.isItMe?
601
+ #end # if self.isItMe?
602
602
 
603
603
  # reseteo las variables
604
604
  @@browser = nil
@@ -637,9 +637,9 @@ module BlackStack
637
637
  @@profile_name = mimic_profile_id
638
638
 
639
639
  #
640
- fname = PROFILE_LOCK_FILENAME.gsub('%PROFILE_NAME%', @@profile_name)
641
- File.open(fname,'w') if !File.file?(fname)
642
- @@fd_profile_lock = File.open(fname,'r+')
640
+ #fname = PROFILE_LOCK_FILENAME.gsub('%PROFILE_NAME%', @@profile_name)
641
+ #File.open(fname,'w') if !File.file?(fname)
642
+ #@@fd_profile_lock = File.open(fname,'r+')
643
643
 
644
644
  begin
645
645
  # Levantar el flag de reserva a mi favor
@@ -736,9 +736,9 @@ module BlackStack
736
736
  @@profile_name = profile_name
737
737
 
738
738
  #
739
- fname = PROFILE_LOCK_FILENAME.gsub('%PROFILE_NAME%', @@profile_name)
740
- File.open(fname,'w') if !File.file?(fname)
741
- @@fd_profile_lock = File.open(fname, 'r+')
739
+ #fname = PROFILE_LOCK_FILENAME.gsub('%PROFILE_NAME%', @@profile_name)
740
+ #File.open(fname,'w') if !File.file?(fname)
741
+ #@@fd_profile_lock = File.open(fname, 'r+')
742
742
 
743
743
  #
744
744
  agent = @@arAgents[0] if user_agent.nil?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stealth_browser_automation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.14
4
+ version: 1.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Daniel Sardi