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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 57a1eb1a5f589c2b3aad9704083766c9cc529815
4
- data.tar.gz: a4e6e4aec51577f305c18fa444977b001ea88db1
2
+ SHA256:
3
+ metadata.gz: 3dc4a220c7ed12097f5fa3fad6118130d716c7836146303ea35a33566fd44313
4
+ data.tar.gz: 05bc94db4ae4340694a1acbd7d6ffd9f83f352bf36a9fd9571836d6fff00464f
5
5
  SHA512:
6
- metadata.gz: b094dbd6215c67423b70a2afd3d4d5f55dbad80cc3d4135c8ace6326229aa02ce7af4c03ab16c00b7b32302cd5a2669e0ec34737cbba4645533a026569978850
7
- data.tar.gz: 845d6d14b2bd4aa044f3dce2c4d2d5d0b244748455ad86eb0efcfcb629b2bd45e1b48f7214076bcbf4eb049c0e05fdcc4ba32747031de70acff9673a8c1cb5d1
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.0
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.png)](http://badge.fury.io/rb/generative)
5
- > [![Build Status](https://travis-ci.org/justincampbell/generative.png?branch=master)](https://travis-ci.org/justincampbell/generative)
6
- > [![Code Climate](https://codeclimate.com/github/justincampbell/generative.png)](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 you registered generator do note
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.4'
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
@@ -1,4 +1,5 @@
1
1
  require 'rspec/core'
2
+ require 'forwardable'
2
3
 
3
4
  module Generative
4
5
 
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe Generative::GeneratorManager do
3
+ RSpec.describe Generative::GeneratorManager do
4
4
 
5
5
  subject { Generative::GeneratorManager.new }
6
6
 
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe Generative::ORDERING do
3
+ RSpec.describe Generative::ORDERING do
4
4
  let(:ordering) { Generative::ORDERING }
5
5
 
6
6
  around do |example|
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
  require 'generative/rake_task'
3
3
 
4
- describe Generative::RakeTask do
4
+ RSpec.describe Generative::RakeTask do
5
5
  let(:task) { Generative::RakeTask.new(*args) }
6
6
  let(:args) { [] }
7
7
 
@@ -2,7 +2,7 @@ require 'generative'
2
2
 
3
3
  Generative.register_generator(:string) { "a" * rand(255) }
4
4
 
5
- describe String do
5
+ RSpec.describe String do
6
6
  let(:string) { "abc" }
7
7
 
8
8
  describe "#length" do
data/spec/spec_helper.rb CHANGED
@@ -20,4 +20,5 @@ RSpec.configure do |config|
20
20
  # the seed, which is printed after each run.
21
21
  # --seed 1234
22
22
  #config.order = 'random'
23
+ config.disable_monkey_patching!
23
24
  end
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
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: 2016-09-15 00:00:00.000000000 Z
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
- rubyforge_project:
95
- rubygems_version: 2.6.4
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: []
data/.travis.yml DELETED
@@ -1,11 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.1.10
4
- - 2.2.5
5
- - 2.3.1
6
- - ruby-head
7
- matrix:
8
- allow_failures:
9
- - rvm: ruby-head
10
- script:
11
- - bundle exec rake ci