graphql_devise 0.14.1 → 0.14.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.coveralls.yml +1 -0
- data/.gitlab-ci.yml +109 -0
- data/Appraisals +26 -6
- data/CHANGELOG.md +8 -0
- data/README.md +2 -2
- data/lib/graphql_devise/schema_plugin.rb +11 -2
- data/lib/graphql_devise/version.rb +1 -1
- data/spec/dummy/app/graphql/dummy_schema.rb +4 -3
- data/spec/requests/queries/introspection_query_spec.rb +149 -0
- metadata +7 -4
- data/.travis.yml +0 -86
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33fca9e9e4adcd1831cfcc2a7cf47006e7f5c0b28a20651eba38916e6cd34701
|
4
|
+
data.tar.gz: 4cab9282ea278aa1fd077c7e5caf2164662c227a788ddac0c0224d21cf4eb679
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0311b0035cca6a5a23f38c890a96658865e9131c2a80f9f40fba91569d5951cc4662709fdc5e0ad82cef991e04d5931803c85da4e6bea8bcf4701ed92b04ef7
|
7
|
+
data.tar.gz: cbfa71e7947f0e7ce3ab3e23970fc313b09c9fe0198df09e440137a51e1e64b57d0f4e907d158c4c0f78e610beacfebbc61b53c5ef8d582c97091cfb8ad94772
|
data/.coveralls.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
repo_token: bzwe3rK8KkenWfsw42Nj6JhoO77V7V3sh
|
data/.gitlab-ci.yml
ADDED
@@ -0,0 +1,109 @@
|
|
1
|
+
---
|
2
|
+
default:
|
3
|
+
cache:
|
4
|
+
key:
|
5
|
+
files:
|
6
|
+
- Gemfile.lock
|
7
|
+
prefix: ${CI_COMMIT_REF_NAME}
|
8
|
+
paths:
|
9
|
+
- vendor/bundle/
|
10
|
+
before_script:
|
11
|
+
- bundle install
|
12
|
+
|
13
|
+
variables:
|
14
|
+
EAGER_LOAD: 'true'
|
15
|
+
BUNDLE_PATH: 'vendor/bundle'
|
16
|
+
|
17
|
+
test:2.3:
|
18
|
+
stage: test
|
19
|
+
image: ruby:2.3
|
20
|
+
script:
|
21
|
+
- bundle exec rspec
|
22
|
+
parallel:
|
23
|
+
matrix:
|
24
|
+
- BUNDLE_GEMFILE: gemfiles/rails4.2_graphql1.8.gemfile
|
25
|
+
- BUNDLE_GEMFILE: gemfiles/rails5.0_graphql1.8.gemfile
|
26
|
+
- BUNDLE_GEMFILE: gemfiles/rails5.0_graphql1.9.gemfile
|
27
|
+
- BUNDLE_GEMFILE: gemfiles/rails5.1_graphql1.8.gemfile
|
28
|
+
- BUNDLE_GEMFILE: gemfiles/rails5.1_graphql1.9.gemfile
|
29
|
+
- BUNDLE_GEMFILE: gemfiles/rails5.2_graphql1.8.gemfile
|
30
|
+
- BUNDLE_GEMFILE: gemfiles/rails5.2_graphql1.9.gemfile
|
31
|
+
- BUNDLE_GEMFILE: gemfiles/rails5.2_graphql1.10.gemfile
|
32
|
+
|
33
|
+
test:2.4:
|
34
|
+
stage: test
|
35
|
+
image: ruby:2.4
|
36
|
+
script:
|
37
|
+
- bundle exec rspec
|
38
|
+
parallel:
|
39
|
+
matrix:
|
40
|
+
- BUNDLE_GEMFILE: gemfiles/rails4.2_graphql1.8.gemfile
|
41
|
+
- BUNDLE_GEMFILE: gemfiles/rails5.0_graphql1.8.gemfile
|
42
|
+
- BUNDLE_GEMFILE: gemfiles/rails5.0_graphql1.9.gemfile
|
43
|
+
- BUNDLE_GEMFILE: gemfiles/rails5.1_graphql1.8.gemfile
|
44
|
+
- BUNDLE_GEMFILE: gemfiles/rails5.1_graphql1.9.gemfile
|
45
|
+
- BUNDLE_GEMFILE: gemfiles/rails5.2_graphql1.8.gemfile
|
46
|
+
- BUNDLE_GEMFILE: gemfiles/rails5.2_graphql1.9.gemfile
|
47
|
+
- BUNDLE_GEMFILE: gemfiles/rails5.2_graphql1.10.gemfile
|
48
|
+
|
49
|
+
test:2.5:
|
50
|
+
stage: test
|
51
|
+
image: ruby:2.5
|
52
|
+
script:
|
53
|
+
- bundle exec rspec
|
54
|
+
parallel:
|
55
|
+
matrix:
|
56
|
+
- BUNDLE_GEMFILE: gemfiles/rails5.0_graphql1.9.gemfile
|
57
|
+
- BUNDLE_GEMFILE: gemfiles/rails5.1_graphql1.8.gemfile
|
58
|
+
- BUNDLE_GEMFILE: gemfiles/rails5.1_graphql1.9.gemfile
|
59
|
+
- BUNDLE_GEMFILE: gemfiles/rails5.2_graphql1.9.gemfile
|
60
|
+
- BUNDLE_GEMFILE: gemfiles/rails5.2_graphql1.10.gemfile
|
61
|
+
- BUNDLE_GEMFILE: gemfiles/rails5.2_graphql1.11.gemfile
|
62
|
+
- BUNDLE_GEMFILE: gemfiles/rails6.0_graphql1.11.gemfile
|
63
|
+
- BUNDLE_GEMFILE: gemfiles/rails6.0_graphql1.12.gemfile
|
64
|
+
- BUNDLE_GEMFILE: gemfiles/rails6.1_graphql1.11.gemfile
|
65
|
+
- BUNDLE_GEMFILE: gemfiles/rails6.1_graphql1.12.gemfile
|
66
|
+
|
67
|
+
test:2.6:
|
68
|
+
stage: test
|
69
|
+
image: ruby:2.6
|
70
|
+
script:
|
71
|
+
- bundle exec rspec
|
72
|
+
parallel:
|
73
|
+
matrix:
|
74
|
+
- BUNDLE_GEMFILE: gemfiles/rails5.0_graphql1.9.gemfile
|
75
|
+
- BUNDLE_GEMFILE: gemfiles/rails5.1_graphql1.8.gemfile
|
76
|
+
- BUNDLE_GEMFILE: gemfiles/rails5.1_graphql1.9.gemfile
|
77
|
+
- BUNDLE_GEMFILE: gemfiles/rails5.2_graphql1.9.gemfile
|
78
|
+
- BUNDLE_GEMFILE: gemfiles/rails5.2_graphql1.10.gemfile
|
79
|
+
- BUNDLE_GEMFILE: gemfiles/rails5.2_graphql1.11.gemfile
|
80
|
+
- BUNDLE_GEMFILE: gemfiles/rails6.0_graphql1.11.gemfile
|
81
|
+
- BUNDLE_GEMFILE: gemfiles/rails6.0_graphql1.12.gemfile
|
82
|
+
- BUNDLE_GEMFILE: gemfiles/rails6.1_graphql1.11.gemfile
|
83
|
+
- BUNDLE_GEMFILE: gemfiles/rails6.1_graphql1.12.gemfile
|
84
|
+
|
85
|
+
test:2.7:
|
86
|
+
stage: test
|
87
|
+
image: ruby:2.7
|
88
|
+
script:
|
89
|
+
- bundle exec rspec
|
90
|
+
parallel:
|
91
|
+
matrix:
|
92
|
+
- BUNDLE_GEMFILE: gemfiles/rails6.0_graphql1.8.gemfile
|
93
|
+
- BUNDLE_GEMFILE: gemfiles/rails6.0_graphql1.9.gemfile
|
94
|
+
- BUNDLE_GEMFILE: gemfiles/rails6.0_graphql1.10.gemfile
|
95
|
+
- BUNDLE_GEMFILE: gemfiles/rails6.0_graphql1.11.gemfile
|
96
|
+
- BUNDLE_GEMFILE: gemfiles/rails6.0_graphql1.12.gemfile
|
97
|
+
- BUNDLE_GEMFILE: gemfiles/rails6.1_graphql1.10.gemfile
|
98
|
+
- BUNDLE_GEMFILE: gemfiles/rails6.1_graphql1.11.gemfile
|
99
|
+
- BUNDLE_GEMFILE: gemfiles/rails6.1_graphql1.12.gemfile
|
100
|
+
|
101
|
+
test:edge:
|
102
|
+
stage: test
|
103
|
+
image: ruby:2.7
|
104
|
+
allow_failure: true
|
105
|
+
script:
|
106
|
+
- bundle exec rspec
|
107
|
+
parallel:
|
108
|
+
matrix:
|
109
|
+
- BUNDLE_GEMFILE: gemfiles/rails6.1_graphql_edge.gemfile
|
data/Appraisals
CHANGED
@@ -110,18 +110,38 @@ appraise 'rails6.0-graphql1.12' do
|
|
110
110
|
gem 'graphql', '~> 1.12.0'
|
111
111
|
end
|
112
112
|
|
113
|
-
appraise 'rails6.
|
113
|
+
appraise 'rails6.1-graphql1.9' do
|
114
114
|
gem 'sqlite3', '~> 1.4'
|
115
|
-
gem 'devise_token_auth', github: 'lynndylanhurley/devise_token_auth', branch: 'master'
|
116
115
|
gem 'devise', '>= 4.7'
|
117
|
-
gem 'rails', github: 'rails/rails', branch: '6-
|
118
|
-
gem 'graphql',
|
116
|
+
gem 'rails', github: 'rails/rails', branch: '6-1-stable'
|
117
|
+
gem 'graphql', '~> 1.9.0'
|
118
|
+
end
|
119
|
+
|
120
|
+
appraise 'rails6.1-graphql1.10' do
|
121
|
+
gem 'sqlite3', '~> 1.4'
|
122
|
+
gem 'devise', '>= 4.7'
|
123
|
+
gem 'rails', github: 'rails/rails', branch: '6-1-stable'
|
124
|
+
gem 'graphql', '~> 1.10.0'
|
125
|
+
end
|
126
|
+
|
127
|
+
appraise 'rails6.1-graphql1.11' do
|
128
|
+
gem 'sqlite3', '~> 1.4'
|
129
|
+
gem 'devise', '>= 4.7'
|
130
|
+
gem 'rails', github: 'rails/rails', branch: '6-1-stable'
|
131
|
+
gem 'graphql', '~> 1.11.0'
|
132
|
+
end
|
133
|
+
|
134
|
+
appraise 'rails6.1-graphql1.12' do
|
135
|
+
gem 'sqlite3', '~> 1.4'
|
136
|
+
gem 'devise', '>= 4.7'
|
137
|
+
gem 'rails', github: 'rails/rails', branch: '6-1-stable'
|
138
|
+
gem 'graphql', '~> 1.12.0'
|
119
139
|
end
|
120
140
|
|
121
|
-
appraise '
|
141
|
+
appraise 'rails6.1-graphql_edge' do
|
122
142
|
gem 'sqlite3', '~> 1.4'
|
123
143
|
gem 'devise_token_auth', github: 'lynndylanhurley/devise_token_auth', branch: 'master'
|
124
144
|
gem 'devise', '>= 4.7'
|
125
|
-
gem 'rails', github: 'rails/rails', branch: '
|
145
|
+
gem 'rails', github: 'rails/rails', branch: '6-1-stable'
|
126
146
|
gem 'graphql', github: 'rmosolgo/graphql-ruby', branch: 'master'
|
127
147
|
end
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v0.14.2](https://github.com/graphql-devise/graphql_devise/tree/v0.14.2) (2021-03-08)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/graphql-devise/graphql_devise/compare/v0.14.1...v0.14.2)
|
6
|
+
|
7
|
+
**Implemented enhancements:**
|
8
|
+
|
9
|
+
- Add config for public introspection query on schema plugin [\#154](https://github.com/graphql-devise/graphql_devise/pull/154) ([00dav00](https://github.com/00dav00))
|
10
|
+
|
3
11
|
## [v0.14.1](https://github.com/graphql-devise/graphql_devise/tree/v0.14.1) (2021-02-11)
|
4
12
|
|
5
13
|
[Full Changelog](https://github.com/graphql-devise/graphql_devise/compare/v0.14.0...v0.14.1)
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# GraphqlDevise
|
2
|
-
[![Build Status](https://
|
3
|
-
[![Coverage Status](https://coveralls.io/repos/
|
2
|
+
[![Build Status](https://gitlab.com/graphql-devise/graphql_devise/badges/master/pipeline.svg)](https://gitlab.com/graphql-devise/graphql_devise/-/commits/master)
|
3
|
+
[![Coverage Status](https://coveralls.io/repos/gitlab/graphql-devise/graphql_devise/badge.svg?branch=master)](https://coveralls.io/gitlab/graphql-devise/graphql_devise?branch=master)
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/graphql_devise.svg)](https://badge.fury.io/rb/graphql_devise)
|
5
5
|
|
6
6
|
GraphQL interface on top of the [Devise Token Auth](https://github.com/lynndylanhurley/devise_token_auth) (DTA) gem.
|
@@ -2,13 +2,16 @@
|
|
2
2
|
|
3
3
|
module GraphqlDevise
|
4
4
|
class SchemaPlugin
|
5
|
+
# NOTE: Based on GQL-Ruby docs https://graphql-ruby.org/schema/introspection.html
|
6
|
+
INTROSPECTION_FIELDS = ['__schema', '__type', '__typename']
|
5
7
|
DEFAULT_NOT_AUTHENTICATED = ->(field) { raise GraphqlDevise::AuthenticationError, "#{field} field requires authentication" }
|
6
8
|
|
7
|
-
def initialize(query: nil, mutation: nil, authenticate_default: true, resource_loaders: [], unauthenticated_proc: DEFAULT_NOT_AUTHENTICATED)
|
9
|
+
def initialize(query: nil, mutation: nil, authenticate_default: true, public_introspection: !Rails.env.production?, resource_loaders: [], unauthenticated_proc: DEFAULT_NOT_AUTHENTICATED)
|
8
10
|
@query = query
|
9
11
|
@mutation = mutation
|
10
12
|
@resource_loaders = resource_loaders
|
11
13
|
@authenticate_default = authenticate_default
|
14
|
+
@public_introspection = public_introspection
|
12
15
|
@unauthenticated_proc = unauthenticated_proc
|
13
16
|
|
14
17
|
# Must happen on initialize so operations are loaded before the types are added to the schema on GQL < 1.10
|
@@ -28,7 +31,7 @@ module GraphqlDevise
|
|
28
31
|
auth_required = authenticate_option(field, trace_data)
|
29
32
|
context = context_from_data(trace_data)
|
30
33
|
|
31
|
-
if auth_required
|
34
|
+
if auth_required && !(public_introspection && introspection_field?(field))
|
32
35
|
context = set_current_resource(context)
|
33
36
|
raise_on_missing_resource(context, field)
|
34
37
|
end
|
@@ -38,6 +41,8 @@ module GraphqlDevise
|
|
38
41
|
|
39
42
|
private
|
40
43
|
|
44
|
+
attr_reader :public_introspection
|
45
|
+
|
41
46
|
def set_current_resource(context)
|
42
47
|
controller = context[:controller]
|
43
48
|
resource_names = Array(context[:resource_name])
|
@@ -109,6 +114,10 @@ module GraphqlDevise
|
|
109
114
|
resource_loader.call(@query, @mutation)
|
110
115
|
end
|
111
116
|
end
|
117
|
+
|
118
|
+
def introspection_field?(field)
|
119
|
+
INTROSPECTION_FIELDS.include?(field.name)
|
120
|
+
end
|
112
121
|
end
|
113
122
|
end
|
114
123
|
|
@@ -2,9 +2,10 @@
|
|
2
2
|
|
3
3
|
class DummySchema < GraphQL::Schema
|
4
4
|
use GraphqlDevise::SchemaPlugin.new(
|
5
|
-
query:
|
6
|
-
mutation:
|
7
|
-
|
5
|
+
query: Types::QueryType,
|
6
|
+
mutation: Types::MutationType,
|
7
|
+
public_introspection: true,
|
8
|
+
resource_loaders: [
|
8
9
|
GraphqlDevise::ResourceLoader.new(
|
9
10
|
'User',
|
10
11
|
only: [
|
@@ -0,0 +1,149 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'rails_helper'
|
4
|
+
|
5
|
+
RSpec.describe 'Login Requests' do
|
6
|
+
include_context 'with graphql query request'
|
7
|
+
|
8
|
+
let(:query) do
|
9
|
+
<<-GRAPHQL
|
10
|
+
query IntrospectionQuery {
|
11
|
+
__schema {
|
12
|
+
queryType { name }
|
13
|
+
mutationType { name }
|
14
|
+
subscriptionType { name }
|
15
|
+
types {
|
16
|
+
...FullType
|
17
|
+
}
|
18
|
+
directives {
|
19
|
+
name
|
20
|
+
description
|
21
|
+
args {
|
22
|
+
...InputValue
|
23
|
+
}
|
24
|
+
onOperation
|
25
|
+
onFragment
|
26
|
+
onField
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
fragment FullType on __Type {
|
32
|
+
kind
|
33
|
+
name
|
34
|
+
description
|
35
|
+
fields(includeDeprecated: true) {
|
36
|
+
name
|
37
|
+
description
|
38
|
+
args {
|
39
|
+
...InputValue
|
40
|
+
}
|
41
|
+
type {
|
42
|
+
...TypeRef
|
43
|
+
}
|
44
|
+
isDeprecated
|
45
|
+
deprecationReason
|
46
|
+
}
|
47
|
+
inputFields {
|
48
|
+
...InputValue
|
49
|
+
}
|
50
|
+
interfaces {
|
51
|
+
...TypeRef
|
52
|
+
}
|
53
|
+
enumValues(includeDeprecated: true) {
|
54
|
+
name
|
55
|
+
description
|
56
|
+
isDeprecated
|
57
|
+
deprecationReason
|
58
|
+
}
|
59
|
+
possibleTypes {
|
60
|
+
...TypeRef
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
fragment InputValue on __InputValue {
|
65
|
+
name
|
66
|
+
description
|
67
|
+
type { ...TypeRef }
|
68
|
+
defaultValue
|
69
|
+
}
|
70
|
+
|
71
|
+
fragment TypeRef on __Type {
|
72
|
+
kind
|
73
|
+
name
|
74
|
+
ofType {
|
75
|
+
kind
|
76
|
+
name
|
77
|
+
ofType {
|
78
|
+
kind
|
79
|
+
name
|
80
|
+
ofType {
|
81
|
+
kind
|
82
|
+
name
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
|
88
|
+
GRAPHQL
|
89
|
+
end
|
90
|
+
|
91
|
+
context 'when using a schema plugin to mount devise operations' do
|
92
|
+
context 'when schema plugin is set to authenticate by default' do
|
93
|
+
context 'when the resource is authenticated' do
|
94
|
+
let(:user) { create(:user, :confirmed) }
|
95
|
+
let(:headers) { user.create_new_auth_token }
|
96
|
+
|
97
|
+
it 'return the schema information' do
|
98
|
+
post_request('/api/v1/graphql')
|
99
|
+
|
100
|
+
expect(json_response[:data][:__schema].keys).to contain_exactly(
|
101
|
+
:queryType, :mutationType, :subscriptionType, :types, :directives
|
102
|
+
)
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
context 'when the resource is *NOT* authenticated' do
|
107
|
+
context 'and instrospection is set to be public' do
|
108
|
+
it 'return the schema information' do
|
109
|
+
post_request('/api/v1/graphql')
|
110
|
+
|
111
|
+
expect(json_response[:data][:__schema].keys).to contain_exactly(
|
112
|
+
:queryType, :mutationType, :subscriptionType, :types, :directives
|
113
|
+
)
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
context 'and introspection is set to require auth' do
|
118
|
+
before do
|
119
|
+
allow_any_instance_of(GraphqlDevise::SchemaPlugin).to(
|
120
|
+
receive(:public_introspection).and_return(false)
|
121
|
+
)
|
122
|
+
end
|
123
|
+
|
124
|
+
it 'return an error' do
|
125
|
+
post_request('/api/v1/graphql')
|
126
|
+
|
127
|
+
expect(json_response[:data]).to be_nil
|
128
|
+
expect(json_response[:errors]).to contain_exactly(
|
129
|
+
hash_including(
|
130
|
+
message: '__schema field requires authentication',
|
131
|
+
extensions: { code: 'AUTHENTICATION_ERROR' }
|
132
|
+
)
|
133
|
+
)
|
134
|
+
end
|
135
|
+
end
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
context 'when schema plugin is set *NOT* to authenticate by default' do
|
140
|
+
it 'return the schema information' do
|
141
|
+
post_request('/api/v1/interpreter')
|
142
|
+
|
143
|
+
expect(json_response[:data][:__schema].keys).to contain_exactly(
|
144
|
+
:queryType, :mutationType, :subscriptionType, :types, :directives
|
145
|
+
)
|
146
|
+
end
|
147
|
+
end
|
148
|
+
end
|
149
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphql_devise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mario Celi
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-
|
12
|
+
date: 2021-03-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: devise_token_auth
|
@@ -275,13 +275,14 @@ executables: []
|
|
275
275
|
extensions: []
|
276
276
|
extra_rdoc_files: []
|
277
277
|
files:
|
278
|
+
- ".coveralls.yml"
|
278
279
|
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
279
280
|
- ".github/ISSUE_TEMPLATE/enhancement.md"
|
280
281
|
- ".github/ISSUE_TEMPLATE/question.md"
|
281
282
|
- ".gitignore"
|
283
|
+
- ".gitlab-ci.yml"
|
282
284
|
- ".rspec"
|
283
285
|
- ".rubocop.yml"
|
284
|
-
- ".travis.yml"
|
285
286
|
- Appraisals
|
286
287
|
- CHANGELOG.md
|
287
288
|
- Gemfile
|
@@ -450,6 +451,7 @@ files:
|
|
450
451
|
- spec/requests/mutations/update_password_with_token_spec.rb
|
451
452
|
- spec/requests/queries/check_password_token_spec.rb
|
452
453
|
- spec/requests/queries/confirm_account_spec.rb
|
454
|
+
- spec/requests/queries/introspection_query_spec.rb
|
453
455
|
- spec/requests/user_controller_spec.rb
|
454
456
|
- spec/services/mount_method/operation_preparer_spec.rb
|
455
457
|
- spec/services/mount_method/operation_preparers/custom_operation_preparer_spec.rb
|
@@ -499,7 +501,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
499
501
|
- !ruby/object:Gem::Version
|
500
502
|
version: '0'
|
501
503
|
requirements: []
|
502
|
-
rubygems_version: 3.0.
|
504
|
+
rubygems_version: 3.0.3
|
503
505
|
signing_key:
|
504
506
|
specification_version: 4
|
505
507
|
summary: GraphQL queries and mutations on top of devise_token_auth
|
@@ -598,6 +600,7 @@ test_files:
|
|
598
600
|
- spec/requests/mutations/update_password_with_token_spec.rb
|
599
601
|
- spec/requests/queries/check_password_token_spec.rb
|
600
602
|
- spec/requests/queries/confirm_account_spec.rb
|
603
|
+
- spec/requests/queries/introspection_query_spec.rb
|
601
604
|
- spec/requests/user_controller_spec.rb
|
602
605
|
- spec/services/mount_method/operation_preparer_spec.rb
|
603
606
|
- spec/services/mount_method/operation_preparers/custom_operation_preparer_spec.rb
|
data/.travis.yml
DELETED
@@ -1,86 +0,0 @@
|
|
1
|
-
---
|
2
|
-
language: ruby
|
3
|
-
sudo: false
|
4
|
-
cache: bundler
|
5
|
-
before_install: gem install bundler -v 1.17
|
6
|
-
before_script: RAILS_ENV=test bundle exec rake db:create db:schema:load
|
7
|
-
|
8
|
-
env: EAGER_LOAD=true
|
9
|
-
|
10
|
-
rvm:
|
11
|
-
- 2.2.10
|
12
|
-
- 2.3.8
|
13
|
-
- 2.4.10
|
14
|
-
- 2.5.8
|
15
|
-
- 2.6.6
|
16
|
-
- 2.7.1
|
17
|
-
|
18
|
-
gemfile:
|
19
|
-
- gemfiles/rails4.2_graphql1.8.gemfile
|
20
|
-
- gemfiles/rails5.0_graphql1.8.gemfile
|
21
|
-
- gemfiles/rails5.0_graphql1.9.gemfile
|
22
|
-
- gemfiles/rails5.1_graphql1.8.gemfile
|
23
|
-
- gemfiles/rails5.1_graphql1.9.gemfile
|
24
|
-
- gemfiles/rails5.2_graphql1.8.gemfile
|
25
|
-
- gemfiles/rails5.2_graphql1.9.gemfile
|
26
|
-
- gemfiles/rails5.2_graphql1.10.gemfile
|
27
|
-
- gemfiles/rails5.2_graphql1.11.gemfile
|
28
|
-
- gemfiles/rails5.2_graphql1.12.gemfile
|
29
|
-
|
30
|
-
jobs:
|
31
|
-
include:
|
32
|
-
- gemfile: gemfiles/rails6.0_graphql1.8.gemfile
|
33
|
-
rvm: 2.5.8
|
34
|
-
- gemfile: gemfiles/rails6.0_graphql1.8.gemfile
|
35
|
-
rvm: 2.6.6
|
36
|
-
- gemfile: gemfiles/rails6.0_graphql1.8.gemfile
|
37
|
-
rvm: 2.7.1
|
38
|
-
- gemfile: gemfiles/rails6.0_graphql1.9.gemfile
|
39
|
-
rvm: 2.5.8
|
40
|
-
- gemfile: gemfiles/rails6.0_graphql1.9.gemfile
|
41
|
-
rvm: 2.6.6
|
42
|
-
- gemfile: gemfiles/rails6.0_graphql1.9.gemfile
|
43
|
-
rvm: 2.7.1
|
44
|
-
- gemfile: gemfiles/rails6.0_graphql1.10.gemfile
|
45
|
-
rvm: 2.5.8
|
46
|
-
- gemfile: gemfiles/rails6.0_graphql1.10.gemfile
|
47
|
-
rvm: 2.6.6
|
48
|
-
- gemfile: gemfiles/rails6.0_graphql1.10.gemfile
|
49
|
-
rvm: 2.7.1
|
50
|
-
- gemfile: gemfiles/rails6.0_graphql1.11.gemfile
|
51
|
-
rvm: 2.5.8
|
52
|
-
- gemfile: gemfiles/rails6.0_graphql1.11.gemfile
|
53
|
-
rvm: 2.6.6
|
54
|
-
- gemfile: gemfiles/rails6.0_graphql1.11.gemfile
|
55
|
-
rvm: 2.7.1
|
56
|
-
- gemfile: gemfiles/rails6.0_graphql1.12.gemfile
|
57
|
-
rvm: 2.5.8
|
58
|
-
- gemfile: gemfiles/rails6.0_graphql1.12.gemfile
|
59
|
-
rvm: 2.6.6
|
60
|
-
- gemfile: gemfiles/rails6.0_graphql1.12.gemfile
|
61
|
-
rvm: 2.7.1
|
62
|
-
- gemfile: gemfiles/rails6.0_graphql_edge.gemfile
|
63
|
-
rvm: 2.6.6
|
64
|
-
env:
|
65
|
-
- SKIP_COVERALLS=true
|
66
|
-
- EAGER_LOAD=true
|
67
|
-
- gemfile: gemfiles/rails6.0_graphql_edge.gemfile
|
68
|
-
rvm: 2.7.1
|
69
|
-
env:
|
70
|
-
- SKIP_COVERALLS=true
|
71
|
-
- EAGER_LOAD=true
|
72
|
-
- gemfile: gemfiles/rails_edge_graphql_edge.gemfile
|
73
|
-
rvm: 2.7.1
|
74
|
-
env:
|
75
|
-
- SKIP_COVERALLS=true
|
76
|
-
- EAGER_LOAD=true
|
77
|
-
exclude:
|
78
|
-
- gemfile: gemfiles/rails4.2_graphql1.8.gemfile
|
79
|
-
rvm: 2.7.1
|
80
|
-
allow_failures:
|
81
|
-
- rvm: 2.6.6
|
82
|
-
gemfile: gemfiles/rails6.0_graphql_edge.gemfile
|
83
|
-
- rvm: 2.7.1
|
84
|
-
gemfile: gemfiles/rails6.0_graphql_edge.gemfile
|
85
|
-
- rvm: 2.7.1
|
86
|
-
gemfile: gemfiles/rails_edge_graphql_edge.gemfile
|