ellington 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,6 @@
1
1
  require "delegate"
2
2
  require "fileutils"
3
+ require "observer"
3
4
 
4
5
  module Ellington
5
6
  class Route < SimpleDelegator
@@ -33,6 +34,7 @@ module Ellington
33
34
  end
34
35
 
35
36
  class << self
37
+ include Observable
36
38
  include HasTargets
37
39
  attr_reader :initialized
38
40
 
@@ -121,9 +123,10 @@ module Ellington
121
123
  if required_connections.empty?
122
124
  if passed.satisfied?(route_info.passenger) || failed.satisfied?(route_info.passenger)
123
125
  log route_info
126
+ changed
127
+ notify_observers route_info
124
128
  end
125
129
  Ellington.logger.info "\n" if Ellington.logger
126
- binding.pry
127
130
  end
128
131
 
129
132
  required_connections.each do |connection|
@@ -1,3 +1,3 @@
1
1
  module Ellington
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ellington
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-12 00:00:00.000000000 Z
12
+ date: 2013-03-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hero
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
133
  version: '0'
134
134
  requirements: []
135
135
  rubyforge_project:
136
- rubygems_version: 1.8.25
136
+ rubygems_version: 1.8.23
137
137
  signing_key:
138
138
  specification_version: 3
139
139
  summary: A micro framework to ensure your projects are easy to manage, develop, &
@@ -156,3 +156,4 @@ test_files:
156
156
  - test/ticket_test.rb
157
157
  - test/transition_info_test.rb
158
158
  - test/unique_type_array_test.rb
159
+ has_rdoc: