rspec-graphql_matchers 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rspec.yml +41 -0
- data/.rubocop.yml +12 -15
- data/CHANGELOG.md +14 -0
- data/Gemfile +2 -6
- data/README.md +8 -33
- data/Rakefile +2 -0
- data/bin/console +1 -0
- data/lib/rspec/graphql_matchers/accept_argument.rb +10 -4
- data/lib/rspec/graphql_matchers/accept_arguments.rb +2 -0
- data/lib/rspec/graphql_matchers/base_matcher.rb +3 -1
- data/lib/rspec/graphql_matchers/be_of_type.rb +2 -2
- data/lib/rspec/graphql_matchers/have_a_field.rb +7 -3
- data/lib/rspec/graphql_matchers/have_a_field_matchers/of_type.rb +2 -0
- data/lib/rspec/graphql_matchers/have_a_field_matchers/with_hash_key.rb +7 -1
- data/lib/rspec/graphql_matchers/have_a_field_matchers/with_metadata.rb +2 -0
- data/lib/rspec/graphql_matchers/have_a_field_matchers/with_property.rb +2 -0
- data/lib/rspec/graphql_matchers/implement.rb +3 -1
- data/lib/rspec/graphql_matchers/matchers.rb +5 -2
- data/lib/rspec/graphql_matchers/types_helper.rb +2 -0
- data/lib/rspec/graphql_matchers/version.rb +1 -1
- data/lib/rspec/graphql_matchers.rb +2 -0
- data/rspec-graphql_matchers.gemspec +5 -3
- metadata +36 -23
- data/.travis.yml +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7dae51bcd93df2cadbbc1f056f27246ffe9fc54fb046cd542bc0461e4caadac8
|
4
|
+
data.tar.gz: dfa65482790aa2ca2ad4d7318679e0b80f13b9ba34c27ca7f7f525e699d7ea4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 280d14d08215126ef991443f1d786c5d15b2c5c82a34378f17d3c3cd1bd8ab0ab21efd9d1ff9870115c2aeca6d6b4d72dc80aecc760dbd52b6862807440e1f5b
|
7
|
+
data.tar.gz: 571b16fe5f151501313b6a7e94ba32b4f431fa352f2cf11f0ae06af44f1a5e8143a68dc4961cdbcef359c081696391977483e1b65972bb574e2d3ab0029cfa26
|
@@ -0,0 +1,41 @@
|
|
1
|
+
name: RSpec
|
2
|
+
|
3
|
+
# Controls when the action will run. Triggers the workflow on push or pull request
|
4
|
+
# events but only for the master branch
|
5
|
+
on: [push, pull_request]
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
# This workflow contains a single job "rspec"
|
9
|
+
rspec:
|
10
|
+
# The type of runner that the job will run on
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
|
13
|
+
strategy:
|
14
|
+
matrix:
|
15
|
+
ruby_version: [2.6, 2.7, 3.0, 3.1, 3.2]
|
16
|
+
|
17
|
+
# Steps represent a sequence of tasks that will be executed as part of the job
|
18
|
+
steps:
|
19
|
+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
20
|
+
- uses: actions/checkout@v2
|
21
|
+
|
22
|
+
- name: Set up Ruby ${{ matrix.ruby_version }}
|
23
|
+
uses: ruby/setup-ruby@v1
|
24
|
+
with:
|
25
|
+
ruby-version: ${{ matrix.ruby_version }}
|
26
|
+
|
27
|
+
- name: Install gems
|
28
|
+
run: |
|
29
|
+
bundle config path vendor/bundle
|
30
|
+
bundle install --jobs 4 --retry 3
|
31
|
+
|
32
|
+
- name: Cache gems
|
33
|
+
uses: actions/cache@v1
|
34
|
+
with:
|
35
|
+
path: vendor/bundle
|
36
|
+
key: ${{ runner.os }}-${{ matrix.ruby_version }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
37
|
+
restore-keys: |
|
38
|
+
${{ runner.os }}-${{ matrix.ruby_version }}-gems-
|
39
|
+
|
40
|
+
- name: Run RSpec
|
41
|
+
run: bundle exec rspec
|
data/.rubocop.yml
CHANGED
@@ -2,31 +2,28 @@ AllCops:
|
|
2
2
|
DisplayCopNames: true
|
3
3
|
DisplayStyleGuide: true
|
4
4
|
|
5
|
-
|
6
|
-
|
5
|
+
Layout/AlignParameters:
|
6
|
+
EnforcedStyle: with_fixed_indentation
|
7
7
|
|
8
|
-
|
9
|
-
|
8
|
+
Metrics/LineLength:
|
9
|
+
Max: 90
|
10
10
|
|
11
|
-
|
11
|
+
Layout/MultilineMethodCallIndentation:
|
12
12
|
EnforcedStyle: indented
|
13
13
|
|
14
|
-
|
15
|
-
EnforcedStyle: with_fixed_indentation
|
16
|
-
|
17
|
-
Style/ClassAndModuleChildren:
|
18
|
-
Enabled: false
|
19
|
-
|
20
|
-
Style/SpaceBeforeFirstArg:
|
14
|
+
Layout/SpaceBeforeFirstArg:
|
21
15
|
Include:
|
22
16
|
- db/migrate/*.rb
|
23
17
|
Enabled: false
|
24
18
|
|
25
|
-
Style/
|
19
|
+
Style/Documentation:
|
26
20
|
Enabled: false
|
27
21
|
|
28
|
-
|
29
|
-
|
22
|
+
Style/ClassAndModuleChildren:
|
23
|
+
Enabled: true
|
24
|
+
|
25
|
+
Style/Lambda:
|
26
|
+
Enabled: false
|
30
27
|
|
31
28
|
Metrics/MethodLength:
|
32
29
|
Max: 15
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.4.0 (April 16th, 2023)
|
4
|
+
|
5
|
+
- Removal of deprecated calls to #to_graphql, replacing them with #to_type_signature that was added in graphql-ruby 1.8.3 (https://github.com/khamusa/rspec-graphql_matchers/pull/43 @RobinDaugherty)
|
6
|
+
- Dropped support for legacy .define API
|
7
|
+
- Dropped support to old relay interfaces
|
8
|
+
- Fixed with_hash_key matcher for newer versions of graphql-ruby
|
9
|
+
- Fixed errors that occured in some edge cases when generating descriptions for accept_argument and have_a_field matchers
|
10
|
+
- Documentations improvement and general cleanup
|
11
|
+
- Dropped support to graphql-ruby versions before 1.10.12.
|
12
|
+
|
13
|
+
## 1.3.1 (Aug 2nd, 2021)
|
14
|
+
|
15
|
+
- Corrected gem dependencies so it properly requires RSpec when loaded (thanks to @itay-grudev)
|
16
|
+
|
3
17
|
## 1.3.0 (May 7th, 2020)
|
4
18
|
|
5
19
|
- `accept_argument` matcher accepts underscored argument names and passes even if the actual argument is camel-cased (https://github.com/khamusa/rspec-graphql_matchers/pull/32 thanks to @TonyArra);
|
data/Gemfile
CHANGED
@@ -1,10 +1,6 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
source 'https://rubygems.org'
|
2
4
|
|
3
5
|
# Specify your gem's dependencies in rspec-graphql_matchers.gemspec
|
4
6
|
gemspec
|
5
|
-
|
6
|
-
if ENV['GRAPHQL_GEM_VERSION'] == '1.8'
|
7
|
-
gem 'graphql', '~> 1.8.0'
|
8
|
-
elsif ENV['GRAPHQL_GEM_VERSION'] == '1.9'
|
9
|
-
gem 'graphql', '~> 1.9.0'
|
10
|
-
end
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
![
|
1
|
+
![RSpec Status](https://github.com/khamusa/rspec-graphql_matchers/actions/workflows/rspec.yml/badge.svg)
|
2
2
|
|
3
3
|
# Rspec::GraphqlMatchers
|
4
4
|
|
@@ -25,12 +25,7 @@ Where a valid type for the expectation is either:
|
|
25
25
|
|
26
26
|
- A reference to the actual type you expect;
|
27
27
|
- [Recommended] A String representation of a type: `"String!"`, `"Int!"`, `"[String]!"`
|
28
|
-
(note the exclamation mark at the end, as required by the [GraphQL
|
29
|
-
|
30
|
-
For objects defined with the legacy `#define` api, testing `:property`, `:hash_key` and _metadata_ is also possible by chaining `.with_property`, `.with_hash_key` and `.with_metadata`. For example:
|
31
|
-
|
32
|
-
- `expect(a_graphql_object).to have_a_field(field_name).with_property(property_name).with_metadata(metadata_hash)`
|
33
|
-
- `expect(a_graphql_object).to have_a_field(field_name).with_hash_key(hash_key)`
|
28
|
+
(note the exclamation mark at the end, as required by the [GraphQL specifications](http://graphql.org/).
|
34
29
|
|
35
30
|
## Examples
|
36
31
|
|
@@ -41,7 +36,7 @@ class PostType < GraphQL::Schema::Object
|
|
41
36
|
graphql_name "Post"
|
42
37
|
description "A blog post"
|
43
38
|
|
44
|
-
implements GraphQL::Relay::Node
|
39
|
+
implements GraphQL::Types::Relay::Node
|
45
40
|
|
46
41
|
field :id, ID, null: false
|
47
42
|
field :comments, [String], null: false
|
@@ -97,27 +92,7 @@ describe PostType do
|
|
97
92
|
end
|
98
93
|
```
|
99
94
|
|
100
|
-
### 3)
|
101
|
-
|
102
|
-
```ruby
|
103
|
-
PostTypeWithDefineApi = GraphQL::ObjectType.define do
|
104
|
-
name "DefinedPost"
|
105
|
-
|
106
|
-
interfaces [GraphQL::Relay::Node.interface]
|
107
|
-
|
108
|
-
field :id, !types.ID, property: :post_id
|
109
|
-
field :comments, !types[types.String], hash_key: :post_comments
|
110
|
-
field :isPublished, admin_only: true
|
111
|
-
end
|
112
|
-
|
113
|
-
describe PostTypeWithDefineApi do
|
114
|
-
it { is_expected.to have_a_field(:id).of_type('ID!').with_property(:post_id) }
|
115
|
-
it { is_expected.to have_a_field(:comments).with_hash_key(:post_comments) }
|
116
|
-
it { is_expected.to have_a_field(:isPublished).with_metadata(admin_only: true) }
|
117
|
-
end
|
118
|
-
```
|
119
|
-
|
120
|
-
### 4) Test the arguments accepted by a field with `accept_argument` matcher:
|
95
|
+
### 3) Test the arguments accepted by a field with `accept_argument` matcher:
|
121
96
|
|
122
97
|
```ruby
|
123
98
|
describe PostType do
|
@@ -138,7 +113,7 @@ describe PostType do
|
|
138
113
|
end
|
139
114
|
```
|
140
115
|
|
141
|
-
###
|
116
|
+
### 4) Test an object's interface implementations:
|
142
117
|
|
143
118
|
```ruby
|
144
119
|
describe PostType do
|
@@ -149,12 +124,12 @@ describe PostType do
|
|
149
124
|
end
|
150
125
|
|
151
126
|
# Accepts arguments as an array and type objects directly
|
152
|
-
it { is_expected.to implement(GraphQL::Relay::Node
|
127
|
+
it { is_expected.to implement(GraphQL::Types::Relay::Node) }
|
153
128
|
it { is_expected.not_to implement('OtherInterface') }
|
154
129
|
end
|
155
130
|
```
|
156
131
|
|
157
|
-
###
|
132
|
+
### 5) Using camelize: false on field names
|
158
133
|
|
159
134
|
By default the graphql gem camelizes field names. This gem deals with it transparently:
|
160
135
|
|
@@ -162,7 +137,7 @@ By default the graphql gem camelizes field names. This gem deals with it transpa
|
|
162
137
|
class ObjectMessingWithCamelsAndSnakesType < GraphQL::Schema::Object
|
163
138
|
graphql_name 'ObjectMessingWithCamelsAndSnakes'
|
164
139
|
|
165
|
-
implements GraphQL::Relay::Node
|
140
|
+
implements GraphQL::Types::Relay::Node
|
166
141
|
|
167
142
|
field :me_gusta_los_camellos, ID, null: false
|
168
143
|
|
data/Rakefile
CHANGED
data/bin/console
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require_relative 'base_matcher'
|
2
4
|
require_relative './have_a_field_matchers/of_type'
|
3
5
|
|
@@ -29,8 +31,8 @@ module RSpec
|
|
29
31
|
@actual_argument ||= field_arguments[@expected_camel_arg_name]
|
30
32
|
return false if @actual_argument.nil?
|
31
33
|
|
32
|
-
@results = @expectations.
|
33
|
-
|
34
|
+
@results = @expectations.reject do |matcher|
|
35
|
+
matcher.matches?(@actual_argument)
|
34
36
|
end
|
35
37
|
|
36
38
|
@results.empty?
|
@@ -57,11 +59,11 @@ module RSpec
|
|
57
59
|
private
|
58
60
|
|
59
61
|
def descriptions
|
60
|
-
|
62
|
+
results.map(&:description)
|
61
63
|
end
|
62
64
|
|
63
65
|
def failure_messages
|
64
|
-
|
66
|
+
results.map(&:failure_message)
|
65
67
|
end
|
66
68
|
|
67
69
|
def field_arguments
|
@@ -72,6 +74,10 @@ module RSpec
|
|
72
74
|
'matcher. It does not seem to be a valid GraphQL object type.'
|
73
75
|
end
|
74
76
|
end
|
77
|
+
|
78
|
+
def results
|
79
|
+
@results ||= []
|
80
|
+
end
|
75
81
|
end
|
76
82
|
end
|
77
83
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module RSpec
|
2
4
|
module GraphqlMatchers
|
3
5
|
class BaseMatcher
|
@@ -14,7 +16,7 @@ module RSpec
|
|
14
16
|
end
|
15
17
|
|
16
18
|
def type_name(a_type)
|
17
|
-
a_type = a_type.
|
19
|
+
a_type = a_type.to_type_signature if a_type.respond_to?(:to_type_signature)
|
18
20
|
|
19
21
|
a_type.to_s
|
20
22
|
end
|
@@ -28,9 +28,9 @@ module RSpec
|
|
28
28
|
private
|
29
29
|
|
30
30
|
def to_graphql(field_sample)
|
31
|
-
return field_sample unless field_sample.respond_to?(:
|
31
|
+
return field_sample unless field_sample.respond_to?(:to_type_signature)
|
32
32
|
|
33
|
-
field_sample.
|
33
|
+
field_sample.to_type_signature
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
@@ -80,16 +80,16 @@ module RSpec
|
|
80
80
|
field = field_collection[@expected_field_name]
|
81
81
|
field ||= field_collection[@expected_camel_field_name]
|
82
82
|
|
83
|
-
field.respond_to?(:
|
83
|
+
field.respond_to?(:to_type_signature) ? field.to_type_signature : field
|
84
84
|
end
|
85
85
|
end
|
86
86
|
|
87
87
|
def descriptions
|
88
|
-
|
88
|
+
results.map(&:description)
|
89
89
|
end
|
90
90
|
|
91
91
|
def failure_messages
|
92
|
-
|
92
|
+
results.map(&:failure_message)
|
93
93
|
end
|
94
94
|
|
95
95
|
def field_collection
|
@@ -108,6 +108,10 @@ module RSpec
|
|
108
108
|
when :return_fields then 'have_a_return_field'
|
109
109
|
end
|
110
110
|
end
|
111
|
+
|
112
|
+
def results
|
113
|
+
@results ||= []
|
114
|
+
end
|
111
115
|
end
|
112
116
|
end
|
113
117
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module RSpec
|
2
4
|
module GraphqlMatchers
|
3
5
|
module HaveAFieldMatchers
|
@@ -26,7 +28,11 @@ module RSpec
|
|
26
28
|
return actual_field.hash_key.to_sym if actual_field.hash_key
|
27
29
|
end
|
28
30
|
|
29
|
-
actual_field.metadata
|
31
|
+
if actual_field.respond_to?(:metadata)
|
32
|
+
return actual_field.metadata[:type_class].method_sym
|
33
|
+
end
|
34
|
+
|
35
|
+
actual_field.method_sym
|
30
36
|
end
|
31
37
|
end
|
32
38
|
end
|
@@ -1,10 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require_relative 'base_matcher'
|
2
4
|
|
3
5
|
module RSpec
|
4
6
|
module GraphqlMatchers
|
5
7
|
class Implement < BaseMatcher
|
6
8
|
def initialize(interfaces)
|
7
|
-
@expected = interfaces.map {|interface| interface_name(interface) }
|
9
|
+
@expected = interfaces.map { |interface| interface_name(interface) }
|
8
10
|
end
|
9
11
|
|
10
12
|
def matches?(graph_object)
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'rspec/matchers'
|
2
4
|
require 'rspec/graphql_matchers/be_of_type'
|
3
5
|
require 'rspec/graphql_matchers/accept_arguments'
|
@@ -13,13 +15,13 @@ module RSpec
|
|
13
15
|
|
14
16
|
def accept_argument(expected_argument)
|
15
17
|
RSpec::GraphqlMatchers::AcceptArgument.new(expected_argument)
|
16
|
-
|
18
|
+
end
|
17
19
|
|
18
20
|
def accept_arguments(expected_args)
|
19
21
|
RSpec::GraphqlMatchers::AcceptArguments.new(expected_args)
|
20
22
|
end
|
21
23
|
|
22
|
-
# rubocop:disable
|
24
|
+
# rubocop:disable Naming/PredicateName
|
23
25
|
def have_a_field(field_name)
|
24
26
|
RSpec::GraphqlMatchers::HaveAField.new(field_name)
|
25
27
|
end
|
@@ -34,6 +36,7 @@ module RSpec
|
|
34
36
|
RSpec::GraphqlMatchers::HaveAField.new(field_name, :return_fields)
|
35
37
|
end
|
36
38
|
alias have_return_field have_a_return_field
|
39
|
+
# rubocop:enable Naming/PredicateName
|
37
40
|
|
38
41
|
def implement(*interface_names)
|
39
42
|
RSpec::GraphqlMatchers::Implement.new(interface_names.flatten)
|
@@ -25,9 +25,11 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
26
26
|
spec.require_paths = ['lib']
|
27
27
|
|
28
|
-
spec.
|
28
|
+
spec.add_dependency 'graphql', '>= 1.10.12', '< 2.0'
|
29
|
+
spec.add_dependency 'rspec', '~> 3.0'
|
29
30
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
30
|
-
|
31
|
-
spec.add_development_dependency '
|
31
|
+
# CodeClimate does not yet support SimpleCov 0.18
|
32
|
+
spec.add_development_dependency 'simplecov', '~>0.17.0'
|
32
33
|
spec.add_development_dependency 'pry', '~> 0'
|
34
|
+
spec.add_development_dependency 'rubocop', '0.71'
|
33
35
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-graphql_matchers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Brandão
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphql
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.10.12
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '2.0'
|
@@ -26,52 +26,52 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 1.10.12
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '2.0'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
|
-
name:
|
34
|
+
name: rspec
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
40
|
-
type: :
|
39
|
+
version: '3.0'
|
40
|
+
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
46
|
+
version: '3.0'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
48
|
+
name: bundler
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- -
|
51
|
+
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '0
|
53
|
+
version: '2.0'
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
|
-
- -
|
58
|
+
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '0
|
60
|
+
version: '2.0'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
|
-
name:
|
62
|
+
name: simplecov
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
67
|
+
version: 0.17.0
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
74
|
+
version: 0.17.0
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: pry
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,7 +86,21 @@ dependencies:
|
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '0'
|
89
|
-
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: rubocop
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - '='
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0.71'
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - '='
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0.71'
|
103
|
+
description:
|
90
104
|
email:
|
91
105
|
- gb.samuel@gmail.com
|
92
106
|
executables: []
|
@@ -95,10 +109,10 @@ extra_rdoc_files: []
|
|
95
109
|
files:
|
96
110
|
- ".codeclimate.yml"
|
97
111
|
- ".editorconfig"
|
112
|
+
- ".github/workflows/rspec.yml"
|
98
113
|
- ".gitignore"
|
99
114
|
- ".rspec"
|
100
115
|
- ".rubocop.yml"
|
101
|
-
- ".travis.yml"
|
102
116
|
- CHANGELOG.md
|
103
117
|
- CODE_OF_CONDUCT.md
|
104
118
|
- Gemfile
|
@@ -127,7 +141,7 @@ homepage: https://github.com/khamusa/rspec-graphql_matchers
|
|
127
141
|
licenses:
|
128
142
|
- MIT
|
129
143
|
metadata: {}
|
130
|
-
post_install_message:
|
144
|
+
post_install_message:
|
131
145
|
rdoc_options: []
|
132
146
|
require_paths:
|
133
147
|
- lib
|
@@ -142,9 +156,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
156
|
- !ruby/object:Gem::Version
|
143
157
|
version: '0'
|
144
158
|
requirements: []
|
145
|
-
|
146
|
-
|
147
|
-
signing_key:
|
159
|
+
rubygems_version: 3.3.7
|
160
|
+
signing_key:
|
148
161
|
specification_version: 4
|
149
162
|
summary: Collection of rspec matchers to test your graphQL api schema.
|
150
163
|
test_files: []
|
data/.travis.yml
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
language: ruby
|
3
|
-
rvm:
|
4
|
-
- 2.3.1
|
5
|
-
before_install: gem install bundler -v 1.12.3
|
6
|
-
script: bundle exec rspec
|
7
|
-
matrix:
|
8
|
-
include:
|
9
|
-
- name: "GraphQL 1.9.x"
|
10
|
-
env: GRAPHQL_GEM_VERSION=1.9
|
11
|
-
- name: "GraphQL 1.8.x"
|
12
|
-
env: GRAPHQL_GEM_VERSION=1.8
|