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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4beba1b773706a7e7f75696a7040667172e44646246dc9ccdbc87faa03f70f55
4
- data.tar.gz: 2c6e0c8aabc7c9c69da74c11ad2e79461ed5f6e1c5e550b0eb32923366f84c84
3
+ metadata.gz: e010c608cb9a9430d54e551fb767b2700f6b6e93c515c0dbbc90d6eb6decb443
4
+ data.tar.gz: 4934ee0a13611fdb88874c5db75ed61f06c810358820b9a8a113c2bfb825fb13
5
5
  SHA512:
6
- metadata.gz: 25a28c29aaedcfcff34a5fa8f3c7164b6df7536eed2134416467dd46b7c8502530c6511cf6b54d0ca2f1b8ee3b59ffaa62dc6a132667a0179f0dbead7fcf6b41
7
- data.tar.gz: d9d9790f110d56920570e25d2ed2b6ee0657ec99bc46b509593215405fe19de6545ecaa990a096fd75259d9122c7a7404a9f2e6194cc808707ed01f8489201ed
6
+ metadata.gz: 61be10c6a135a800e6789ee77cdcdc8883aadb96f3920227c386a89268bb048eab4cf8e4ff8e2a2c79f6862665e6b1f3e6cecd298c86e5b2daf2b4e94219e35f
7
+ data.tar.gz: 76dc47475731dd92b82b018e50a1552ea8b10403374632381ec1721c9f23a98fa31be6fab18a9e6a62f98ac59dc6a6a9f86b389a6877210a815143069fd97efe
data/Gemfile CHANGED
@@ -5,3 +5,4 @@ gemspec
5
5
 
6
6
  gem 'simplecov', require: false, group: :test
7
7
  gem 'doctest-rspec', require: false, group: :test
8
+ gem 'awesome_print', require: true
@@ -1,11 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- prop_check (0.6.1)
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
- - [ ] Filtering generator outputs.
29
+ - [x] Filtering generator outputs.
30
30
 
31
31
  # Nice-to-haves
32
32
 
@@ -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
- "#{name} = #{val.inspect}"
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)
@@ -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
- PropCheck::Property.forall(*args, **kwargs) do
9
- instance_exec(self, &block)
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
@@ -1,3 +1,3 @@
1
1
  module PropCheck
2
- VERSION = "0.6.2"
2
+ VERSION = "0.7.0"
3
3
  end
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.6.2
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-04 00:00:00.000000000 Z
11
+ date: 2019-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler