suggest_rb 0.5.0 → 0.5.1

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: c269ef22f1db4fdef4d1018756365fc48befd76f
4
- data.tar.gz: 649da7b2aa862fa6452d3e17c63d0a5a24d20416
3
+ metadata.gz: 6237fd6995151a2f3a715639d9e0518340b52032
4
+ data.tar.gz: e35122c4e1959e093ce9d476d24c4b31a9c937c7
5
5
  SHA512:
6
- metadata.gz: 01aa614cff8ffeba688693a83f2eb2a5ef73e5a536286e0b09aa7693e3cdda88ee7fe5546a5cc15c97856d09b86047e8887bbc59f53b305f7f7a3e1de64a0355
7
- data.tar.gz: 9e7d428a0b3af1093be9b00a9bb92499c49b37fa5b6c00d18fee4599850a19f500a789fc86334d61b86febf404b8a8937227a51b72f2435ea31329c3da38fc53
6
+ metadata.gz: 8b8d618865cb9263990c49cb350ce12b688b08f93db07f3151772855a2fbd0c23e352fa6fd6466a4fccdb50d1f157761fe8fb6a9304d644dff582a366fe7625b
7
+ data.tar.gz: 26518129586fe19ef9e19d404a2204030fe11212517836301c2eb51148a6a81ebcd09af08f3b350e1e26bb9c3bbad2a66ed5ca818354f649e856ece29a2fff36
data/lib/suggest.rb CHANGED
@@ -67,7 +67,7 @@ module Suggest
67
67
  next unless allow_mutation || self == post
68
68
 
69
69
  if expected.is_a?(Proc) && expected.lambda?
70
- expected.call(result)
70
+ expected.call(result) rescue false
71
71
  else
72
72
  Suggest.eq?(result, expected)
73
73
  end
@@ -1,3 +1,3 @@
1
1
  module Suggest
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: suggest_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Bodah