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 CHANGED
@@ -1,4 +1,9 @@
1
- === 1.0.4 / 1008-05-28
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]
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{background_fu}
3
- s.version = "1.0.4"
3
+ s.version = "1.0.5"
4
4
 
5
5
  s.specification_version = 2 if s.respond_to? :specification_version=
6
6
 
data/lib/background_fu.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module BackgroundFu
2
2
 
3
- VERSION = "1.0.4"
3
+ VERSION = "1.0.5"
4
4
 
5
5
  end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ncr-background_fu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacek Becela