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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pampa_workers.rb +14 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 70181238899f4d62d2ed7c6bdf39807210fd1756
4
- data.tar.gz: ace7a6e2947aafd66f34170ec1f291f2273fd936
3
+ metadata.gz: 7c4aa601fbee13613b79ce12aead5b1b2595057a
4
+ data.tar.gz: ef70920af4002fa4d01fdf5ac8f9415704002026
5
5
  SHA512:
6
- metadata.gz: 5598238f0b7b50957eca53f6492b6655f41a3911a280d9f9ae054a47ddbae1cd1de939e9c32239304dd979cf044d731125031c43195bb51a3dfa8a265847c6b5
7
- data.tar.gz: b04caea373fcdf1e52c142614bf05cf05388af2810db4df421650fa2e5e724feadd958c0570fc69a583618a2954494512ef4306851410dd24bed4ec31c6fb259
6
+ metadata.gz: 3b066535662908abe26d916747d1dc822d2ca204bfd8ed941f6bf1a5297e9114892ef38e49df90b35cbc9bf248eec36d91182dfe036fcc52ca6a959b4ea49ea8
7
+ data.tar.gz: 58c31dedf4d304ba7271919418cc63eb99dcc0195864e139041527ee26e464e5022f32890264242765263f8b8498c4f471950715ca6e150c1b3b4dd6e9eabeb9
@@ -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.17
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-22 00:00:00.000000000 Z
11
+ date: 2020-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: websocket