bound 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/bound.rb +2 -2
  3. data/lib/bound/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2f7a861be5786e9c63288302cd956278041d4465
4
- data.tar.gz: 76a7db28ebbac84fe9596a443e8dda2cdc2dc199
3
+ metadata.gz: dbbe3eeeb3fc4c0d7ba43f0ee1f919a8dae035e1
4
+ data.tar.gz: 94f41af4993edf43b4b54031eff007b25be52c1e
5
5
  SHA512:
6
- metadata.gz: 0eaa78599c10b8719ce5b7953529015877b3b39fab5a2eb1c01f93500c0ddd5b5a92b1f02002e2236254eea9d47dbbdc8f8b1a5865fa4f6df26e87c9a8c637ff
7
- data.tar.gz: 486ae7ca380ebb1247f40e4ffe06a5a45e229170b637069dd3d3c1f8f3a1cec7c50ca407762c46d4c9ced2baac67bb4177b67873929020c131fc9b57c41dbb23
6
+ metadata.gz: c4675a46b510b8df00e9688288f05d572cc1fe48f2b13dfea32943b2974379533191bc1e2627876ca5aff3a3ef56360f6f7095c005225ad134734bc4c0b7ad1f
7
+ data.tar.gz: 30d0f365d8bdb9a1a5febff2d86d4a658b20eb3382118369d819be2669a4eb8e5769b67c9f5739b0597a6663cb357baa6565effdf969d4aed4514b7af730569d
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  class Bound
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bound
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jakob Holderbaum