pipeline 0.0.5 → 0.0.6
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/CHANGELOG +6 -0
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/pipeline/stage/base.rb +2 -0
- data/pipeline.gemspec +7 -2
- data/spec/pipeline/stage/base_spec.rb +11 -0
- metadata +6 -2
data/CHANGELOG
CHANGED
data/Rakefile
CHANGED
@@ -15,7 +15,7 @@ begin
|
|
15
15
|
gem.rdoc_options = ["--main", "README.rdoc", "--inline-source", "--line-numbers"]
|
16
16
|
gem.extra_rdoc_files = ["README.rdoc"]
|
17
17
|
|
18
|
-
gem.test_files = Dir['spec/**/*']
|
18
|
+
gem.test_files = Dir['spec/**/*'] + Dir['spec/*']
|
19
19
|
|
20
20
|
gem.add_dependency('activerecord', '>= 2.0')
|
21
21
|
gem.add_dependency('collectiveidea-delayed_job', '>= 1.8.0')
|
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 = [
|
@@ -65,6 +65,11 @@ Gem::Specification.new do |s|
|
|
65
65
|
"spec/pipeline/stage/base_spec.rb",
|
66
66
|
"spec/rcov.opts",
|
67
67
|
"spec/spec.opts",
|
68
|
+
"spec/spec_helper.rb",
|
69
|
+
"spec/database_integration_helper.rb",
|
70
|
+
"spec/pipeline",
|
71
|
+
"spec/rcov.opts",
|
72
|
+
"spec/spec.opts",
|
68
73
|
"spec/spec_helper.rb"
|
69
74
|
]
|
70
75
|
|
@@ -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: 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 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -115,3 +115,7 @@ test_files:
|
|
115
115
|
- spec/rcov.opts
|
116
116
|
- spec/spec.opts
|
117
117
|
- spec/spec_helper.rb
|
118
|
+
- spec/database_integration_helper.rb
|
119
|
+
- spec/rcov.opts
|
120
|
+
- spec/spec.opts
|
121
|
+
- spec/spec_helper.rb
|