ceml 0.7.7 → 0.7.9
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 +1 -1
- data/ceml.gemspec +1 -1
- data/lib/ceml/confluence.rb +5 -1
- data/lib/ceml/driver.rb +1 -0
- data/lib/ceml/role.rb +10 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.9
|
data/ceml.gemspec
CHANGED
data/lib/ceml/confluence.rb
CHANGED
@@ -24,8 +24,12 @@ module CEML
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def stage_with_candidate candidate
|
27
|
-
|
27
|
+
if cast_with?(candidate)
|
28
|
+
puts "CEML: CAST WITH"
|
29
|
+
# return :uninterested
|
30
|
+
end
|
28
31
|
best_role = best_role_for(candidate)
|
32
|
+
puts "CEML: MADE THRU: #{best_role.inspect}"
|
29
33
|
return :uninterested unless best_role
|
30
34
|
return :joinable if launched?
|
31
35
|
other_roles = @roles_to_cast - [best_role]
|
data/lib/ceml/driver.rb
CHANGED
@@ -89,6 +89,7 @@ module CEML
|
|
89
89
|
with_confluences script_collection_id, roleset do |confluences|
|
90
90
|
live_with = confluences.select{ |c| c.live_with?(candidate) }
|
91
91
|
if not live_with.empty?
|
92
|
+
puts "CEML: LIVE WITH DETECTED"
|
92
93
|
already_launched_with = live_with.first.incident_id
|
93
94
|
live_with.each{ |c| c.rm candidate } if involvement != :sticky
|
94
95
|
break if involvement != :released
|
data/lib/ceml/role.rb
CHANGED
@@ -41,10 +41,19 @@ module CEML
|
|
41
41
|
return true unless star
|
42
42
|
c = criteria
|
43
43
|
if c.matching
|
44
|
-
|
44
|
+
puts "CEML: ATTempting to match: #{c.matching.inspect}"
|
45
|
+
worked = c.matching.all? do |g|
|
45
46
|
candidate[:matchables][g] && star[:matchables][g] &&
|
46
47
|
candidate[:matchables][g].downcase.strip == star[:matchables][g].downcase.strip
|
47
48
|
end
|
49
|
+
|
50
|
+
if worked
|
51
|
+
puts "CEML: MATCHED"
|
52
|
+
true
|
53
|
+
else
|
54
|
+
puts "CEML: MATCH FAILED"
|
55
|
+
return false
|
56
|
+
end
|
48
57
|
end
|
49
58
|
if c.radius
|
50
59
|
c_ll = Geokit::LatLng(candidate[:lat], candidate[:lng])
|