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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 02eb37393821372ae07985335abb922b0abce0ce
4
- data.tar.gz: d2519e108927bad73df70a11f66eeb63e06b83ab
3
+ metadata.gz: 611272ce1bfd73b5fe5fd94e2bcef4c3c9fc2cc5
4
+ data.tar.gz: 4f945ca2598213110c1b2e01d9f99ed42eb23786
5
5
  SHA512:
6
- metadata.gz: d4258649f2a76bad37dd333d304f43a3b32774926b3c03eab34499d5ba5cddf87a05dd2a0cbbcaacaec69f572e362bb1fd9fd8db460e7aacfbacd803e2f1aaf3
7
- data.tar.gz: 6c87aa3a514acc874f2b6282e06ba20716955473238ad5352e739bfbdccc5d146a75098ae9b0b6afb98e911fc3b3532143fc1501196d6b42002f6c10cdd3341e
6
+ metadata.gz: de676ac26f91d93cae5d07f2c32de75d98e628cb79787e7a86c8342fdde1d93181ded96d5d6f39aeb23deccde3e48ac61d53995dee54cebd7d70a5a67951fe33
7
+ data.tar.gz: 8b8914792ae709cdc79e8d8446fbdabfd662a55654f894e7bd5d53ea1e157a70f50cb3865ec69c888e69e902a1b35b37f5ae822a174fc9474af528be9b975cc2
@@ -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(&:object), *options)
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.object, *options)
32
+ serve_for(entity.data, *options)
31
33
  end
32
34
 
33
35
  private
@@ -1,3 +1,3 @@
1
1
  module Husky
2
- VERSION = "0.5.5"
2
+ VERSION = "0.5.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: husky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Fiser