husky 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 209a430853f755b06df9859fc3a0e8f045c53ffc
4
- data.tar.gz: 33c7dd14d8d76334edd1207bc564c4e2cacc1228
3
+ metadata.gz: 9f95623aed346757ce67bd7d4fccabfe280cb933
4
+ data.tar.gz: fb032dacb23e7bb0009765ae25d04560e5667ff5
5
5
  SHA512:
6
- metadata.gz: 5fb2f717776b0eda1217d54494b9796dbbb2940e591df9f3cc657fcf9d11dabf833255d202ee379bd4b6eaadc8a827615687370f78b94d4c9ffcd65abd0bb45d
7
- data.tar.gz: 446171d531eba7bcedc200cc797d4497e1de20939e3455dfb177302b894a4b65a688a60e35e754c31bb69bf29671e5daebea3a0288ea1f33a178c1ecdd23a525
6
+ metadata.gz: 14a0a5008087c7b3fceaa13a489586f165361cf7943948c76dd26f3368ea4286c4b135944ca6658d2b1b57a5f50bd91b96daa0b77f5796b382e2021e0928ad0c
7
+ data.tar.gz: 227708b482141e60c61ad7042f3701e9da6d0c7da0a725acfa4dfc61e2e9d4c746fec15d88e0d414fd46d0723750ced593ef86109536456ac8b74cceee915ece
@@ -1,13 +1,12 @@
1
1
  module Husky
2
2
  module Ears
3
3
 
4
- def listen_to(object, listeners = [])
5
- klass = "#{controller_name.camelize}Responder".constantize
6
- default = klass.new(self)
7
- listeners << default
8
- listeners.each do |listener|
9
- object.add_listener(listener)
10
- end
4
+ def listen_to(object)
5
+ object.add_listener(responder_class.new(self))
6
+ end
7
+
8
+ def responder_class
9
+ "#{controller_name.camelize}Responder".constantize
11
10
  end
12
11
 
13
12
  def interact(interactor)
@@ -1,3 +1,3 @@
1
1
  module Husky
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: husky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Fiser