husky 0.1.1 → 0.1.2
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 +8 -4
- 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: cb1f42f3a676a4967714b1f10969a42325170651
|
4
|
+
data.tar.gz: 870399a149c31b144f6ea99182ffe638b83663cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d95693ff3ec1875c7c3d67b742f9d441f6d84466f7efc796a3bc4dddaacb103268c806043e24c9deff468c7b8277dc324471ca6fa6ee9fd4e725414bcfaf4088
|
7
|
+
data.tar.gz: 9bd9bed4d9522ed046dd668e6a3ab9626008d65f622d585d073b72a5d1c5c61fa85d9ce69e2c27d367d3f279f76560216ad5f0da820b4eab7b2f8f7526d284f0
|
data/lib/husky/ears.rb
CHANGED
@@ -15,12 +15,16 @@ module Husky
|
|
15
15
|
interactor.run
|
16
16
|
end
|
17
17
|
|
18
|
-
def deliver_entities(entities, *
|
19
|
-
|
18
|
+
def deliver_entities(entities, *extra)
|
19
|
+
args = [json: entities.map(&:object)]
|
20
|
+
args << extra unless extra.nil?
|
21
|
+
render(args)
|
20
22
|
end
|
21
23
|
|
22
|
-
def deliver_entity(entity, *
|
23
|
-
|
24
|
+
def deliver_entity(entity, *extra)
|
25
|
+
args = [json: entity.object]
|
26
|
+
args << extra unless extra.nil?
|
27
|
+
render(args)
|
24
28
|
end
|
25
29
|
|
26
30
|
end
|
data/lib/husky/version.rb
CHANGED