dtsato-pipeline 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +6 -0
- data/VERSION +1 -1
- data/lib/pipeline/stage/base.rb +2 -0
- data/pipeline.gemspec +2 -2
- data/spec/pipeline/stage/base_spec.rb +11 -0
- metadata +2 -2
data/CHANGELOG
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.6
|
data/lib/pipeline/stage/base.rb
CHANGED
data/pipeline.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{pipeline}
|
5
|
-
s.version = "0.0.
|
5
|
+
s.version = "0.0.6"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Danilo Sato"]
|
9
|
-
s.date = %q{2009-08-
|
9
|
+
s.date = %q{2009-08-12}
|
10
10
|
s.description = %q{Pipeline is a Rails plugin/gem to run asynchronous processes in a configurable pipeline.}
|
11
11
|
s.email = %q{danilo@dtsato.com}
|
12
12
|
s.extra_rdoc_files = [
|
@@ -172,6 +172,17 @@ module Pipeline
|
|
172
172
|
@stage.message.should == "message"
|
173
173
|
@stage.reload.message.should == "message"
|
174
174
|
end
|
175
|
+
|
176
|
+
it "should log exception message and backtrace" do
|
177
|
+
SampleStage.default_name = "SampleStage"
|
178
|
+
error = StandardError.new("error message")
|
179
|
+
error.set_backtrace(['a', 'b', 'c'])
|
180
|
+
@stage.should_receive(:run).and_raise(error)
|
181
|
+
|
182
|
+
@stage.logger.should_receive(:info).with("Error on stage SampleStage: error message")
|
183
|
+
@stage.logger.should_receive(:info).with("a\nb\nc")
|
184
|
+
lambda {@stage.perform}.should raise_error
|
185
|
+
end
|
175
186
|
|
176
187
|
end
|
177
188
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dtsato-pipeline
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danilo Sato
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-08-
|
12
|
+
date: 2009-08-12 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|