husky 0.1.2 → 0.1.3
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 +11 -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: 96f37e20fd563b265a4c24da1a02ac8e3a6b8ed0
|
4
|
+
data.tar.gz: 195f24bc1ffa9a3dffb9511db9eed51bb1b200ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aecdfbbccef3d2986d2e848b352d38ba360701305f6060c9f962057073ec0defadfdf9996bdb8a4974374f6be0c679129bd5321c33995cb2799660867c92ded4
|
7
|
+
data.tar.gz: 82f8ddbda6641048cb0cdb2efc3b140e66d1837e5a598c94c1b7eec4b899a6d8e6d4c8ed99635496a312f51521b1dce25318ccfd7c082f10456a4c3d322e6b3f
|
data/lib/husky/ears.rb
CHANGED
@@ -15,15 +15,19 @@ module Husky
|
|
15
15
|
interactor.run
|
16
16
|
end
|
17
17
|
|
18
|
-
def deliver_entities(entities, *
|
19
|
-
|
20
|
-
|
21
|
-
|
18
|
+
def deliver_entities(entities, *options)
|
19
|
+
serve_for(entities.map(&:object), *options)
|
20
|
+
end
|
21
|
+
|
22
|
+
def deliver_entity(entity, *options)
|
23
|
+
serve_for(entity.object, *options)
|
22
24
|
end
|
23
25
|
|
24
|
-
|
25
|
-
|
26
|
-
|
26
|
+
private
|
27
|
+
|
28
|
+
def serve_for(target, *options)
|
29
|
+
args = { json: target }
|
30
|
+
options.each { |option| args.merge!(option) }
|
27
31
|
render(args)
|
28
32
|
end
|
29
33
|
|
data/lib/husky/version.rb
CHANGED