husky 0.5.3 → 0.5.4
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: d81321be35b5859f70be7217e18c69163b9982da
|
4
|
+
data.tar.gz: e4f7a91259c741630289020698b406ae19c5d84f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6aab8ad94e82bd382edeeb9c531a7eff47e3e691ea64d562f90d4a1bfbdda84b51c98a4fbb391a15893ac6c0cfec7dc6dea9e21de871674efa9d69a6adac0246
|
7
|
+
data.tar.gz: 58310d2c2860a59cfd4d79e159c2a651123edfa7ee13b62a91e374555a0f5466c4073b892e964b0fdfda9a1de69d82b5c60c2c961e62918c965b0ddc3ebc1e77
|
data/lib/husky/entity.rb
CHANGED
@@ -22,7 +22,6 @@ module Husky
|
|
22
22
|
if data.nil?
|
23
23
|
# do nothing
|
24
24
|
elsif data.is_a? Hash
|
25
|
-
@data = data
|
26
25
|
data.each_pair do |key, value|
|
27
26
|
instance_variable_set("@#{key}", value)
|
28
27
|
end
|
@@ -54,7 +53,8 @@ module Husky
|
|
54
53
|
end
|
55
54
|
|
56
55
|
def method_missing(method, *args, &block)
|
57
|
-
|
56
|
+
raise "#{method} called on @data, but @data is nil." if data.nil?
|
57
|
+
data.send(method, *args, &block)
|
58
58
|
end
|
59
59
|
|
60
60
|
end
|
data/lib/husky/version.rb
CHANGED