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 CHANGED
@@ -1 +1 @@
1
- 0.7.7
1
+ 0.7.9
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.7"
8
+ s.version = "0.7.9"
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"]
@@ -24,8 +24,12 @@ module CEML
24
24
  end
25
25
 
26
26
  def stage_with_candidate candidate
27
- return :uninterested if cast_with?(candidate)
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
- return unless c.matching.all? do |g|
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])
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 7
8
- - 7
9
- version: 0.7.7
8
+ - 9
9
+ version: 0.7.9
10
10
  platform: ruby
11
11
  authors:
12
12
  - Joe Edelman