prop_check 0.12.0 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/CHANGELOG.md +1 -0
- data/lib/prop_check/generator.rb +3 -1
- data/lib/prop_check/generators.rb +1 -0
- data/lib/prop_check/lazy_tree.rb +6 -1
- data/lib/prop_check/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3e24e4381dfa87447517c281cf863fa0aaea551a46ec6af6f268188c3ad2e40
|
4
|
+
data.tar.gz: 2230a4cbe52d63b1604b6fb3631dea6cdf8cae0e70d88eceffe3aae326c06ce7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e41a1b190f7589b807db57104de7df8ec9c3cc1f046e93de2f05c712861d2e8b5a4b2a997e4315e98e39dee8474156de5534ed0720336485eb7e1bda8da7d184
|
7
|
+
data.tar.gz: e73715ea79be1b1db8f6df792d0af99f235030a6a5719a5b23825364fcb22980776fe95eea14d579145e68984a79795fa9ecc19680f971fdaaf5d115afcbfff8
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/lib/prop_check/generator.rb
CHANGED
@@ -28,7 +28,9 @@ module PropCheck
|
|
28
28
|
|
29
29
|
(0..max_consecutive_attempts).each do
|
30
30
|
res = @block.call(**kwargs)
|
31
|
-
|
31
|
+
next if res.root == :"_PropCheck.filter_me"
|
32
|
+
|
33
|
+
return res
|
32
34
|
end
|
33
35
|
|
34
36
|
raise Errors::GeneratorExhaustedError, """
|
data/lib/prop_check/lazy_tree.rb
CHANGED
@@ -9,12 +9,16 @@ module PropCheck
|
|
9
9
|
|
10
10
|
include Enumerable
|
11
11
|
|
12
|
-
attr_accessor :root
|
12
|
+
attr_accessor :root
|
13
13
|
def initialize(root, children = [].lazy)
|
14
14
|
@root = root
|
15
15
|
@children = children
|
16
16
|
end
|
17
17
|
|
18
|
+
def children
|
19
|
+
@children.reject { |child| child.root == :"_PropCheck.filter_me" }
|
20
|
+
end
|
21
|
+
|
18
22
|
##
|
19
23
|
# Maps `block` eagerly over `root` and lazily over `children`, returning a new LazyTree as result.
|
20
24
|
#
|
@@ -121,5 +125,6 @@ module PropCheck
|
|
121
125
|
end
|
122
126
|
end
|
123
127
|
end
|
128
|
+
|
124
129
|
end
|
125
130
|
end
|
data/lib/prop_check/version.rb
CHANGED