que-testing 0.1.0 → 0.1.1

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: 88494919546cd56dce9387d4dc3ba5506c8805e3
4
- data.tar.gz: 172915e6c25083e5f3ab4eb3ffbce38e1c202efa
3
+ metadata.gz: 3466cee4064ebebd4ac58da6f7bc7dcb2bc631da
4
+ data.tar.gz: 5cf22bf14338aca22e54371cfb0488ae60ed8671
5
5
  SHA512:
6
- metadata.gz: c15b162102303df955b2ee8cfe7c6041ce04efa35f525610a4bfb596a71533cdfe50d0acc2cf8e067a2d8119acb61eba6a47a07a92bd13bbffd6e0c52d4d9242
7
- data.tar.gz: 5dc3774a85cc4638a93f5634099e9f8763300656e5e591baabf5539252d2b717fe95c7b145e3c516810f5430a6a7be8dad2349a04ef4b7c9a2702bf2f7a4c983
6
+ metadata.gz: 26fa3ff25dcf5a24cd3a05ee1e05f41277d6c6d6bc8bc921647b7d0d3e1e5a05f9b6a0068863f809dc10fcc3ff4b2cf209b2e250d4ab8a6f94bab5b4717f0ee9
7
+ data.tar.gz: eed5aa6bb25da7b5e9d1737f3df73b41bc8f9c5a7bdeeecc59539e651de063521cebd7fc8d05fc653d4d6170227f88c37d9cf273d789f430610f6e57e33001a8
@@ -12,7 +12,7 @@ module Que
12
12
 
13
13
  job = JobParams.new(*params)
14
14
  klass = class_for(job.job_class)
15
- klass.jobs << job
15
+ jobs[klass] << job
16
16
  params
17
17
  end
18
18
 
@@ -23,6 +23,10 @@ module Que
23
23
  def class_for(str)
24
24
  str.split('::').reduce(Object, &:const_get)
25
25
  end
26
+
27
+ def jobs
28
+ @jobs ||= Hash.new { |h,k| h[k] = [] }
29
+ end
26
30
  end
27
31
  end
28
32
  end
@@ -1,7 +1,7 @@
1
1
  module Que
2
2
  class Job
3
3
  def self.jobs
4
- @jobs ||= []
4
+ Que.adapter.jobs[self]
5
5
  end
6
6
  end
7
7
  end
@@ -1,5 +1,5 @@
1
1
  module Que
2
2
  module Testing
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: que-testing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Staten