ncr-background_fu 1.0.4 → 1.0.5
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/History.txt +6 -1
- data/background-fu.gemspec +1 -1
- data/lib/background_fu.rb +1 -1
- data/lib/job.rb +3 -0
- data/rails/init.rb +1 -1
- metadata +1 -1
data/History.txt
CHANGED
@@ -1,4 +1,9 @@
|
|
1
|
-
=== 1.0.
|
1
|
+
=== 1.0.5 / 2008-06-02
|
2
|
+
|
3
|
+
* Fixed enqueue method (now properly returns enqueued job). [Jake Yoon, ncr]
|
4
|
+
* Fixed background.rb generator so it doens't blow up if Bonus Features are disabled. [Jake Yoon, ncr]
|
5
|
+
|
6
|
+
=== 1.0.4 / 2008-05-28
|
2
7
|
|
3
8
|
* GitHub is now generating a gem. [ncr]
|
4
9
|
* Making sure that it will work as a plugin when installed as a gem. [ncr]
|
data/background-fu.gemspec
CHANGED
data/lib/background_fu.rb
CHANGED
data/lib/job.rb
CHANGED
@@ -20,7 +20,10 @@ class Job < ActiveRecord::Base
|
|
20
20
|
:worker_method => worker_method.to_s,
|
21
21
|
:args => args
|
22
22
|
)
|
23
|
+
|
23
24
|
logger.info("BackgroundFu: Job enqueued. Job(id: #{job.id}, worker: #{worker_class}, method: #{worker_method}, argc: #{args.size}).")
|
25
|
+
|
26
|
+
job
|
24
27
|
end
|
25
28
|
|
26
29
|
# Invoked by a background daemon.
|
data/rails/init.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
require 'background_fu'
|
2
2
|
require 'background_fu/worker_monitoring'
|
3
3
|
require 'job'
|
4
|
+
require 'job/bonus_features'
|
4
5
|
|
5
6
|
Dependencies.load_paths << "#{RAILS_ROOT}/lib/workers"
|
6
7
|
|
7
8
|
if ActiveRecord::Base.allow_concurrency
|
8
|
-
require 'job/bonus_features'
|
9
9
|
Job.send!(:include, Job::BonusFeatures)
|
10
10
|
end
|