resque-heroku 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,16 +3,10 @@ require 'resque-heroku/version'
3
3
  # extend Resque::Heroku in your job class
4
4
  module Resque::Heroku
5
5
  def after_perform_heroku
6
- resque_heroku_disconnect!
7
- end
8
-
9
- def failed_with_heroku!
10
- resque_heroku_disconnect!
6
+ ActiveRecord::Base.connection.disconnect!
11
7
  end
12
8
 
13
- protected
14
-
15
- def resque_heroku_disconnect!
9
+ def on_failure_heroku
16
10
  ActiveRecord::Base.connection.disconnect!
17
11
  end
18
12
  end
@@ -1,5 +1,5 @@
1
1
  module Resque
2
2
  module Heroku
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
@@ -29,3 +29,9 @@ Include Resque::Heroku in your job classes
29
29
  end
30
30
  end
31
31
 
32
+ Load resque-heroku tasks from your Rakefile
33
+
34
+ load 'tasks/resque-heroku.rake'
35
+
36
+ Now rake jobs:work is available.
37
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-heroku
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-09-12 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: resque
16
- requirement: &2165144580 !ruby/object:Gem::Requirement
16
+ requirement: &2152982380 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *2165144580
24
+ version_requirements: *2152982380
25
25
  description: Handles establishing and disconnecting db connections when running Resque
26
26
  on Heroku cedar stack.
27
27
  email: