pampa_workers 1.1.17 → 1.1.18
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 +4 -4
- data/lib/pampa_workers.rb +14 -2
- 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: 7c4aa601fbee13613b79ce12aead5b1b2595057a
|
|
4
|
+
data.tar.gz: ef70920af4002fa4d01fdf5ac8f9415704002026
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3b066535662908abe26d916747d1dc822d2ca204bfd8ed941f6bf1a5297e9114892ef38e49df90b35cbc9bf248eec36d91182dfe036fcc52ca6a959b4ea49ea8
|
|
7
|
+
data.tar.gz: 58c31dedf4d304ba7271919418cc63eb99dcc0195864e139041527ee26e464e5022f32890264242765263f8b8498c4f471950715ca6e150c1b3b4dd6e9eabeb9
|
data/lib/pampa_workers.rb
CHANGED
|
@@ -32,6 +32,7 @@ module BlackStack
|
|
|
32
32
|
|
|
33
33
|
#
|
|
34
34
|
@@division_name = nil
|
|
35
|
+
@@timeout = 5
|
|
35
36
|
|
|
36
37
|
def self.division_name()
|
|
37
38
|
@@division_name
|
|
@@ -42,6 +43,15 @@ 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(t)
|
|
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
|
|
|
@@ -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.18
|
|
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
|