stealth_browser_automation 1.1.16 → 1.1.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/browserfactory.rb +2 -0
- data/lib/proxy.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5101e83e5a5527417fadeeab43b8a5e7feebde7c
|
4
|
+
data.tar.gz: 67d98fd25a15a487bcad87eb1d04e63569e73ed2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1e28ce3ac72e15336ab63b4fc648bfb957bf88815f51f964456987ba58cf9738c7d31666736c9d7cf4b68188914dc173c70f65db667e1ce7bec72b694406b44
|
7
|
+
data.tar.gz: 0d754dc45c8496dd5ee9c06d49885ceb417a1f29f3ffea515d961f2ad94a699420ce44588570d8864cd2d96d8bb21982c7d78aa4de9e579f6a4cb3fba28e4e99
|
data/lib/browserfactory.rb
CHANGED
@@ -661,11 +661,13 @@ module BlackStack
|
|
661
661
|
|
662
662
|
if !res.has_key?('status')
|
663
663
|
if i>=max
|
664
|
+
BrowserFactory.destroy # destruyo el browser que pudo haber sido creado
|
664
665
|
self.release() # libero el flag de reserva de turno para crar un browser
|
665
666
|
raise "Error requesting Mimic to start (try #{i.to_s}): #{res.to_s}"
|
666
667
|
end
|
667
668
|
elsif res['status'] != 'OK'
|
668
669
|
if i>=max
|
670
|
+
BrowserFactory.destroy # destruyo el browser que pudo haber sido creado
|
669
671
|
self.release() # libero el flag de reserva de turno para crar un browser
|
670
672
|
raise "Error requesting Mimic to start (try #{i.to_s}): #{res.to_s}"
|
671
673
|
end
|
data/lib/proxy.rb
CHANGED
@@ -8,6 +8,7 @@ module BlackStack
|
|
8
8
|
|
9
9
|
Proxy.dataset = Proxy.dataset.disable_insert_output
|
10
10
|
|
11
|
+
# TODO: deprecated
|
11
12
|
def self.availablesWithStealth(
|
12
13
|
process,
|
13
14
|
discretion_seconds_to_wait_if_proxy_has_been_reserved_but_didnt_finish,
|
@@ -31,6 +32,7 @@ module BlackStack
|
|
31
32
|
return DB[q].first[:c].to_i
|
32
33
|
end
|
33
34
|
|
35
|
+
# TODO: deprecated
|
34
36
|
def self.getWithStealth(
|
35
37
|
process,
|
36
38
|
discretion_seconds_to_wait_if_proxy_has_been_reserved_but_didnt_finish,
|
@@ -54,11 +56,13 @@ module BlackStack
|
|
54
56
|
)
|
55
57
|
BlackStack::Proxy.where(:reservation_id=>rid).first
|
56
58
|
end
|
57
|
-
|
59
|
+
|
60
|
+
# TODO: deprecated
|
58
61
|
def startJob()
|
59
62
|
DB.execute("UPDATE proxy SET reservation_start_time=GETDATE() WHERE [id]='#{self.id}'")
|
60
63
|
end
|
61
64
|
|
65
|
+
# TODO: deprecated
|
62
66
|
# TODO: Reemplazar el parametro records_before_long_sleep por un registro en la tabla PARAMS
|
63
67
|
def endJob(id_client, result, description, records_before_long_sleep)
|
64
68
|
# => #464
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stealth_browser_automation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.17
|
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-01-
|
11
|
+
date: 2020-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mini_magick
|