suggest_rb 0.4.0 → 0.5.0

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: 34aee46d7b04cc746443cae1623bc6ec09fdfc6c
4
- data.tar.gz: 9168c4b4db034e5c46645b7e6a2b8c2aa359addd
3
+ metadata.gz: c269ef22f1db4fdef4d1018756365fc48befd76f
4
+ data.tar.gz: 649da7b2aa862fa6452d3e17c63d0a5a24d20416
5
5
  SHA512:
6
- metadata.gz: 04e21185e022abc6113aa0cd130ad78ab1ad770712130b5d728ea4aef6515b734e88e4b68c79fcadec8e87e8245d033cd49835fa00e0b5e64e60698b854f40bb
7
- data.tar.gz: 68483b98b9fa8402c0e569f2088deb65fcc5c7407b460f6a143fdbdf80fd09389b9eb216b6823067586c62a68f35581364a439102111f5ef938998f2d0069e2d
6
+ metadata.gz: 01aa614cff8ffeba688693a83f2eb2a5ef73e5a536286e0b09aa7693e3cdda88ee7fe5546a5cc15c97856d09b86047e8887bbc59f53b305f7f7a3e1de64a0355
7
+ data.tar.gz: 9e7d428a0b3af1093be9b00a9bb92499c49b37fa5b6c00d18fee4599850a19f500a789fc86334d61b86febf404b8a8937227a51b72f2435ea31329c3da38fc53
data/lib/suggest.rb CHANGED
@@ -66,7 +66,11 @@ module Suggest
66
66
 
67
67
  next unless allow_mutation || self == post
68
68
 
69
- Suggest.eq?(result, expected)
69
+ if expected.is_a?(Proc) && expected.lambda?
70
+ expected.call(result)
71
+ else
72
+ Suggest.eq?(result, expected)
73
+ end
70
74
  end.map(&:name)
71
75
  end
72
76
 
@@ -1,3 +1,3 @@
1
1
  module Suggest
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: suggest_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Bodah
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-14 00:00:00.000000000 Z
11
+ date: 2019-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler