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 +4 -4
- data/lib/husky/ears.rb +6 -7
- data/lib/husky/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f95623aed346757ce67bd7d4fccabfe280cb933
|
4
|
+
data.tar.gz: fb032dacb23e7bb0009765ae25d04560e5667ff5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14a0a5008087c7b3fceaa13a489586f165361cf7943948c76dd26f3368ea4286c4b135944ca6658d2b1b57a5f50bd91b96daa0b77f5796b382e2021e0928ad0c
|
7
|
+
data.tar.gz: 227708b482141e60c61ad7042f3701e9da6d0c7da0a725acfa4dfc61e2e9d4c746fec15d88e0d414fd46d0723750ced593ef86109536456ac8b74cceee915ece
|
data/lib/husky/ears.rb
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
module Husky
|
2
2
|
module Ears
|
3
3
|
|
4
|
-
def listen_to(object
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
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)
|
data/lib/husky/version.rb
CHANGED