bound 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/bound.rb +2 -2
- data/lib/bound/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: dbbe3eeeb3fc4c0d7ba43f0ee1f919a8dae035e1
|
4
|
+
data.tar.gz: 94f41af4993edf43b4b54031eff007b25be52c1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4675a46b510b8df00e9688288f05d572cc1fe48f2b13dfea32943b2974379533191bc1e2627876ca5aff3a3ef56360f6f7095c005225ad134734bc4c0b7ad1f
|
7
|
+
data.tar.gz: 30d0f365d8bdb9a1a5febff2d86d4a658b20eb3382118369d819be2669a4eb8e5769b67c9f5739b0597a6663cb357baa6565effdf969d4aed4514b7af730569d
|
data/lib/bound.rb
CHANGED
@@ -210,7 +210,7 @@ class Bound
|
|
210
210
|
|
211
211
|
def method_missing(meth, *args, &blk)
|
212
212
|
attribute = meth.to_s.gsub(/=$/, '')
|
213
|
-
raise ArgumentError.new("Unknown attribute: #{attribute}")
|
213
|
+
raise ArgumentError.new("Unknown attribute: #{self.class}##{attribute}")
|
214
214
|
end
|
215
215
|
|
216
216
|
def get_attributes
|
@@ -245,7 +245,7 @@ class Bound
|
|
245
245
|
|
246
246
|
def validate!
|
247
247
|
get_attributes.each do |attribute|
|
248
|
-
raise ArgumentError.new("Missing attribute: #{attribute.name}") unless attribute.valid?
|
248
|
+
raise ArgumentError.new("Missing attribute: #{self.class}##{attribute.name}") unless attribute.valid?
|
249
249
|
end
|
250
250
|
end
|
251
251
|
|
data/lib/bound/version.rb
CHANGED