queue_dispatcher 1.1.11 → 1.1.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -67,7 +67,7 @@ module QueueDispatcher
67
67
  def update_state(rc_and_msg)
68
68
  rc = output = error_msg = nil
69
69
 
70
- if rc_and_msg.kind_of?(QueueDispatcher::RcAndMsg)
70
+ if rc_and_msg.is_a?(QueueDispatcher::RcAndMsg)
71
71
  rc = rc_and_msg.rc
72
72
  output = rc_and_msg.output
73
73
  error_msg = rc_and_msg.error_msg
@@ -77,6 +77,8 @@ module QueueDispatcher
77
77
  error_msg = rc_and_msg[:error_msg]
78
78
  end
79
79
 
80
+ output ||= ""
81
+
80
82
  if rc.nil? || rc == 0
81
83
  self.update_attributes :state => "successful",
82
84
  :perc_finished => 100,
@@ -1,3 +1,3 @@
1
1
  module QueueDispatcher
2
- VERSION = "1.1.11"
2
+ VERSION = "1.1.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: queue_dispatcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.11
4
+ version: 1.1.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-08 00:00:00.000000000 Z
12
+ date: 2012-11-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sys-proctable