ceml 0.7.5 → 0.7.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/ceml.gemspec +1 -1
  3. data/lib/ceml/driver.rb +10 -11
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.5
1
+ 0.7.7
data/ceml.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ceml}
8
- s.version = "0.7.5"
8
+ s.version = "0.7.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Joe Edelman"]
data/lib/ceml/driver.rb CHANGED
@@ -87,13 +87,12 @@ module CEML
87
87
  run_after = []
88
88
 
89
89
  with_confluences script_collection_id, roleset do |confluences|
90
- already_launched_with = nil
91
- # live_with = confluences.select{ |c| c.live_with?(candidate) }
92
- # if not live_with.empty?
93
- # already_launched_with = live_with.first.incident_id
94
- # live_with.each{ |c| c.rm candidate } if involvement != :sticky
95
- # break if involvement != :released
96
- # end
90
+ live_with = confluences.select{ |c| c.live_with?(candidate) }
91
+ if not live_with.empty?
92
+ already_launched_with = live_with.first.incident_id
93
+ live_with.each{ |c| c.rm candidate } if involvement != :sticky
94
+ break if involvement != :released
95
+ end
97
96
 
98
97
  locs = confluences.group_by{ |l| l.stage_with_candidate(candidate) }
99
98
  if locs[:joinable]
@@ -137,10 +136,10 @@ module CEML
137
136
  send(*cmd)
138
137
  end
139
138
 
140
- # if already_launched_with and involvement == :sticky
141
- # puts "PUSHING INSTEAD"
142
- # push already_launched_with, nil, candidate
143
- # end
139
+ if already_launched_with and involvement == :sticky
140
+ puts "PUSHING INSTEAD"
141
+ push already_launched_with, nil, candidate
142
+ end
144
143
  end
145
144
 
146
145
  def push incident_id, script, *updated_players
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 7
8
- - 5
9
- version: 0.7.5
8
+ - 7
9
+ version: 0.7.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Joe Edelman