pampa_workers 1.1.6 → 1.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/client.rb +1 -1
- data/lib/mybotprocess.rb +5 -2
- data/lib/myprocess.rb +1 -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: 2dad18d5f5f7633d9ad7bc4e9e5a772742f6e95a
|
4
|
+
data.tar.gz: 8baca930b019317adca58ca19749e31e2845a35c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c28677eb7d139b247177b3834c7cd67d0b92a079720c6658791fa9c832ba49aae0b9f088c23238a2b609fd0d3ded8b6b5f3d650f290a32698a5e923740fdb43
|
7
|
+
data.tar.gz: a2f4fe384f8d9d5d1a1ad67f40902f8a266d47feab9421a00959e3436982f439c1b64de845b0287687bb1627e920f58f3704c210657627493481cb3e3bbac62a
|
data/lib/client.rb
CHANGED
@@ -10,7 +10,7 @@ module BlackStack
|
|
10
10
|
one_to_many :users, :class=>:'BlackStack::User', :key=>:id_client
|
11
11
|
many_to_one :timezone, :class=>:'BlackStack::Timezone', :key=>:id_timezone
|
12
12
|
many_to_one :billingCountry, :class=>:'BlackStack::LnCountry', :key=>:billing_id_lncountry
|
13
|
-
many_to_one :user_to_contect, :class=>'BlackStack
|
13
|
+
many_to_one :user_to_contect, :class=>'BlackStack::User', :key=>:id_user_to_contact
|
14
14
|
|
15
15
|
|
16
16
|
# -----------------------------------------------------------------------------------------
|
data/lib/mybotprocess.rb
CHANGED
@@ -2,7 +2,7 @@ module BlackStack
|
|
2
2
|
|
3
3
|
# clase de base para todos los bots ejecuten acciones con una cuenta de LinkedIn, Facebook, Twitter, etc.
|
4
4
|
class MyBotProcess < BlackStack::MyRemoteProcess
|
5
|
-
attr_accessor :username, :login_verifications, :run_once
|
5
|
+
attr_accessor :username, :login_verifications, :run_once, :cookies_robot
|
6
6
|
|
7
7
|
# constructor
|
8
8
|
def initialize(
|
@@ -18,7 +18,7 @@ module BlackStack
|
|
18
18
|
self.worker_name = "#{the_worker_name}"
|
19
19
|
self.division_name = the_division_name
|
20
20
|
self.minimum_enlapsed_seconds = the_minimum_enlapsed_seconds
|
21
|
-
|
21
|
+
|
22
22
|
# algunas clases como CreateLnUserProcess o RepairLnUserProcess, trabajan unicamente con el username especificado en este atributo, llamando al access point get_lnuser_by_username.
|
23
23
|
# si este atributo es nil, entonces la clase pide un lnuser a la division, llamando al access point get_lnuser.
|
24
24
|
self.username = nil
|
@@ -32,6 +32,9 @@ module BlackStack
|
|
32
32
|
# si este proceso se corre de forma supevisada, se desa correr el procesamiento una unica vez.
|
33
33
|
# cuando se activa este flag, generalmente se setea el atributo self.username tambien.
|
34
34
|
self.run_once = false
|
35
|
+
|
36
|
+
# preguntar al servidor si el lnuser debe calentar el browser visitando sitios al azar para recolectar cookies
|
37
|
+
self.cookies_robot = true
|
35
38
|
end
|
36
39
|
|
37
40
|
# returns a hash with the parameters of a lnuser
|
data/lib/myprocess.rb
CHANGED
@@ -199,7 +199,7 @@ module BlackStack
|
|
199
199
|
# se notifica al dispatcher de la division
|
200
200
|
def notify()
|
201
201
|
if (self.ws_url==nil || self.ws_port==nil)
|
202
|
-
raise "Cannot notify. Worker has not parameters."
|
202
|
+
raise "Cannot notify. Worker not exists, or it has not parameters, or it is belong another client. Check your api_key, and check the name of the worker."
|
203
203
|
end
|
204
204
|
|
205
205
|
# me notifico a la division. obtengo trabajo
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pampa_workers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.12
|
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-
|
11
|
+
date: 2020-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: websocket
|