pampa_workers 1.1.8 → 1.1.10

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c065e193d9eea6e4b7d79e69a741cf023372be62
4
- data.tar.gz: a07698964231067c21cdcab1d9679079aa00466e
3
+ metadata.gz: ff32f498a9f417bca1cd87cf09b5a834d6682d02
4
+ data.tar.gz: e078e98d93b15003592bd75c63615ae04cc97add
5
5
  SHA512:
6
- metadata.gz: 229fafb626480f6c6d9f51fc65e2e21de5f44363335358ed5a260e72be9f2ea64dc22a7abdaa2b76ec06dc4d6d8815ab66fd2de33f148338565022b753845b26
7
- data.tar.gz: 436082a37b96358b03c44e4a985b4bca623d868f1932205f8709ad3d4a05419e339d745df0efa42b5cccf9628345556a781cc0afdb16fe68d00de49cdecac8b5
6
+ metadata.gz: 495dd61d71142f0c760624819b78693647b4251c870fab166694cb1c55f1a8b8debdda627a08aa1c9513b131bd51b9d1deff9cd8fd89af20b12e44f55d2be589
7
+ data.tar.gz: be9351da878c5670bdf8836ec79781395225a23dc6d632b6312d67084ff7eaa6d2c5c07f095013b03b8cd6f260e9bb312cde3d622d10bdccec103d99e63c16b7
@@ -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
@@ -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.8
4
+ version: 1.1.10
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-02-24 00:00:00.000000000 Z
11
+ date: 2020-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: websocket