rubycheck 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rubycheck.rb +6 -4
  3. data/lib/version.rb +1 -1
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b196a43a2d5c9836723dec5fa660e0456590b22
4
- data.tar.gz: e665ad91305e0753191a1c61f789051bb554f23f
3
+ metadata.gz: 9de3dd24951b07e6e1070abec06095095f4cf935
4
+ data.tar.gz: 4d6a1b25c176b81fa1f40727d5567886d03cd478
5
5
  SHA512:
6
- metadata.gz: aad20f029872739210b28368da6d5b75c530b248efc1d4eebab0e3950b40c5763a364c47bd09eca823b1a2436efb49f26f5cb0da1205d8eac66f4e41d78feef5
7
- data.tar.gz: ef02cca93b8e8ae34ffb72790ac28fc24d73fcebeee98c8a6677b94e1434ff53d22070336bb6d22a411ec733bca357dd5a17cb1c99bbc18918ca0f1d5fdf79d8
6
+ metadata.gz: 09266fa4d08409ec6ca0e9b3611a24b86d01090c9b6158034027d02ce778dbdce0b786f18459d69199c244ea3ddac1ffdf74c95309a8092032ee29b262cdf3f9
7
+ data.tar.gz: 472adf7e87966056e78f0433c8480f6461ec7531f7040fd19bd6bbab929b1a84d2948bb15d1bbb25bebcdcb25504380b647794f6294fc3051bb70ab960309817
data/lib/rubycheck.rb CHANGED
@@ -1,4 +1,4 @@
1
- require 'version'
1
+ require_relative 'version'
2
2
 
3
3
  require 'contracts'
4
4
  include Contracts
@@ -12,6 +12,8 @@ include Contracts
12
12
  # and encourages monkeypatching for defining generators for custom types.
13
13
  #
14
14
  module RubyCheck
15
+ include Contracts::Modules
16
+
15
17
  Contract nil => Bool
16
18
  #
17
19
  # Generate a random boolean.
@@ -83,7 +85,7 @@ module RubyCheck
83
85
  gen_uint % 256
84
86
  end
85
87
 
86
- Contract nil => Integer
88
+ Contract nil => String
87
89
  #
88
90
  # Generate a random ASCII character.
89
91
  #
@@ -96,7 +98,7 @@ module RubyCheck
96
98
  (gen_uint % 128).chr
97
99
  end
98
100
 
99
- Contract Proc => Array
101
+ Contract Symbol => Array
100
102
  #
101
103
  # Generate a random array, populated with values generated with <i>gen_sym</i>.
102
104
  #
@@ -149,7 +151,7 @@ module RubyCheck
149
151
  end
150
152
  end
151
153
 
152
- Contract Proc, ArrayOf[Proc] => Bool
154
+ Contract Proc, ArrayOf[Symbol] => Or[Bool, Array]
153
155
  #
154
156
  # Evaluates <i>property</i>, <i>TRIALS</i> times, over random inputs generated by <i>gen_syms</i>.
155
157
  #
data/lib/version.rb CHANGED
@@ -6,5 +6,5 @@ module RubyCheck
6
6
  # <i>VERSION</i> is defined once, available to gemspec during packaging,
7
7
  # and available programmatically to Ruby code.
8
8
  #
9
- VERSION = '0.0.7'
9
+ VERSION = '0.0.8'
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubycheck
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Pennebaker
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: '0.4'
19
+ version: '0.8'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: '0.4'
26
+ version: '0.8'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -263,7 +263,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
263
263
  version: '0'
264
264
  requirements: []
265
265
  rubyforge_project:
266
- rubygems_version: 2.4.5
266
+ rubygems_version: 2.4.6
267
267
  signing_key:
268
268
  specification_version: 4
269
269
  summary: a Ruby port of the QuickCheck unit test framework