pampa_workers 1.1.7 → 1.1.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c41ed9a369c934463212f9d6434c098ed971ef13
4
- data.tar.gz: 2330480ddf8fad11014a8e0c81b25e86a1dde827
3
+ metadata.gz: aba9aea867a845f00fc38af85c85f1fe3c8d0afc
4
+ data.tar.gz: f358e41e0bc8208cfc8c566b3058248d1d5912be
5
5
  SHA512:
6
- metadata.gz: 0b1ee6b2b57d5e0d7a2cc5e7cac5c9442624f61901a1d6d269ce94100f4f3f474d03c08711160107293da355b5a08835b2feb5f905a1469f82509e41a3d86d2d
7
- data.tar.gz: 0580ff2bb92c2a8f095c8731b55243c2d2d48cb173cfe54f1ba8a94b0b14d54145b39eccd1fef4d6c1d3d12d3eaf1e0cb18017461cc2ccee8a3ba00ed075f0af
6
+ metadata.gz: ea4e86c9fc7bec5f3a98c4745a0b1d46359e67a1ef9805323aa3b1609deccd6e309897f2c5ae15b0c2a6c2adfa935ad54e72ab7fd3599de501a78f8fb344df07
7
+ data.tar.gz: c8b7ae792c64d07e44800544eed195b14add96bc83130bb0a240ca705340d658e977f5c82d44d149f43b33e91a535570b1e4eaf5fc12b72e1a23e1b7ea8e46e8
@@ -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:::User', :key=>:id_user_to_contact
13
+ many_to_one :user_to_contect, :class=>'BlackStack::User', :key=>:id_user_to_contact
14
14
 
15
15
 
16
16
  # -----------------------------------------------------------------------------------------
@@ -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
@@ -118,9 +121,9 @@ module BlackStack
118
121
  "uid=#{lnuser['id']}&" +
119
122
  "sender_name=#{URI.escape(chat[:sender_name])}&" +
120
123
  "body=#{URI.escape(chat[:body])}&"
121
- #puts ""
122
- #puts "url:#{url}:."
123
- #puts ""
124
+ puts ""
125
+ puts "url:#{url}:."
126
+ puts ""
124
127
  # HELP: File.open('./output3.txt', 'a') { |file| file.write(url + "\r\n") }
125
128
 
126
129
  # push the chat
@@ -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.7
4
+ version: 1.1.14
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-20 00:00:00.000000000 Z
11
+ date: 2020-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: websocket