chore 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.asc ADDED
@@ -0,0 +1,11 @@
1
+ -----BEGIN PGP SIGNATURE-----
2
+ Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
3
+
4
+ iQEcBAABCgAGBQJRVZqaAAoJEP5F5V2hilTWPqYH/j+2BeeghcTmaRGb+y30qOp0
5
+ k5lIOIIos4CPo+Fi2Wlq/zi13uQfqHKt/2aSQP2ovbwwSSU74gp3PFJoGAweaGha
6
+ xKx5q1fGOvrp0rDw+2bW69lYCrU/pfyDBDs5LXLrhcBZFrLXID6xGtrVPcQmO8cr
7
+ pXIaLvf0RBSA9iJMftr+DAouMkmuYgSWbWhDDO9I0p6RprTo9OpqHepcpMzRBpVe
8
+ q8fb3nfV/4I6+elApvAcVVmcN773wISWAnYt+aW7JMDzUm+GUAE7CpUhpXRUumk4
9
+ /vY3ev6AlmiKBxg9MKBwIGpvyoJKx5WZ0Zni8gOlv/Lkwqj8TqL2BejpnKEqX9I=
10
+ =spL6
11
+ -----END PGP SIGNATURE-----
data/lib/chore.rb CHANGED
@@ -88,7 +88,12 @@ module Chore
88
88
  Chore.finish(task)
89
89
  end
90
90
  rescue Exception => ex
91
- Chore.fail(task, :error => "#{ex.class} - #{ex.message}")
91
+ msg = [ex.class, ex.message]
92
+ msg << ([''] + ex.backtrace[0..4]) if ex.backtrace.length > 0
93
+ msg << "..." if ex.backtrace.length > 5
94
+ msg = msg.join("\n")
95
+
96
+ Chore.fail(task, :error => "#{msg}")
92
97
  raise
93
98
  end
94
99
  end
data/lib/chore/server.rb CHANGED
@@ -41,7 +41,7 @@ module ChoreDisplay
41
41
 
42
42
  status_lines = []
43
43
  Chore::Store.iterate_statuses do |status|
44
- status_line = "#{status[:job]} - #{status[:status]}ed #{Time.at(status[:start_time])}"
44
+ status_line = "#{status[:job]} - #{status[:status]} #{Time.at(status[:start_time])}"
45
45
  status_line += " (#{status[:notes].join(', ')})" if !status[:notes].empty?
46
46
  status_lines << colorize(status_line, status[:state])
47
47
  end
data/views/status.rhtml CHANGED
@@ -30,7 +30,9 @@
30
30
  <td><%= Time.at(status[:start_time]) %></td>
31
31
  <td>
32
32
  <% if !status[:notes].empty? %>
33
- <%= status[:notes].join(', ') %>
33
+ <pre>
34
+ <%= status[:notes].join(', ') %>
35
+ </pre>
34
36
  <% else %>
35
37
  &nbsp;
36
38
  <% end %>
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: chore
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.3
5
+ version: 0.2.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Pikimal, LLC
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-09-21 00:00:00 Z
13
+ date: 2013-03-29 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: eventmachine
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  requirements: []
100
100
 
101
101
  rubyforge_project:
102
- rubygems_version: 1.8.24
102
+ rubygems_version: 1.8.25
103
103
  signing_key:
104
104
  specification_version: 3
105
105
  summary: Monitor recurring chores
metadata.gz.asc ADDED
@@ -0,0 +1,11 @@
1
+ -----BEGIN PGP SIGNATURE-----
2
+ Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
3
+
4
+ iQEcBAABCgAGBQJRVZqeAAoJEP5F5V2hilTWomQIAK/uysI2tsUFqivUxFrNV9tG
5
+ lPHoOI1fd+fn2uFl+ZrajTNwmSw3WnyZDaWHAC+a4saYrJemy5mpi7Nek4OVF6S3
6
+ 6xAGV60xFlV5mJkJVr7t/gXe+om7c4BLbCS10wsjKN3HC/SQYSNecUIGIUfahbpW
7
+ emi7+T6YXflQib26HZLzD9Xtnh+sSf2lbK7E9/TbBhSjZ+DWUiuZcILgZDnounS8
8
+ US9Igvl7PcXrMXL5jZppuvCJT+A47GZl3XQ2Ai+0pn/l1c9u5PfQYy2HdRRok+UA
9
+ mwZ31kkTWs+cUBRV8FwbkG1sKRe4HiilNOjIUqguC3XGCo5NXwZAu0XrXm9WlZE=
10
+ =+AI+
11
+ -----END PGP SIGNATURE-----