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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5995ae3cb3bedfddc3f6ff3c5d3d7a287da81127
4
- data.tar.gz: aff0a6340554d05f89ab40e91849b2aec1f8b85a
3
+ metadata.gz: d81321be35b5859f70be7217e18c69163b9982da
4
+ data.tar.gz: e4f7a91259c741630289020698b406ae19c5d84f
5
5
  SHA512:
6
- metadata.gz: a91fd2fbd40a0f52cec36fcaa327a7bdae3cb75f99badc73caba0b54706b767e87f57b5f6b29fb5be32372b102b3637614c9e6ca4234bfceab0ab58dffadbcd3
7
- data.tar.gz: 75fdc01de06814db1020d9ba03db4b32e0e103f2c546d08aa136413281726798370ce150c92ec5b5314eacca9e944ae3ac1f584956ce861e7901671016678ba3
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
- data.send method, *args, &block
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
@@ -1,3 +1,3 @@
1
1
  module Husky
2
- VERSION = "0.5.3"
2
+ VERSION = "0.5.4"
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.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Fiser