commonthread-rails 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.3.3
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{commonthread-rails}
8
- s.version = "0.3.2"
8
+ s.version = "0.3.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["CommonThread"]
12
- s.date = %q{2010-11-23}
12
+ s.date = %q{2010-11-25}
13
13
  s.description = %q{commonthread-rails is a collection of things that make rails development better for us. It includes date formats, monkey patches to String, Array and NilClass to make things nicer. An Encrypter using blowfish. Also, some rails filters}
14
14
  s.email = %q{hello@commonthread.com}
15
15
  s.extra_rdoc_files = [
@@ -31,6 +31,13 @@ module Resque
31
31
  def async(method, *args)
32
32
  Resque.enqueue(self.class, id, method, *args)
33
33
  end
34
+
35
+ def async_in_queue(run_queue, method, *args)
36
+ orig_queue = self.class.queue
37
+ self.class.queue = run_queue
38
+ Resque.enqueue(self.class, id, method, *args)
39
+ self.class.queue = orig_queue
40
+ end
34
41
 
35
42
  module ClassMethods
36
43
  def queue
@@ -45,6 +52,13 @@ module Resque
45
52
  Resque.enqueue(self, nil, method, *args)
46
53
  end
47
54
 
55
+ def async_in_queue(run_queue, method, *args)
56
+ orig_queue = self.queue
57
+ self.queue = run_queue
58
+ Resque.enqueue(self, nil, method, *args)
59
+ self.queue = orig_queue
60
+ end
61
+
48
62
  # Performs a class method if id is nil or
49
63
  # an instance method if id has a value.
50
64
  def perform(*args)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: commonthread-rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 2
10
- version: 0.3.2
9
+ - 3
10
+ version: 0.3.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - CommonThread
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-23 00:00:00 -06:00
18
+ date: 2010-11-25 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency