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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f95623aed346757ce67bd7d4fccabfe280cb933
4
- data.tar.gz: fb032dacb23e7bb0009765ae25d04560e5667ff5
3
+ metadata.gz: be2f663025c91baa5b4d40d452e28177f3b3f28b
4
+ data.tar.gz: e8556b901f92f25cf615edd3e1f897cf4bcc4de9
5
5
  SHA512:
6
- metadata.gz: 14a0a5008087c7b3fceaa13a489586f165361cf7943948c76dd26f3368ea4286c4b135944ca6658d2b1b57a5f50bd91b96daa0b77f5796b382e2021e0928ad0c
7
- data.tar.gz: 227708b482141e60c61ad7042f3701e9da6d0c7da0a725acfa4dfc61e2e9d4c746fec15d88e0d414fd46d0723750ced593ef86109536456ac8b74cceee915ece
6
+ metadata.gz: 8c29041701c7398fae190426632879a2e99d005e116e95350a2bd78024b87abdd03ae6a0c029226aaac560395d23a4e54f8bef42128147058519d83fb5270cf8
7
+ data.tar.gz: 6a26c3b4d17632a889ab32291663fc3b63b6b3c045bd97f41a0aa87b7de942c4a0458c8f3f6c0c0974c48c157a2ebb4fcf89038bb16eec5ca671a46f84a68a3c
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Husky
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
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.5
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 00:00:00.000000000 Z
11
+ date: 2016-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails