prop_check 0.6.2 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/Gemfile.lock +3 -1
- data/README.md +1 -1
- data/lib/prop_check/property.rb +5 -3
- data/lib/prop_check/rspec.rb +6 -2
- data/lib/prop_check/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e010c608cb9a9430d54e551fb767b2700f6b6e93c515c0dbbc90d6eb6decb443
|
4
|
+
data.tar.gz: 4934ee0a13611fdb88874c5db75ed61f06c810358820b9a8a113c2bfb825fb13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61be10c6a135a800e6789ee77cdcdc8883aadb96f3920227c386a89268bb048eab4cf8e4ff8e2a2c79f6862665e6b1f3e6cecd298c86e5b2daf2b4e94219e35f
|
7
|
+
data.tar.gz: 76dc47475731dd92b82b018e50a1552ea8b10403374632381ec1721c9f23a98fa31be6fab18a9e6a62f98ac59dc6a6a9f86b389a6877210a815143069fd97efe
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
prop_check (0.
|
4
|
+
prop_check (0.7.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
+
awesome_print (1.8.0)
|
9
10
|
diff-lcs (1.3)
|
10
11
|
docile (1.3.2)
|
11
12
|
doctest-core (0.0.2)
|
@@ -37,6 +38,7 @@ PLATFORMS
|
|
37
38
|
ruby
|
38
39
|
|
39
40
|
DEPENDENCIES
|
41
|
+
awesome_print
|
40
42
|
bundler (~> 2.0)
|
41
43
|
doctest-rspec
|
42
44
|
prop_check!
|
data/README.md
CHANGED
@@ -26,7 +26,7 @@ Before releasing this gem on Rubygems, the following things need to be finished:
|
|
26
26
|
- [x] Stop after a ludicrous amount of generator runs, to prevent malfunctioning (infinitely looping) generators from blowing up someone's computer.
|
27
27
|
- [x] Look into customization of settings from e.g. command line arguments.
|
28
28
|
- [x] Good, unicode-compliant, string generators.
|
29
|
-
- [
|
29
|
+
- [x] Filtering generator outputs.
|
30
30
|
|
31
31
|
# Nice-to-haves
|
32
32
|
|
data/lib/prop_check/property.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'stringio'
|
2
|
+
require "awesome_print"
|
2
3
|
|
3
4
|
require 'prop_check/property/configuration'
|
4
5
|
require 'prop_check/property/check_evaluator'
|
@@ -205,9 +206,10 @@ module PropCheck
|
|
205
206
|
end
|
206
207
|
|
207
208
|
private def print_roots(lazy_tree_hash)
|
208
|
-
lazy_tree_hash.map do |name, val|
|
209
|
-
|
210
|
-
end.join(", ")
|
209
|
+
# lazy_tree_hash.map do |name, val|
|
210
|
+
# "#{name} = #{val.inspect}"
|
211
|
+
# end.join(", ")
|
212
|
+
lazy_tree_hash.ai
|
211
213
|
end
|
212
214
|
|
213
215
|
private def shrink(bindings_tree, io, &fun)
|
data/lib/prop_check/rspec.rb
CHANGED
@@ -5,8 +5,12 @@ module PropCheck
|
|
5
5
|
# To make it available within examples
|
6
6
|
def self.extend_object(obj)
|
7
7
|
obj.define_method(:forall) do |*args, **kwargs, &block|
|
8
|
-
|
9
|
-
|
8
|
+
if block_given?
|
9
|
+
PropCheck::Property.forall(*args, **kwargs) do
|
10
|
+
instance_exec(self, &block)
|
11
|
+
end
|
12
|
+
else
|
13
|
+
PropCheck::Property.forall(*args, **kwargs)
|
10
14
|
end
|
11
15
|
end
|
12
16
|
end
|
data/lib/prop_check/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prop_check
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Qqwy/Wiebe-Marten Wijnja
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|