generative 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/ci.yml +26 -0
- data/CHANGELOG.md +21 -3
- data/README.md +7 -7
- data/generative.gemspec +1 -2
- data/lib/generative.rb +1 -0
- data/spec/generative/generator_manager_spec.rb +1 -1
- data/spec/generative/ordering_spec.rb +1 -1
- data/spec/generative/rake_task_spec.rb +1 -1
- data/spec/generative_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -0
- metadata +8 -14
- data/.travis.yml +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3dc4a220c7ed12097f5fa3fad6118130d716c7836146303ea35a33566fd44313
|
4
|
+
data.tar.gz: 05bc94db4ae4340694a1acbd7d6ffd9f83f352bf36a9fd9571836d6fff00464f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a49da806f77ba8a38e40b72a146429cc7e4dc63260de5a201aadded4a484b41db7ec7a3239f30202597172943de3b3fc3c28da62ba4c1b15d3649e843798e5d0
|
7
|
+
data.tar.gz: 6803173dd0267d2a00291e47904524872bc2e8f9945f757498122bf64fddb1cf78c02ecd3d7bd50f55bd47d11d87692e867cbd062d6d919a9cb505e6a74a43ae
|
@@ -0,0 +1,26 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ main ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ main ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
test:
|
11
|
+
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
|
14
|
+
strategy:
|
15
|
+
matrix:
|
16
|
+
ruby-version: ["3.0", "2.7", "2.6", "2.5", "ruby-head"]
|
17
|
+
|
18
|
+
steps:
|
19
|
+
- uses: actions/checkout@v2
|
20
|
+
- name: Set up Ruby ${{ matrix.ruby-version }}
|
21
|
+
uses: ruby/setup-ruby@v1
|
22
|
+
with:
|
23
|
+
ruby-version: ${{ matrix.ruby-version }}
|
24
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
25
|
+
- name: Run tests
|
26
|
+
run: bundle exec rake ci
|
data/CHANGELOG.md
CHANGED
@@ -1,14 +1,32 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
## 0.2.
|
3
|
+
## 0.2.5 (2022-01-25)
|
4
|
+
|
5
|
+
https://github.com/justincampbell/generative/compare/v0.2.4...v0.2.5
|
6
|
+
|
7
|
+
- Fix: require forwardable ([#30](https://github.com/justincampbell/generative/pull/30))
|
8
|
+
|
9
|
+
## 0.2.4 (2016-09-15)
|
10
|
+
|
11
|
+
https://github.com/justincampbell/generative/compare/v0.2.4...v0.2.4
|
12
|
+
|
13
|
+
## 0.2.3 (2014-12-16)
|
14
|
+
|
15
|
+
https://github.com/justincampbell/generative/compare/v0.2.2...v0.2.3
|
16
|
+
|
17
|
+
## 0.2.2 (2014-12-08)
|
18
|
+
|
19
|
+
https://github.com/justincampbell/generative/compare/v0.2.0...v0.2.2
|
20
|
+
|
21
|
+
## 0.2.0 (2014-08-13)
|
4
22
|
|
5
23
|
* Drop support for RSpec 2
|
6
24
|
* Update RSpec integration to support RSpec 3 final (@jessitron)
|
7
25
|
|
8
|
-
## 0.1.0
|
26
|
+
## 0.1.0 (2013-12-18)
|
9
27
|
|
10
28
|
* Add support for RSpec 2
|
11
29
|
|
12
|
-
## 0.0.1
|
30
|
+
## 0.0.1 (2013-11-21)
|
13
31
|
|
14
32
|
* Initial release
|
data/README.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# Generative
|
2
2
|
|
3
3
|
> Generative and property-based testing for RSpec
|
4
|
-
> [![Gem Version](https://badge.fury.io/rb/generative.
|
5
|
-
> [![
|
6
|
-
> [![Code Climate](https://codeclimate.com/github/justincampbell/generative.
|
4
|
+
> [![Gem Version](https://badge.fury.io/rb/generative.svg)](http://badge.fury.io/rb/generative)
|
5
|
+
> [![CI](https://github.com/justincampbell/generative/actions/workflows/ci.yml/badge.svg)](https://github.com/justincampbell/generative/actions/workflows/ci.yml)
|
6
|
+
> [![Code Climate](https://codeclimate.com/github/justincampbell/generative.svg)](https://codeclimate.com/github/justincampbell/generative)
|
7
7
|
|
8
8
|
## Installation
|
9
9
|
|
@@ -48,7 +48,7 @@ would a `let`. Then, write your `it`/`specify` blocks as usual (while keeping
|
|
48
48
|
in mind that the input could be anything).
|
49
49
|
|
50
50
|
```rb
|
51
|
-
describe String do
|
51
|
+
RSpec.describe String do
|
52
52
|
let(:string) { "abc" }
|
53
53
|
|
54
54
|
describe "#reverse" do
|
@@ -73,7 +73,7 @@ end
|
|
73
73
|
|
74
74
|
Alternatively, you can modify existing specs in a minimally intrusive way by just adding two tags to an existing context and using the fact that `data` is just an alias for `let`:
|
75
75
|
```ruby
|
76
|
-
describe String do
|
76
|
+
RSpec.describe String do
|
77
77
|
describe "#reverse", generative: true, order: :generative do
|
78
78
|
let(:string) { rand(12345).to_s }
|
79
79
|
|
@@ -171,7 +171,7 @@ Generative.register_generator(:bar, Bar }
|
|
171
171
|
You can then use your generators using the `generate` helper.
|
172
172
|
|
173
173
|
```rb
|
174
|
-
describe String do
|
174
|
+
RSpec.describe String do
|
175
175
|
let(:string) { "abc" }
|
176
176
|
|
177
177
|
describe "#reverse" do
|
@@ -188,7 +188,7 @@ end
|
|
188
188
|
|
189
189
|
#### I heard you like generators so I put some generators in your generators...
|
190
190
|
|
191
|
-
If you want to use other generators in
|
191
|
+
If you want to use other generators in your registered generator, do note
|
192
192
|
you have to use Generative's module level method `.generate` like so...
|
193
193
|
|
194
194
|
```rb
|
data/generative.gemspec
CHANGED
@@ -10,7 +10,7 @@ authors = {
|
|
10
10
|
|
11
11
|
Gem::Specification.new do |gem|
|
12
12
|
gem.name = 'generative'
|
13
|
-
gem.version = '0.2.
|
13
|
+
gem.version = '0.2.5'
|
14
14
|
gem.authors = authors.keys
|
15
15
|
gem.email = authors.values
|
16
16
|
gem.description = "Generative and property-based testing for RSpec"
|
@@ -20,7 +20,6 @@ Gem::Specification.new do |gem|
|
|
20
20
|
|
21
21
|
gem.files = `git ls-files`.split($/)
|
22
22
|
gem.executables = gem.files.grep(%r{^bin/}).map { |file| File.basename file }
|
23
|
-
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
24
23
|
gem.require_paths = ["lib"]
|
25
24
|
|
26
25
|
gem.add_dependency 'rspec', '>= 3.0'
|
data/lib/generative.rb
CHANGED
data/spec/generative_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: generative
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Campbell
|
8
8
|
- Dan McClory
|
9
9
|
- Nate West
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2022-01-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec
|
@@ -50,9 +50,9 @@ executables:
|
|
50
50
|
extensions: []
|
51
51
|
extra_rdoc_files: []
|
52
52
|
files:
|
53
|
+
- ".github/workflows/ci.yml"
|
53
54
|
- ".gitignore"
|
54
55
|
- ".rspec"
|
55
|
-
- ".travis.yml"
|
56
56
|
- CHANGELOG.md
|
57
57
|
- Gemfile
|
58
58
|
- LICENSE.txt
|
@@ -76,7 +76,7 @@ homepage: https://github.com/justincampbell/generative
|
|
76
76
|
licenses:
|
77
77
|
- MIT
|
78
78
|
metadata: {}
|
79
|
-
post_install_message:
|
79
|
+
post_install_message:
|
80
80
|
rdoc_options: []
|
81
81
|
require_paths:
|
82
82
|
- lib
|
@@ -91,14 +91,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
91
|
- !ruby/object:Gem::Version
|
92
92
|
version: '0'
|
93
93
|
requirements: []
|
94
|
-
|
95
|
-
|
96
|
-
signing_key:
|
94
|
+
rubygems_version: 3.2.7
|
95
|
+
signing_key:
|
97
96
|
specification_version: 4
|
98
97
|
summary: Generative and property-based testing for RSpec
|
99
|
-
test_files:
|
100
|
-
- spec/generative/generator_manager_spec.rb
|
101
|
-
- spec/generative/ordering_spec.rb
|
102
|
-
- spec/generative/rake_task_spec.rb
|
103
|
-
- spec/generative_spec.rb
|
104
|
-
- spec/spec_helper.rb
|
98
|
+
test_files: []
|