husky 0.3.5 → 0.3.6
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 +5 -1
- data/lib/husky/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be2f663025c91baa5b4d40d452e28177f3b3f28b
|
4
|
+
data.tar.gz: e8556b901f92f25cf615edd3e1f897cf4bcc4de9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c29041701c7398fae190426632879a2e99d005e116e95350a2bd78024b87abdd03ae6a0c029226aaac560395d23a4e54f8bef42128147058519d83fb5270cf8
|
7
|
+
data.tar.gz: 6a26c3b4d17632a889ab32291663fc3b63b6b3c045bd97f41a0aa87b7de942c4a0458c8f3f6c0c0974c48c157a2ebb4fcf89038bb16eec5ca671a46f84a68a3c
|
data/lib/husky/ears.rb
CHANGED
@@ -9,9 +9,13 @@ module Husky
|
|
9
9
|
"#{controller_name.camelize}Responder".constantize
|
10
10
|
end
|
11
11
|
|
12
|
+
def responder
|
13
|
+
responder_class.new(self)
|
14
|
+
end
|
15
|
+
|
12
16
|
def interact(interactor)
|
13
|
-
listen_to(interactor)
|
14
17
|
yield(interactor) if block_given?
|
18
|
+
interactor.add_listener(responder)
|
15
19
|
interactor.run
|
16
20
|
end
|
17
21
|
|
data/lib/husky/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: husky
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Fiser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|