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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b569736a2799a9455febcbb900042168be2f872a46657080cf1f31771e8f569
4
- data.tar.gz: a97cf13cfdaaab60b16221493eab5a2de0fe7160e8d785f1ac9f5daad838e66a
3
+ metadata.gz: f3e24e4381dfa87447517c281cf863fa0aaea551a46ec6af6f268188c3ad2e40
4
+ data.tar.gz: 2230a4cbe52d63b1604b6fb3631dea6cdf8cae0e70d88eceffe3aae326c06ce7
5
5
  SHA512:
6
- metadata.gz: 980bda5f214ae656a859d14041846b540341b7279cfe5fd997639d624d282811fc18968ade23822687c7b97de9363b4a3346d9dac58a0a3708585f1c02b5c45d
7
- data.tar.gz: f62979c7577fae30c86b357bb50894b79c15d62603325c2496f4e341fdb93d40079873a83138f357c36c66a32089908e3e2368ac9ee579396e57f9c1714d1439
6
+ metadata.gz: e41a1b190f7589b807db57104de7df8ec9c3cc1f046e93de2f05c712861d2e8b5a4b2a997e4315e98e39dee8474156de5534ed0720336485eb7e1bda8da7d184
7
+ data.tar.gz: e73715ea79be1b1db8f6df792d0af99f235030a6a5719a5b23825364fcb22980776fe95eea14d579145e68984a79795fa9ecc19680f971fdaaf5d115afcbfff8
@@ -3,7 +3,7 @@ sudo: false
3
3
  language: ruby
4
4
  cache: bundler
5
5
  rvm:
6
- - 2.5.1
6
+ - 2.6.5
7
7
  before_install: gem install bundler -v 2.0.2
8
8
  env:
9
9
  global:
@@ -1,3 +1,4 @@
1
+ - 0.12.1 - Fixes shrinking when filtering bug.
1
2
  - 0.12.0 - `PropCheck::Generators#instance`
2
3
  - 0.11.0 - Improved syntax to support Ruby 2.7 and up without deprecation warnings, full support for `#where`.
3
4
  - 0.10.0 - Some bugfixes, support for `#where`
@@ -28,7 +28,9 @@ module PropCheck
28
28
 
29
29
  (0..max_consecutive_attempts).each do
30
30
  res = @block.call(**kwargs)
31
- return res unless res.root == :"_PropCheck.filter_me"
31
+ next if res.root == :"_PropCheck.filter_me"
32
+
33
+ return res
32
34
  end
33
35
 
34
36
  raise Errors::GeneratorExhaustedError, """
@@ -532,6 +532,7 @@ module PropCheck
532
532
  #
533
533
  #
534
534
  # class User
535
+ # attr_accessor :name, :age
535
536
  # def initialize(name: , age: )
536
537
  # @name = name
537
538
  # @age = age
@@ -9,12 +9,16 @@ module PropCheck
9
9
 
10
10
  include Enumerable
11
11
 
12
- attr_accessor :root, :children
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
@@ -1,3 +1,3 @@
1
1
  module PropCheck
2
- VERSION = '0.12.0'
2
+ VERSION = '0.12.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prop_check
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Qqwy/Wiebe-Marten Wijnja