steve 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/steve/queued_job.rb +5 -3
  2. metadata +2 -2
@@ -117,9 +117,11 @@ module Steve
117
117
  end
118
118
  ensure
119
119
  STDOUT.flush && STDERR.flush
120
- self.output = File.read(@output_file)
121
- self.save(:validate => false)
122
- FileUtils.rm(@output_file) if File.exist?(@output_file)
120
+ if File.exist?(@output_file)
121
+ self.output = File.read(@output_file)
122
+ FileUtils.rm(@output_file)
123
+ end
124
+ self.save(:validate => false)
123
125
  end
124
126
 
125
127
  ## Get a lock on this job. Returns true if the lock was successful
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: steve
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
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-03-22 00:00:00.000000000Z
12
+ date: 2012-04-26 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description:
15
15
  email: support@atechmedia.com