gruf-rspec 0.3.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -2
- data/README.md +16 -23
- data/gruf-rspec.gemspec +11 -13
- data/lib/gruf/rspec/configuration.rb +0 -3
- data/lib/gruf/rspec/helpers.rb +0 -2
- data/lib/gruf/rspec/railtie.rb +31 -0
- data/lib/gruf/rspec/version.rb +1 -1
- data/lib/gruf/rspec.rb +17 -4
- metadata +29 -41
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 183210380a3d9ee581da3cd15372d2c7ed2a3e75614dce61799a4ca53f413bc3
|
|
4
|
+
data.tar.gz: 742b03b5cfba9551bb39e7ce005d2a68ff5bba073279ab86e4fc2604e838871b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 49c856a13070558d1141411d00985ae6a1eac96627fc5bdb1e26927ed1cfc4a0447f24d44c6014d678bb3e8f5bea4d0ac596f73c816e3c79ea5fd060f763db1f
|
|
7
|
+
data.tar.gz: f733d50ca82902e5e64bdbf8f9c5207b8b4b1451206474d286af4d7a7d7d58de48aa2c40a2484b00c326b45196b1ea56cd7e83c96e90968bb40dd2e65ca03979
|
data/CHANGELOG.md
CHANGED
|
@@ -2,9 +2,24 @@ Changelog for the gruf-rspec gem.
|
|
|
2
2
|
|
|
3
3
|
### Pending release
|
|
4
4
|
|
|
5
|
+
### 0.6.0
|
|
6
|
+
|
|
7
|
+
- Add better support for Gruf 2.15+ autoloading in a Rails test environment
|
|
8
|
+
- Use zeitwerk for autoloading in this library
|
|
9
|
+
|
|
10
|
+
### 0.5.0
|
|
11
|
+
|
|
12
|
+
- Add support for Ruby 3.1
|
|
13
|
+
- Drop support for Ruby 2.6
|
|
14
|
+
|
|
15
|
+
### 0.4.0
|
|
16
|
+
|
|
17
|
+
- Remove unnecessarily strict dev dependencies
|
|
18
|
+
- Adds support for Ruby 3.0 into test suite
|
|
19
|
+
|
|
5
20
|
### 0.3.0
|
|
6
21
|
|
|
7
|
-
- [#7] Fix issue where RPC_SPEC_PATH defaulting is hardcoded
|
|
22
|
+
- [#7] Fix issue where RPC_SPEC_PATH defaulting is hardcoded
|
|
8
23
|
- Drop support for Ruby < 2.6, add 2.7 tests
|
|
9
24
|
- Update rubocop to 1.0
|
|
10
25
|
|
|
@@ -22,7 +37,7 @@ Changelog for the gruf-rspec gem.
|
|
|
22
37
|
|
|
23
38
|
### 0.1.3
|
|
24
39
|
|
|
25
|
-
* Add ability to include metadata in rpc
|
|
40
|
+
* Add ability to include metadata in rpc callsa
|
|
26
41
|
|
|
27
42
|
### 0.1.2
|
|
28
43
|
|
data/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# gruf-rspec
|
|
2
2
|
|
|
3
|
-
[](https://circleci.com/gh/bigcommerce/gruf-rspec/tree/main) [](https://badge.fury.io/rb/gruf-rspec) [](https://inch-ci.org/github/bigcommerce/gruf-rspec?branch=main)
|
|
3
|
+
[](https://circleci.com/gh/bigcommerce/gruf-rspec/tree/main) [](https://badge.fury.io/rb/gruf-rspec) [](https://inch-ci.org/github/bigcommerce/gruf-rspec?branch=main) [](https://codeclimate.com/github/bigcommerce/gruf-rspec/maintainability) [](https://codeclimate.com/github/bigcommerce/gruf-rspec/test_coverage)
|
|
4
4
|
|
|
5
|
-
Assistance helpers and custom type for easy testing [Gruf](https://github.com/bigcommerce/gruf) controllers with
|
|
5
|
+
Assistance helpers and custom type for easy testing [Gruf](https://github.com/bigcommerce/gruf) controllers with
|
|
6
6
|
[RSpec](https://github.com/rspec/rspec).
|
|
7
7
|
|
|
8
8
|
## Installation
|
|
@@ -10,14 +10,8 @@ Assistance helpers and custom type for easy testing [Gruf](https://github.com/bi
|
|
|
10
10
|
```ruby
|
|
11
11
|
gem 'gruf-rspec'
|
|
12
12
|
```
|
|
13
|
-
|
|
14
|
-
Then add the following code to your `spec_helper.rb`:
|
|
15
13
|
|
|
16
|
-
|
|
17
|
-
require 'gruf/rspec'
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
Note that this gem requires at least Ruby 2.4+, Gruf 2.5.1+, and RSpec 3.8+.
|
|
14
|
+
Note that this gem requires at least Ruby 2.7+, Gruf 2.5.1+, and RSpec 3.8+.
|
|
21
15
|
|
|
22
16
|
## Usage
|
|
23
17
|
|
|
@@ -28,13 +22,13 @@ and the active_call_options. The third argument is optional.
|
|
|
28
22
|
|
|
29
23
|
## Example
|
|
30
24
|
|
|
31
|
-
Let's assume you have a gruf controller named `ThingController` that is bound to the gRPC
|
|
25
|
+
Let's assume you have a gruf controller named `ThingController` that is bound to the gRPC
|
|
32
26
|
service `Rpc::Things::Service`. That has a method `GetThing`:
|
|
33
27
|
|
|
34
28
|
```ruby
|
|
35
29
|
class ThingController < Gruf::Controllers::Base
|
|
36
30
|
bind ::Rpc::Things::Service
|
|
37
|
-
|
|
31
|
+
|
|
38
32
|
def get_thing
|
|
39
33
|
Rpc::GetThingResponse.new(id: request.message.id)
|
|
40
34
|
end
|
|
@@ -45,7 +39,7 @@ To test it, you'd create `spec/rpc/thing_controller_spec.rb`:
|
|
|
45
39
|
|
|
46
40
|
```ruby
|
|
47
41
|
describe ThingController do
|
|
48
|
-
describe '
|
|
42
|
+
describe '#get_thing' do
|
|
49
43
|
let(:request_proto) { Rpc::GetThingRequest.new(id: rand(1..100)) }
|
|
50
44
|
let(:metadata) {
|
|
51
45
|
{ 'user_id' => 'axj42i' }
|
|
@@ -53,8 +47,8 @@ describe ThingController do
|
|
|
53
47
|
|
|
54
48
|
subject { run_rpc(:GetThing, request_proto, active_call_options: { metadata: metadata }) }
|
|
55
49
|
|
|
56
|
-
it '
|
|
57
|
-
expect(subject).to
|
|
50
|
+
it 'returns the thing' do
|
|
51
|
+
expect(subject).to be_a_successful_rpc
|
|
58
52
|
expect(subject.id).to eq request_proto.id
|
|
59
53
|
end
|
|
60
54
|
end
|
|
@@ -64,9 +58,9 @@ end
|
|
|
64
58
|
Alternatively, you can pass a block:
|
|
65
59
|
|
|
66
60
|
```ruby
|
|
67
|
-
it '
|
|
61
|
+
it 'returns the thing' do
|
|
68
62
|
run_rpc(:GetThing, request_proto) do |resp|
|
|
69
|
-
expect(resp).to
|
|
63
|
+
expect(resp).to be_a_successful_rpc
|
|
70
64
|
expect(resp.id).to eq request_proto.id
|
|
71
65
|
end
|
|
72
66
|
end
|
|
@@ -80,7 +74,7 @@ Note that you can also access the bound gRPC service class:
|
|
|
80
74
|
it 'binds the service correctly' do
|
|
81
75
|
expect(grpc_bound_service).to eq Rpc::Things::Service
|
|
82
76
|
end
|
|
83
|
-
```
|
|
77
|
+
```
|
|
84
78
|
|
|
85
79
|
### Matching Errors
|
|
86
80
|
|
|
@@ -89,9 +83,9 @@ You can match against errors as well:
|
|
|
89
83
|
```ruby
|
|
90
84
|
describe 'testing an error' do
|
|
91
85
|
let(:request_proto) { Rpc::GetThingRequest.new(id: rand(1..100)) }
|
|
92
|
-
|
|
86
|
+
|
|
93
87
|
subject { run_rpc(:GetThing, request_proto) }
|
|
94
|
-
|
|
88
|
+
|
|
95
89
|
it 'should fail with the appropriate error' do
|
|
96
90
|
expect { subject }.to raise_rpc_error(GRPC::InvalidArgument)
|
|
97
91
|
end
|
|
@@ -105,11 +99,11 @@ it 'should fail with the appropriate error code' do
|
|
|
105
99
|
expect { subject }.to raise_rpc_error(GRPC::InvalidArgument).with_serialized { |err|
|
|
106
100
|
expect(err).to be_a(MyCustomErrorClass)
|
|
107
101
|
expect(err.error_code).to eq 'invalid_request'
|
|
108
|
-
|
|
102
|
+
|
|
109
103
|
fe = err.field_errors.first
|
|
110
104
|
expect(fe.field_name).to eq 'name'
|
|
111
105
|
expect(fe.error_code).to eq 'invalid_name'
|
|
112
|
-
expect(fe.error_message).to eq
|
|
106
|
+
expect(fe.error_message).to eq 'That name is already taken!'
|
|
113
107
|
}
|
|
114
108
|
end
|
|
115
109
|
```
|
|
@@ -117,7 +111,6 @@ end
|
|
|
117
111
|
Note that when using `with_serialized`, you _must_ pass the block with `{ }`, not using
|
|
118
112
|
`do` and `end`.
|
|
119
113
|
|
|
120
|
-
|
|
121
114
|
### RSpec Controller Matcher Configuration
|
|
122
115
|
|
|
123
116
|
By default, the type matcher for Gruf controllers matches in `/spec/rpc`. You can customize this by configuring it
|
|
@@ -129,7 +122,7 @@ Gruf::Rspec.configure do |c|
|
|
|
129
122
|
end
|
|
130
123
|
```
|
|
131
124
|
|
|
132
|
-
Alternatively, you can pass configuration of the path via ENV. For example, where
|
|
125
|
+
Alternatively, you can pass configuration of the path via ENV. For example, where
|
|
133
126
|
`RPC_SPEC_PATH="/spec/rpc_controllers"` is set in a `.env` file:
|
|
134
127
|
|
|
135
128
|
```bash
|
data/gruf-rspec.gemspec
CHANGED
|
@@ -15,9 +15,7 @@
|
|
|
15
15
|
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
16
16
|
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
17
17
|
#
|
|
18
|
-
|
|
19
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
20
|
-
require 'gruf/rspec/version'
|
|
18
|
+
require_relative 'lib/gruf/rspec/version'
|
|
21
19
|
|
|
22
20
|
Gem::Specification.new do |spec|
|
|
23
21
|
spec.name = 'gruf-rspec'
|
|
@@ -30,19 +28,19 @@ Gem::Specification.new do |spec|
|
|
|
30
28
|
spec.description = 'RSpec assistance library for gruf, including testing helpers'
|
|
31
29
|
spec.homepage = 'https://github.com/bigcommerce/gruf-rspec'
|
|
32
30
|
|
|
33
|
-
spec.required_ruby_version = '>= 2.
|
|
31
|
+
spec.required_ruby_version = '>= 2.7'
|
|
32
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
|
34
33
|
|
|
35
34
|
spec.files = Dir['README.md', 'CHANGELOG.md', 'CODE_OF_CONDUCT.md', 'lib/**/*', 'gruf-rspec.gemspec']
|
|
36
|
-
spec.require_paths = [
|
|
35
|
+
spec.require_paths = %w[lib]
|
|
37
36
|
|
|
38
|
-
spec.add_development_dependency 'bundler', '
|
|
39
|
-
spec.add_development_dependency 'bundler-audit', '~> 0.6'
|
|
37
|
+
spec.add_development_dependency 'bundler-audit', '>= 0.6'
|
|
40
38
|
spec.add_development_dependency 'pry', '>= 0.13'
|
|
41
|
-
spec.add_development_dependency '
|
|
42
|
-
spec.add_development_dependency '
|
|
43
|
-
spec.add_development_dependency '
|
|
44
|
-
spec.add_development_dependency 'simplecov', '~> 0.15'
|
|
39
|
+
spec.add_development_dependency 'rspec_junit_formatter', '>= 0.4'
|
|
40
|
+
spec.add_development_dependency 'rubocop', '>= 0.82'
|
|
41
|
+
spec.add_development_dependency 'simplecov', '>= 0.15'
|
|
45
42
|
|
|
46
|
-
spec.
|
|
47
|
-
spec.
|
|
43
|
+
spec.add_runtime_dependency 'gruf', '~> 2.5', '>= 2.5.1'
|
|
44
|
+
spec.add_runtime_dependency 'rspec', '>= 3.8'
|
|
45
|
+
spec.add_runtime_dependency 'zeitwerk', '>= 2'
|
|
48
46
|
end
|
|
@@ -15,9 +15,6 @@
|
|
|
15
15
|
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
16
16
|
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
17
17
|
#
|
|
18
|
-
require_relative 'authentication_hydrators/base'
|
|
19
|
-
require_relative 'authentication_hydrators/basic'
|
|
20
|
-
|
|
21
18
|
module Gruf
|
|
22
19
|
module Rspec
|
|
23
20
|
##
|
data/lib/gruf/rspec/helpers.rb
CHANGED
|
@@ -15,8 +15,6 @@
|
|
|
15
15
|
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
16
16
|
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
17
17
|
#
|
|
18
|
-
require_relative 'metadata_factory'
|
|
19
|
-
|
|
20
18
|
module Gruf
|
|
21
19
|
module Rspec
|
|
22
20
|
##
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright (c) 2022-present, BigCommerce Pty. Ltd. All rights reserved
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
|
6
|
+
# documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
|
|
7
|
+
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
8
|
+
# persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
9
|
+
#
|
|
10
|
+
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
|
|
11
|
+
# Software.
|
|
12
|
+
#
|
|
13
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
|
14
|
+
# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
15
|
+
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
16
|
+
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
17
|
+
#
|
|
18
|
+
module Gruf
|
|
19
|
+
module Rspec
|
|
20
|
+
##
|
|
21
|
+
# Rails integration for gruf-rspec
|
|
22
|
+
#
|
|
23
|
+
class Railtie < ::Rails::Railtie
|
|
24
|
+
initializer 'gruf-rspec.initializer' do |_app|
|
|
25
|
+
config.after_initialize do
|
|
26
|
+
::Gruf.autoloaders.load!(controllers_path: ::Gruf.controllers_path) if ::Gruf.respond_to?(:autoloaders)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
data/lib/gruf/rspec/version.rb
CHANGED
data/lib/gruf/rspec.rb
CHANGED
|
@@ -26,10 +26,15 @@ rescue LoadError # old rspec compat
|
|
|
26
26
|
GRUF_RSPEC_RUNNER = Spec::Runner
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
# use Zeitwerk to lazily autoload all the files in the lib directory
|
|
30
|
+
require 'zeitwerk'
|
|
31
|
+
lib_path = File.dirname(__dir__)
|
|
32
|
+
loader = ::Zeitwerk::Loader.new
|
|
33
|
+
loader.tag = 'gruf-rspec'
|
|
34
|
+
loader.inflector = ::Zeitwerk::GemInflector.new(__FILE__)
|
|
35
|
+
loader.ignore("#{lib_path}/gruf/rspec/railtie.rb")
|
|
36
|
+
loader.push_dir(lib_path)
|
|
37
|
+
loader.setup
|
|
33
38
|
|
|
34
39
|
##
|
|
35
40
|
# Base gruf module
|
|
@@ -45,6 +50,14 @@ end
|
|
|
45
50
|
|
|
46
51
|
Gruf::Rspec.reset # initial reset
|
|
47
52
|
|
|
53
|
+
# Attempt to load railtie if we're in a rails environment. This assists with autoloading in a rails rspec context
|
|
54
|
+
begin
|
|
55
|
+
require 'rails'
|
|
56
|
+
rescue LoadError
|
|
57
|
+
nil
|
|
58
|
+
end
|
|
59
|
+
require_relative 'rspec/railtie' if defined?(::Rails::Railtie)
|
|
60
|
+
|
|
48
61
|
GRUF_RSPEC_RUNNER.configure do |config|
|
|
49
62
|
config.include Gruf::Rspec::Helpers
|
|
50
63
|
|
metadata
CHANGED
|
@@ -1,41 +1,27 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gruf-rspec
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Shaun McCormick
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-07-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
|
-
- !ruby/object:Gem::Dependency
|
|
14
|
-
name: bundler
|
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
|
16
|
-
requirements:
|
|
17
|
-
- - "~>"
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: '1.11'
|
|
20
|
-
type: :development
|
|
21
|
-
prerelease: false
|
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
-
requirements:
|
|
24
|
-
- - "~>"
|
|
25
|
-
- !ruby/object:Gem::Version
|
|
26
|
-
version: '1.11'
|
|
27
13
|
- !ruby/object:Gem::Dependency
|
|
28
14
|
name: bundler-audit
|
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
|
30
16
|
requirements:
|
|
31
|
-
- - "
|
|
17
|
+
- - ">="
|
|
32
18
|
- !ruby/object:Gem::Version
|
|
33
19
|
version: '0.6'
|
|
34
20
|
type: :development
|
|
35
21
|
prerelease: false
|
|
36
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
23
|
requirements:
|
|
38
|
-
- - "
|
|
24
|
+
- - ">="
|
|
39
25
|
- !ruby/object:Gem::Version
|
|
40
26
|
version: '0.6'
|
|
41
27
|
- !ruby/object:Gem::Dependency
|
|
@@ -52,60 +38,46 @@ dependencies:
|
|
|
52
38
|
- - ">="
|
|
53
39
|
- !ruby/object:Gem::Version
|
|
54
40
|
version: '0.13'
|
|
55
|
-
- !ruby/object:Gem::Dependency
|
|
56
|
-
name: rspec
|
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
|
58
|
-
requirements:
|
|
59
|
-
- - "~>"
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
version: '3.8'
|
|
62
|
-
type: :development
|
|
63
|
-
prerelease: false
|
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
-
requirements:
|
|
66
|
-
- - "~>"
|
|
67
|
-
- !ruby/object:Gem::Version
|
|
68
|
-
version: '3.8'
|
|
69
41
|
- !ruby/object:Gem::Dependency
|
|
70
42
|
name: rspec_junit_formatter
|
|
71
43
|
requirement: !ruby/object:Gem::Requirement
|
|
72
44
|
requirements:
|
|
73
|
-
- - "
|
|
45
|
+
- - ">="
|
|
74
46
|
- !ruby/object:Gem::Version
|
|
75
47
|
version: '0.4'
|
|
76
48
|
type: :development
|
|
77
49
|
prerelease: false
|
|
78
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
51
|
requirements:
|
|
80
|
-
- - "
|
|
52
|
+
- - ">="
|
|
81
53
|
- !ruby/object:Gem::Version
|
|
82
54
|
version: '0.4'
|
|
83
55
|
- !ruby/object:Gem::Dependency
|
|
84
56
|
name: rubocop
|
|
85
57
|
requirement: !ruby/object:Gem::Requirement
|
|
86
58
|
requirements:
|
|
87
|
-
- - "
|
|
59
|
+
- - ">="
|
|
88
60
|
- !ruby/object:Gem::Version
|
|
89
61
|
version: '0.82'
|
|
90
62
|
type: :development
|
|
91
63
|
prerelease: false
|
|
92
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
65
|
requirements:
|
|
94
|
-
- - "
|
|
66
|
+
- - ">="
|
|
95
67
|
- !ruby/object:Gem::Version
|
|
96
68
|
version: '0.82'
|
|
97
69
|
- !ruby/object:Gem::Dependency
|
|
98
70
|
name: simplecov
|
|
99
71
|
requirement: !ruby/object:Gem::Requirement
|
|
100
72
|
requirements:
|
|
101
|
-
- - "
|
|
73
|
+
- - ">="
|
|
102
74
|
- !ruby/object:Gem::Version
|
|
103
75
|
version: '0.15'
|
|
104
76
|
type: :development
|
|
105
77
|
prerelease: false
|
|
106
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
79
|
requirements:
|
|
108
|
-
- - "
|
|
80
|
+
- - ">="
|
|
109
81
|
- !ruby/object:Gem::Version
|
|
110
82
|
version: '0.15'
|
|
111
83
|
- !ruby/object:Gem::Dependency
|
|
@@ -142,6 +114,20 @@ dependencies:
|
|
|
142
114
|
- - ">="
|
|
143
115
|
- !ruby/object:Gem::Version
|
|
144
116
|
version: '3.8'
|
|
117
|
+
- !ruby/object:Gem::Dependency
|
|
118
|
+
name: zeitwerk
|
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
|
120
|
+
requirements:
|
|
121
|
+
- - ">="
|
|
122
|
+
- !ruby/object:Gem::Version
|
|
123
|
+
version: '2'
|
|
124
|
+
type: :runtime
|
|
125
|
+
prerelease: false
|
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
127
|
+
requirements:
|
|
128
|
+
- - ">="
|
|
129
|
+
- !ruby/object:Gem::Version
|
|
130
|
+
version: '2'
|
|
145
131
|
description: RSpec assistance library for gruf, including testing helpers
|
|
146
132
|
email:
|
|
147
133
|
- splittingred@gmail.com
|
|
@@ -160,11 +146,13 @@ files:
|
|
|
160
146
|
- lib/gruf/rspec/error_matcher.rb
|
|
161
147
|
- lib/gruf/rspec/helpers.rb
|
|
162
148
|
- lib/gruf/rspec/metadata_factory.rb
|
|
149
|
+
- lib/gruf/rspec/railtie.rb
|
|
163
150
|
- lib/gruf/rspec/version.rb
|
|
164
151
|
homepage: https://github.com/bigcommerce/gruf-rspec
|
|
165
152
|
licenses:
|
|
166
153
|
- MIT
|
|
167
|
-
metadata:
|
|
154
|
+
metadata:
|
|
155
|
+
rubygems_mfa_required: 'true'
|
|
168
156
|
post_install_message:
|
|
169
157
|
rdoc_options: []
|
|
170
158
|
require_paths:
|
|
@@ -173,14 +161,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
173
161
|
requirements:
|
|
174
162
|
- - ">="
|
|
175
163
|
- !ruby/object:Gem::Version
|
|
176
|
-
version: '2.
|
|
164
|
+
version: '2.7'
|
|
177
165
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
166
|
requirements:
|
|
179
167
|
- - ">="
|
|
180
168
|
- !ruby/object:Gem::Version
|
|
181
169
|
version: '0'
|
|
182
170
|
requirements: []
|
|
183
|
-
rubygems_version: 3.
|
|
171
|
+
rubygems_version: 3.3.7
|
|
184
172
|
signing_key:
|
|
185
173
|
specification_version: 4
|
|
186
174
|
summary: RSpec assistance library for gruf
|