husky 0.4.7 → 0.4.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/entity.rb +2 -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: 321531cb611c89432e8cbc10f077f50b6163ac3f
|
4
|
+
data.tar.gz: 6f96526b761598fcb7c3a9369c70792fc5801e72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87ca458b62cac540d41d950d1ada6b2e342e01430b8e380b0ced836b97d5149c0629e82554cc27d939f0d0b9a4b04246b1982e208118b9319f4aaa2a165fac6c
|
7
|
+
data.tar.gz: dfdf88c10102c8deec6a28a6aa5347817a4dbe3d078c0e4d06ee1f728c79ef636de74cb65727a064f8732d1e7cb2ecdf37c01aeb5180b10c8e2386e7d8ef753b
|
data/lib/husky/entity.rb
CHANGED
@@ -10,7 +10,7 @@ module Husky
|
|
10
10
|
items.map { |item| new(item) }
|
11
11
|
end
|
12
12
|
|
13
|
-
def new(data)
|
13
|
+
def new(data = nil)
|
14
14
|
instance = allocate
|
15
15
|
instance.initialize(data)
|
16
16
|
instance
|
@@ -20,7 +20,7 @@ module Husky
|
|
20
20
|
|
21
21
|
attr_reader :data
|
22
22
|
|
23
|
-
def initialize(data
|
23
|
+
def initialize(data)
|
24
24
|
if data.nil?
|
25
25
|
# do nothing
|
26
26
|
elsif data.is_a? Hash
|
data/lib/husky/version.rb
CHANGED