queryable_hash 0.0.3 → 0.0.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: ff91274d23e311980e0074abb7ccdcb236bd93cb
4
- data.tar.gz: 95f0bbb76cba4ad34bf990e7461c1af30865c5a2
3
+ metadata.gz: 013d8d8d053748011b04843c3fc884acc1add3a5
4
+ data.tar.gz: c7ae4a613c552ab8b5e0ae8980f0296ee6882397
5
5
  SHA512:
6
- metadata.gz: c4ae0c5ab6fba94bbdc74f74310ccd2d4e250e98f004be01952e33543b501f5a242adaa0c5e78650a816eae5056d2fbb29cc7fd5cb2e29c632e15507e70e678f
7
- data.tar.gz: 84478f96b70c495e61d084f9b29ffb1baaa7b156519d3bbdf18ce3ea67faca7cb26e0649a081aa580381023c1bcbf94b3597db685c2f6b19dfe82841d3f54da5
6
+ metadata.gz: c77d43636a7b286f7a6031447df3253919c81e283740cbb8edf93dc41f3e38cf52a8e2c09d26d184876355a9da56d68c036e0850ef1c15c426c380f56cffc11a
7
+ data.tar.gz: 028abca755d539225757554fe8de48b634e2d9b36ad728bc0177ba242a14159a734d66f445435cf891a5a89da23c37dadce5cc937ea9ee16adb926601eb83d91
@@ -1,3 +1,3 @@
1
1
  module QueryableHash
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -31,7 +31,7 @@ module QueryableHash
31
31
  end
32
32
  first ||= nil_value
33
33
 
34
- raise NotFoundError if raise_when_nil && first == nil_value
34
+ raise NotFoundError.new("#{queries.join(", ")} not found") if raise_when_nil && first == nil_value
35
35
  first
36
36
  end
37
37
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: queryable_hash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Hopkins