runciter 0.0.2 → 0.0.3

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
data/lib/runciter/task.rb CHANGED
@@ -19,6 +19,7 @@ module Runciter
19
19
  run.finish! # finish! rescues its own exceptions
20
20
  rescue
21
21
  run.die!($!) # die! rescues its own exceptions
22
+ raise $! # reraise the exception for the user program to handle
22
23
  end
23
24
  end
24
25
 
data/spec/app_spec.rb CHANGED
@@ -10,7 +10,6 @@ module Runciter
10
10
  :alert => 'test@example.com'
11
11
  )
12
12
  app.task('Try Things', :steps => 10) do |r|
13
- raise 'fail'
14
13
  10.times { sleep 1; r.step! }
15
14
  end
16
15
  end
data/spec/task_spec.rb ADDED
@@ -0,0 +1,13 @@
1
+ require 'spec_helper'
2
+
3
+ module Runciter
4
+ describe Task do
5
+
6
+ describe '#run!' do
7
+ it 'reraises exceptions from user code' do
8
+ pending
9
+ end
10
+ end
11
+
12
+ end
13
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runciter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.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-09-27 00:00:00.000000000 Z
12
+ date: 2013-02-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jimson
@@ -39,11 +39,12 @@ files:
39
39
  - CHANGELOG.md
40
40
  - README.md
41
41
  - Rakefile
42
+ - lib/runciter/app.rb
42
43
  - lib/runciter/task.rb
43
44
  - lib/runciter/run.rb
44
- - lib/runciter/app.rb
45
45
  - lib/runciter.rb
46
46
  - spec/spec_helper.rb
47
+ - spec/task_spec.rb
47
48
  - spec/app_spec.rb
48
49
  homepage: http://www.github.com/chriskite/runciter
49
50
  licenses: []
@@ -65,10 +66,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
66
  version: '0'
66
67
  requirements: []
67
68
  rubyforge_project:
68
- rubygems_version: 1.8.21
69
+ rubygems_version: 1.8.24
69
70
  signing_key:
70
71
  specification_version: 3
71
72
  summary: Ruby client for the Runciter task monitor
72
73
  test_files:
73
74
  - spec/spec_helper.rb
75
+ - spec/task_spec.rb
74
76
  - spec/app_spec.rb