pipeline 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,5 +1,13 @@
1
+ 0.0.5
2
+ =====
3
+
4
+ Bug Fix:
5
+ * Fixing association Stage -> PipelineInstance to use custom foreign_key
6
+
1
7
  0.0.4
2
8
  =====
9
+
10
+ Features:
3
11
  * Allowing for custom name on stage
4
12
 
5
13
  0.0.3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
@@ -11,7 +11,7 @@ module Pipeline
11
11
  transactional_attr :status
12
12
  private :status=
13
13
 
14
- belongs_to :pipeline, :class_name => "Pipeline::Base"
14
+ belongs_to :pipeline, :class_name => "Pipeline::Base", :foreign_key => 'pipeline_instance_id'
15
15
 
16
16
  @@chain = []
17
17
  def self.>>(next_stage)
data/pipeline.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{pipeline}
5
- s.version = "0.0.4"
5
+ s.version = "0.0.5"
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"]
@@ -84,6 +84,14 @@ module Pipeline
84
84
  stage.should be_an_instance_of(SampleStage)
85
85
  end
86
86
 
87
+ it "should belong to pipeline instance" do
88
+ pipeline = Pipeline::Base.create
89
+ @stage.pipeline = pipeline
90
+ @stage.save!
91
+
92
+ Base.find(@stage.id).pipeline.should == pipeline
93
+ end
94
+
87
95
  end
88
96
 
89
97
  describe "- execution (success)" do
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
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danilo Sato