event_bus 0.1.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- event_bus (0.1.0)
4
+ event_bus (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/lib/event_bus.rb CHANGED
@@ -78,16 +78,6 @@ class EventBus
78
78
  self
79
79
  end
80
80
 
81
- #
82
- # (experimental)
83
- #
84
- def register(listener)
85
- listener.events_map.each do |pattern, method_name|
86
- registrations.add(pattern, listener, method_name)
87
- end
88
- self
89
- end
90
-
91
81
  private
92
82
 
93
83
  def subscribe_pattern(pattern, listener, method_name, &blk)
@@ -22,14 +22,6 @@ class EventBus
22
22
  @listeners = []
23
23
  end
24
24
 
25
- def add(pattern, listener, method_name, &blk)
26
- if listener
27
- add_method(pattern, listener, method_name)
28
- else
29
- add_block(pattern, blk)
30
- end
31
- end
32
-
33
25
  def add_method(pattern, listener, method_name)
34
26
  @listeners << Registration.new(pattern, listener, method_name)
35
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: event_bus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 1.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: