stealth_browser_automation 1.1.20 → 1.1.21

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 +6 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0964be1f00d2a923bcb474e9cd1a97ba25ddc129
4
- data.tar.gz: 4e102526143d94c3fb6c99df7fc09619766ca89d
3
+ metadata.gz: 98206842d280f91c4f006f89947334f93f3c0d4a
4
+ data.tar.gz: 94b8ad50fb05841ab40028a81cfdc94805ecd6d3
5
5
  SHA512:
6
- metadata.gz: b12c07cb72a9e919eba74193298f8779afacb54190a0d466521be38dd28d7982068ad9a2738f1b7fab2e9eacc84996437df73404faee8a0194dd95189545f702
7
- data.tar.gz: 052fc21921ff852129f2a3d4d85377f27190ccb3f4e7edb479631d8dc629725cd2abe07e2b1041ce3b15b06b5d57b7d2ac7a624291acebfca3e37fdf66d47051
6
+ metadata.gz: c5749c9f76fc2e89a50d0a5dd526f06af5b6aae89c18c264326cb78a509eed502bb594e6931f4294487bfd8937179ff93025c801afcef3933de9dcf6486cf8e2
7
+ data.tar.gz: 6789965897ab92d2aa576188a5fc1fd60d42c1086d83ffe13949d992419e396808e3ccd074df40e99d003c255e70cd5d562fd7b8d5681e2d915820cf0a7e0e94
@@ -654,6 +654,12 @@ module BlackStack
654
654
  while (i<max && url_2.nil?)
655
655
  i += 1
656
656
 
657
+ # cierro el perfil por si estaba corriendo
658
+ url = "http://127.0.0.1:#{BlackStack::StealthBrowserAutomation::Multilogin::mla_local_port}/api/v1/profile/stop?profileId=#{@@profile_name}"
659
+ uri = URI.parse(url)
660
+ body = Net::HTTP.get(uri)
661
+ res = JSON.parse(body)
662
+
657
663
  url = "http://127.0.0.1:#{BlackStack::StealthBrowserAutomation::Multilogin::mla_local_port}/api/v1/profile/start?automation=true&profileId=#{@@profile_name}"
658
664
  uri = URI.parse(url)
659
665
  body = Net::HTTP.get(uri)
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.20
4
+ version: 1.1.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Daniel Sardi