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 +4 -4
- data/lib/husky.rb +1 -0
- data/lib/husky/entity.rb +24 -0
- data/lib/husky/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24a784cc74ea7b1244a501279555afb75a57362f
|
4
|
+
data.tar.gz: b7c2cb480e48fce693589cfdf52d3949b15c9e0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27ddd4bdacb7f2ab021cd7414ad89e5ce4c1b1f5f77a7ee14ae75a803646a1efdfc1e7724c1c6205d1d2816148f8b7df5d7a7078ab3fe2bbeda306ad4ee26dc8
|
7
|
+
data.tar.gz: 2dda7e540eb7ba7ab3eef11b9f837a7ea9b441d79d4ce21671b7791a9eb9bdfa62e3b5de6ba929598c351d99dbe8828d48d992c6c88f09cc803c0142eeb74c93
|
data/lib/husky.rb
CHANGED
data/lib/husky/entity.rb
ADDED
@@ -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
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.
|
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
|