pampa_workers 1.1.15 → 1.1.20
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 +2 -2
- data/lib/mybotprocess.rb +6 -6
- data/lib/pampa_workers.rb +15 -3
- 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: cddf2229bb63894352734f01ddb22fc9cd693e24
|
4
|
+
data.tar.gz: 25917944d729553326bde41314e8f9a1937423f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3296527435dae8322799675b7202949e547602853034b39bfb7858a62d11fac331fa5835a61c19605e9ae66a4ec58600bc1964cbe639ec244398dfc0e199d75
|
7
|
+
data.tar.gz: bfe797aa0e953ad0552e601f5214f88de3e69286fcf9cb51867315395e62a50fc4255637cf52b9246b22ae723e28e348c6e2630ed2afde92635541a3f4c33bd4
|
data/lib/client.rb
CHANGED
@@ -181,7 +181,7 @@ module BlackStack
|
|
181
181
|
if self.resellerSignatureEnabled?
|
182
182
|
return self.from_email_for_ssm.to_s
|
183
183
|
else
|
184
|
-
return
|
184
|
+
return NOTIFICATIONS[:from_email]
|
185
185
|
end
|
186
186
|
end
|
187
187
|
|
@@ -191,7 +191,7 @@ module BlackStack
|
|
191
191
|
if self.resellerSignatureEnabled?
|
192
192
|
return self.from_email_for_ssm.to_s
|
193
193
|
else
|
194
|
-
return
|
194
|
+
return NOTIFICATIONS[:from_name]
|
195
195
|
end
|
196
196
|
end
|
197
197
|
end # class Client
|
data/lib/mybotprocess.rb
CHANGED
@@ -113,14 +113,14 @@ module BlackStack
|
|
113
113
|
url =
|
114
114
|
"#{BlackStack::Pampa::api_protocol}://#{self.ws_url}:#{self.ws_port}/api1.3/pampa/scrape.inbox/notify_lnchat.json?" +
|
115
115
|
"api_key=#{BlackStack::Pampa::api_key}&" +
|
116
|
-
"profile_code=#{
|
117
|
-
"profile_name=#{
|
118
|
-
"profile_headline=#{
|
119
|
-
"first=#{
|
116
|
+
"profile_code=#{CGI.escape(conv[:profile_code])}&" +
|
117
|
+
"profile_name=#{CGI.escape(conv[:profile_name])}&" +
|
118
|
+
"profile_headline=#{CGI.escape(conv[:profile_headline])}&" +
|
119
|
+
"first=#{CGI.escape(conv[:first])}&" +
|
120
120
|
"position=#{chat[:position].to_s}&" +
|
121
121
|
"uid=#{lnuser['id']}&" +
|
122
|
-
"sender_name=#{
|
123
|
-
"body=#{
|
122
|
+
"sender_name=#{CGI.escape(chat[:sender_name])}&" +
|
123
|
+
"body=#{CGI.escape(chat[:body])}&"
|
124
124
|
puts ""
|
125
125
|
puts "url:#{url}:."
|
126
126
|
puts ""
|
data/lib/pampa_workers.rb
CHANGED
@@ -32,6 +32,7 @@ module BlackStack
|
|
32
32
|
|
33
33
|
#
|
34
34
|
@@division_name = nil
|
35
|
+
@@timeout = 7
|
35
36
|
|
36
37
|
def self.division_name()
|
37
38
|
@@division_name
|
@@ -42,10 +43,19 @@ module BlackStack
|
|
42
43
|
@@division_name = s
|
43
44
|
end
|
44
45
|
|
46
|
+
def self.timeout()
|
47
|
+
@@timeout
|
48
|
+
end
|
49
|
+
|
50
|
+
#
|
51
|
+
def self.set_timeout(n)
|
52
|
+
@@timeout = n
|
53
|
+
end
|
54
|
+
|
45
55
|
# Api-key of the client who will be the owner of a process.
|
46
56
|
@@api_key = nil
|
47
57
|
|
48
|
-
def self.api_key()
|
58
|
+
def self.api_key()
|
49
59
|
@@api_key
|
50
60
|
end
|
51
61
|
|
@@ -212,7 +222,8 @@ module BlackStack
|
|
212
222
|
:port => BlackStack::Pampa::db_port, # Required when using other that 1433 (default)
|
213
223
|
:database => BlackStack::Pampa::db_name,
|
214
224
|
:user => BlackStack::Pampa::db_user,
|
215
|
-
:password => BlackStack::Pampa::db_password
|
225
|
+
:password => BlackStack::Pampa::db_password,
|
226
|
+
:timeout => BlackStack::Pampa::timeout
|
216
227
|
}
|
217
228
|
else
|
218
229
|
url = "#{BlackStack::Pampa::api_url}/api1.2/division/get.json"
|
@@ -233,7 +244,8 @@ module BlackStack
|
|
233
244
|
:port => parsed["db_port"], # only required if port is different than 1433
|
234
245
|
:database => parsed["db_name"],
|
235
246
|
:user => parsed["db_user"],
|
236
|
-
:password => parsed["db_password"]
|
247
|
+
:password => parsed["db_password"],
|
248
|
+
:timeout => BlackStack::Pampa::timeout
|
237
249
|
}
|
238
250
|
end
|
239
251
|
end
|
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.20
|
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-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: websocket
|