husky 0.0.7 → 0.0.8

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: 040d6409d951e16214443a5a98b941c37c0ab850
4
- data.tar.gz: b126776173a085282e0ba2e2854404cb844068b9
3
+ metadata.gz: 24a784cc74ea7b1244a501279555afb75a57362f
4
+ data.tar.gz: b7c2cb480e48fce693589cfdf52d3949b15c9e0e
5
5
  SHA512:
6
- metadata.gz: 27600d127b14f6e5741dff20b1d442573a66a1f1e0b76f4e78847ec712ddf92f433446a3589b940af16626e705afcc8e8a4ad89bccb8285ac7da0b28259de0a7
7
- data.tar.gz: 8855086c8b8bb7ef807ebe80035a662c53b6dc5f34410f8d0ec341f8c308fa961717f9ed251dc1f2e397fbc6e06b70afabe3d3ad30b5179b7eba40dd80d1136c
6
+ metadata.gz: 27ddd4bdacb7f2ab021cd7414ad89e5ce4c1b1f5f77a7ee14ae75a803646a1efdfc1e7724c1c6205d1d2816148f8b7df5d7a7078ab3fe2bbeda306ad4ee26dc8
7
+ data.tar.gz: 2dda7e540eb7ba7ab3eef11b9f837a7ea9b441d79d4ce21671b7791a9eb9bdfa62e3b5de6ba929598c351d99dbe8828d48d992c6c88f09cc803c0142eeb74c93
data/lib/husky.rb CHANGED
@@ -7,6 +7,7 @@ require 'husky/ears'
7
7
  require 'husky/interactor'
8
8
  require 'husky/responder'
9
9
  require 'husky/repo'
10
+ require 'husky/entity'
10
11
 
11
12
  ActionController::Base.class_eval do
12
13
  include Husky::Ears
@@ -0,0 +1,24 @@
1
+ require 'delegator'
2
+
3
+ module Husky
4
+
5
+ class Entity < SimpleDelegator
6
+
7
+ class << self
8
+
9
+ def wrap(items)
10
+ items.map { |item| new(item) }
11
+ end
12
+
13
+ end
14
+
15
+ attr_reader :object
16
+
17
+ def initialize(object)
18
+ @object = object
19
+ super
20
+ end
21
+
22
+ end
23
+
24
+ end
data/lib/husky/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Husky
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
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.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Fiser
@@ -67,6 +67,7 @@ files:
67
67
  - lib/husky.rb
68
68
  - lib/husky/broadcaster.rb
69
69
  - lib/husky/ears.rb
70
+ - lib/husky/entity.rb
70
71
  - lib/husky/interactor.rb
71
72
  - lib/husky/pass_along.rb
72
73
  - lib/husky/repo.rb