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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c2575de9f104c394233cf43847e00a4b7e92ab64
4
- data.tar.gz: 599b4f36db4bef9c451256ab436680e73d9b0af2
3
+ metadata.gz: cb1f42f3a676a4967714b1f10969a42325170651
4
+ data.tar.gz: 870399a149c31b144f6ea99182ffe638b83663cd
5
5
  SHA512:
6
- metadata.gz: 5bc440c0a844004c6c58178201ec2297df2421557fa191efda9efa4cf3921f394d9e6577c3b0678bfa8d52a2704d736ba22c9d800831aafdb7f622e3d025051d
7
- data.tar.gz: 2b63d2b3ec6fc844e84eb11648e15ea7c4e96ccfbcaca176d72f2f3a16ac9994da122e1991b0a82547fc2b9653c5b4719559769d5c463b25101b355ea238c2c7
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, *args)
19
- render json: entities.map(&:object), args
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, *args)
23
- render json: entity.object, args
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
@@ -1,3 +1,3 @@
1
1
  module Husky
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
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.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Fiser