husky 0.5.5 → 0.5.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 +4 -2
- 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: 611272ce1bfd73b5fe5fd94e2bcef4c3c9fc2cc5
|
4
|
+
data.tar.gz: 4f945ca2598213110c1b2e01d9f99ed42eb23786
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de676ac26f91d93cae5d07f2c32de75d98e628cb79787e7a86c8342fdde1d93181ded96d5d6f39aeb23deccde3e48ac61d53995dee54cebd7d70a5a67951fe33
|
7
|
+
data.tar.gz: 8b8914792ae709cdc79e8d8446fbdabfd662a55654f894e7bd5d53ea1e157a70f50cb3865ec69c888e69e902a1b35b37f5ae822a174fc9474af528be9b975cc2
|
data/lib/husky/ears.rb
CHANGED
@@ -20,14 +20,16 @@ module Husky
|
|
20
20
|
interactor.run
|
21
21
|
end
|
22
22
|
|
23
|
+
# DEPRECATE --> Build out custom entity serialization!
|
24
|
+
# This introduces a dependency on ActiveModelSerializers
|
23
25
|
def deliver_entities(entities, *options)
|
24
26
|
raise "Rails is not running" unless defined?(Rails)
|
25
|
-
serve_for(entities.map(&:
|
27
|
+
serve_for(entities.map(&:data), *options)
|
26
28
|
end
|
27
29
|
|
28
30
|
def deliver_entity(entity, *options)
|
29
31
|
raise "Rails is not running" unless defined?(Rails)
|
30
|
-
serve_for(entity.
|
32
|
+
serve_for(entity.data, *options)
|
31
33
|
end
|
32
34
|
|
33
35
|
private
|
data/lib/husky/version.rb
CHANGED