jober 0.3.39 → 0.3.40

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: e2f3f5e547d021f6d5a67c7130e74f9ca7c9ae2d
4
- data.tar.gz: ca11d9aa10081fea767f4765e2fd26aad566060c
3
+ metadata.gz: ff283324c27e10f612643e11ef9862b7ff473f9d
4
+ data.tar.gz: 5966fa04616302e0fd54c6c5baaf5f7190a2a396
5
5
  SHA512:
6
- metadata.gz: 840317e4d7b63637d9418f8e8d7bbcc63590ffc1754869ec22d3751b2d12d858db82a0818cd3a137e6d288679794b13f726f5bda490eca227bbb81e39c378909
7
- data.tar.gz: b36c2b7fb372b28de918910fb0db6a69bbca7247e087a5621e0188edf93b7d5f49df62ba855d854592cf17f2bb979ec7481cbb3f5084e5195074fb70c4efa47b
6
+ metadata.gz: 9f358d487c0a575e9a438dd45b943a50d87dda46bc307b8f7a36cb106bc267a57866c7f618c433d4b5d1fd4a230d6439ff0f89c0fb28db7757556fd9bd3dab9e
7
+ data.tar.gz: 65837403bc0bfa824b7083abbdb99cb0d3562224882b8e391def41284b6bd7781c4041b03c717f4a546d886bfaf48ebead4a5c19a61f15a8c5b7dabc3638ee4e
@@ -26,6 +26,12 @@ class Jober::ThreadedManager
26
26
  end
27
27
  end
28
28
 
29
+ def set_objects(objects)
30
+ c = 0
31
+ objects.each { |o| o.instance_variable_set(:@unique_id, c); c += 1 }
32
+ @objects = objects
33
+ end
34
+
29
35
  def run_loop
30
36
  info { "run loop for #{@klasses.inspect}, in threads: #{@objects.length}" }
31
37
  @threads = @objects.map { |obj| make_thread(obj) }
@@ -1,3 +1,3 @@
1
1
  module Jober
2
- VERSION = "0.3.39"
2
+ VERSION = "0.3.40"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jober
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.39
4
+ version: 0.3.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - "'Konstantin Makarchev'"
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-31 00:00:00.000000000 Z
11
+ date: 2017-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis