mobilize-base 1.1.07 → 1.1.08

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.
@@ -52,6 +52,7 @@ module Mobilize
52
52
  r.jobs.each do |j|
53
53
  begin
54
54
  if j.is_due?
55
+ j.update_attributes(:active=>false) if j.trigger=='once'
55
56
  j.stages.first.enqueue!
56
57
  end
57
58
  rescue ScriptError, StandardError => exc
@@ -89,8 +89,6 @@ module Mobilize
89
89
  s.update_attributes(:completed_at=>Time.now.utc)
90
90
  s.update_status("Completed at #{Time.now.utc.to_s}")
91
91
  if s.idx == j.stages.length
92
- #job has completed
93
- j.update_attributes(:active=>false) if j.trigger.strip.downcase == "once"
94
92
  #check for any dependent jobs, if there are, enqueue them
95
93
  r = j.runner
96
94
  dep_jobs = r.jobs.select{|dj| dj.active==true and dj.trigger.strip.downcase == "after #{j.name}"}
@@ -1,5 +1,5 @@
1
1
  module Mobilize
2
2
  module Base
3
- VERSION = "1.1.07"
3
+ VERSION = "1.1.08"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mobilize-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.07
4
+ version: 1.1.08
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -239,7 +239,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
239
239
  version: '0'
240
240
  segments:
241
241
  - 0
242
- hash: 1956526465748167234
242
+ hash: 2754609569538544720
243
243
  required_rubygems_version: !ruby/object:Gem::Requirement
244
244
  none: false
245
245
  requirements:
@@ -248,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
248
248
  version: '0'
249
249
  segments:
250
250
  - 0
251
- hash: 1956526465748167234
251
+ hash: 2754609569538544720
252
252
  requirements: []
253
253
  rubyforge_project: mobilize-base
254
254
  rubygems_version: 1.8.24