gen-test 0.1.1 → 0.1.2

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: 44397a8deb3d218362e1e7881f011ceb05d594a4ef8543111f78d4e51ccbce84
4
- data.tar.gz: 6933716b464c2366e893a03c430332c2ad86700c7d78341fb0bbe9fc8a8b23e4
3
+ metadata.gz: 3362b60543be8aa905eccdbe8ab48d561b762aaad439b8846666eee8f2a52be0
4
+ data.tar.gz: 5acdc0784647621891b6e0b1769ef07bcec6281d77f8303106b0c35e1391382e
5
5
  SHA512:
6
- metadata.gz: b48d7d26e035eeecd2a662c506400877947d511457fcfaec69bfa3481cba3d4bb9d77839211e13d1cb00f4c40e02c85f24c666bd72756389be9afbf415bb2b8e
7
- data.tar.gz: ed28df91d63613cb14c88907a82d6aedd79a08f3ff1dcb1b9f41215b079eae6fb17a5e3fcf70d89c6d13ae1feb8e7eea0449348b1550b4afcd982d7a0e539998
6
+ metadata.gz: 55d4c7662398f69aca0b567cc9ffc77e57e262ddb82bcecb2f8141556dc40ea5327b8092d1ff6df4d97015bed060a3d64f53b9cea3d4272269b2789367f0192f
7
+ data.tar.gz: '09357bae6c26ab174aef8fc1febcb47a96ee5418ca98a33290973baa8936801a1f014f2e482d303e52781b66dcb873023a13b15809a62dcfa20e08c676d0c54a'
@@ -0,0 +1,20 @@
1
+ name: Ruby
2
+
3
+ on: [push]
4
+
5
+ jobs:
6
+ build:
7
+
8
+ runs-on: ubuntu-latest
9
+
10
+ steps:
11
+ - uses: actions/checkout@v2
12
+ - name: Set up Ruby 2.6
13
+ uses: actions/setup-ruby@v1
14
+ with:
15
+ ruby-version: 2.6.x
16
+ - name: Build and test with Rake
17
+ run: |
18
+ gem install bundler
19
+ bundle install --jobs 4 --retry 3
20
+ bundle exec rake
data/.gitignore CHANGED
@@ -11,3 +11,4 @@
11
11
  .rspec_status
12
12
  .rakeTasks
13
13
  *.iml
14
+ tags*
@@ -1,21 +1,21 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gen-test (0.1.1)
4
+ gen-test (0.1.2)
5
5
  faker (~> 1.9.6)
6
6
  regexp-examples (~> 1.5.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- concurrent-ruby (1.1.5)
11
+ concurrent-ruby (1.1.6)
12
12
  diff-lcs (1.3)
13
13
  faker (1.9.6)
14
14
  i18n (>= 0.7)
15
- i18n (1.6.0)
15
+ i18n (1.8.2)
16
16
  concurrent-ruby (~> 1.0)
17
17
  rake (10.5.0)
18
- regexp-examples (1.5.0)
18
+ regexp-examples (1.5.1)
19
19
  rspec (3.8.0)
20
20
  rspec-core (~> 3.8.0)
21
21
  rspec-expectations (~> 3.8.0)
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
- ![Gem](https://img.shields.io/gem/v/gen-test)
1
+ ![Ruby](https://github.com/delonnewman/gen-test/workflows/Ruby/badge.svg)
2
+ [![Gem Version](https://badge.fury.io/rb/gen-test.svg)](https://badge.fury.io/rb/gen-test)
2
3
 
3
4
  Gen::Test
4
5
  =========
@@ -27,7 +28,7 @@ Why?
27
28
  ====
28
29
 
29
30
  Generative or property based testing is an approach to testing where tests are automatically generated from
30
- defintions for properties of the system being tested. While slower, generative testing has much value for
31
+ definitions for properties of the system being tested. While slower, generative testing has much value for
31
32
  unit, acceptance and integration testing over TDD and BDD.
32
33
 
33
34
  For example, generative tests still have much value when they're written after your code, and when extensive
@@ -71,5 +72,4 @@ See Also
71
72
  - For Clojure [test.check](https://github.com/clojure/test.check)
72
73
  - For Haskell (the original version) [QuickCheck](https://hackage.haskell.org/package/QuickCheck)
73
74
  - For Erlang (the most complete version) [QuickCheck](http://www.quviq.com/products/erlang-quickcheck/)
74
-
75
75
  - There's quite a few different versions for [Ruby](https://rubygems.org/search?utf8=%E2%9C%93&query=quickcheck)
data/lib/gen.rb CHANGED
@@ -36,10 +36,11 @@ module Gen
36
36
  end
37
37
 
38
38
  def generate(generator)
39
- if generator.respond_to?(:call)
40
- generator.call
41
- elsif generator.respond_to?(:generate)
39
+ if generator.respond_to?(:generate)
42
40
  generator.generate
41
+ elsif generator.respond_to?(:call)
42
+ STDERR.puts "WARN: Objects that implement `call` are no longer automatically generators you must implement `generate`"
43
+ generator
43
44
  else
44
45
  generator
45
46
  end
@@ -1,5 +1,5 @@
1
1
  module Gen
2
2
  module Test
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gen-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delon Newman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-29 00:00:00.000000000 Z
11
+ date: 2020-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faker
@@ -101,6 +101,7 @@ executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
+ - ".github/workflows/ruby.yml"
104
105
  - ".gitignore"
105
106
  - ".rspec"
106
107
  - Gemfile