resqovery 0.0.2 → 0.0.3

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.
data/README.rdoc CHANGED
@@ -1,3 +1,34 @@
1
- = Resqovery
1
+ = Resqovery "Resque Recovery"
2
+
3
+ It adds a method <tt>safe_enqueue</tt> to Resque module.
4
+
5
+ == Installation
6
+
7
+ In <b>Rails 3</b>, add following line to your Gemfile and run the <tt>bundle</tt> command.
8
+
9
+ gem "resqovery"
10
+
11
+ In <b>Rails 2</b>, add following line to your environment.rb file.
12
+
13
+ config.gem "resqovery"
14
+
15
+ == Getting Started
16
+
17
+ There couple of generators. you can run <tt>rails g reqovery:install -h</tt> to see what they do
18
+
19
+ resqovery:install
20
+ resqovery:migration
21
+
22
+ In case you want to rename default model/table for storing jobs (default name is "ResqueJob"):
23
+
24
+ rails g resqovery:install -m [MODEL_NAME]
25
+ rails g resqovery:install -m backup_job
26
+
27
+ After creating migration and running them by <tt>rake db:migrate</tt>, you can create jobs as before using:
28
+
29
+ Resque.enqueue Archive, "master"
30
+
31
+ or using following one which store the job in DB before calling resque
32
+
33
+ Resque.safe_enqueue Archive, "master"
2
34
 
3
- This project rocks and uses MIT-LICENSE.
@@ -6,8 +6,8 @@ module Resqovery
6
6
 
7
7
  class Railtie < Rails::Railtie
8
8
  initializer 'resqovery.configure' do |app|
9
+ Resqovery.defaults = { :model_name => 'ResqueJob' }
9
10
  if app.config.respond_to?(:resqovery_defaults)
10
- Resqovery.defaults = { :model_name => 'ResqueJob' }
11
11
  Resqovery.defaults.merge!(app.config.resqovery_defaults)
12
12
  end
13
13
  end
@@ -1,3 +1,3 @@
1
1
  module Resqovery
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resqovery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: