graphql_devise 0.14.2 → 0.14.3

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
2
  SHA256:
3
- metadata.gz: 33fca9e9e4adcd1831cfcc2a7cf47006e7f5c0b28a20651eba38916e6cd34701
4
- data.tar.gz: 4cab9282ea278aa1fd077c7e5caf2164662c227a788ddac0c0224d21cf4eb679
3
+ metadata.gz: 8babaa3e2f0ece19b6abd429ea42fb2f87f93490beb6a781329756506c90a00b
4
+ data.tar.gz: 599bb62bff4fa27c19f83a75ba328d1af3915b2fb726553168678a8a47a8a8ee
5
5
  SHA512:
6
- metadata.gz: b0311b0035cca6a5a23f38c890a96658865e9131c2a80f9f40fba91569d5951cc4662709fdc5e0ad82cef991e04d5931803c85da4e6bea8bcf4701ed92b04ef7
7
- data.tar.gz: cbfa71e7947f0e7ce3ab3e23970fc313b09c9fe0198df09e440137a51e1e64b57d0f4e907d158c4c0f78e610beacfebbc61b53c5ef8d582c97091cfb8ad94772
6
+ metadata.gz: dd833162fd74b0174358424a5ef0ec59ce663577c1ce6de6b84b712d05856cba2e226aece27e07c03eef681483862ef181ef4dc61674b2b74e6c8f939e6c7e0a
7
+ data.tar.gz: 8e7af3981a3ad1d4a199ddf31cc3242f603205a02181b76d9e63be7ff09979927acd0305578d1583a421c08e076a666778a15d62e4fb1c9517d54f91a3b39111
@@ -0,0 +1,118 @@
1
+ version: 2.1
2
+ orbs:
3
+ coveralls: coveralls/coveralls@1.0.6
4
+
5
+ jobs:
6
+ test:
7
+ parameters:
8
+ ruby-version:
9
+ type: string
10
+ gemfile:
11
+ type: string
12
+ docker:
13
+ - image: 'ruby:<< parameters.ruby-version >>'
14
+ environment:
15
+ BUNDLE_GEMFILE: << parameters.gemfile >>
16
+ BUNDLE_PATH: ../vendor/bundle
17
+ COVERALLS_PARALLEL: true
18
+ EAGER_LOAD: 'true'
19
+ steps:
20
+ - checkout
21
+ - restore_cache:
22
+ keys:
23
+ - v1.0-<< parameters.gemfile >>-<< parameters.ruby-version >>
24
+ - run: gem install bundler -v '1.17'
25
+ - run:
26
+ name: Install dependencies
27
+ command: bundle install
28
+ - save_cache:
29
+ key: v1.0-<< parameters.gemfile >>-<< parameters.ruby-version >>
30
+ paths:
31
+ - vendor/bundle
32
+ - run:
33
+ name: Run Specs
34
+ command:
35
+ bundle exec rspec
36
+ report-coverage:
37
+ docker:
38
+ - image: 'circleci/node:10.0.0'
39
+ steps:
40
+ - coveralls/upload:
41
+ parallel_finished: true
42
+
43
+ workflows:
44
+ test-suite:
45
+ jobs:
46
+ - test:
47
+ matrix:
48
+ parameters:
49
+ ruby-version:
50
+ - '2.2'
51
+ - '2.3'
52
+ - '2.4'
53
+ - '2.5'
54
+ - '2.6'
55
+ - '2.7'
56
+ - '3.0'
57
+ gemfile:
58
+ - gemfiles/rails4.2_graphql1.8.gemfile
59
+ - gemfiles/rails5.0_graphql1.8.gemfile
60
+ - gemfiles/rails5.0_graphql1.9.gemfile
61
+ - gemfiles/rails5.1_graphql1.8.gemfile
62
+ - gemfiles/rails5.1_graphql1.9.gemfile
63
+ - gemfiles/rails5.2_graphql1.8.gemfile
64
+ - gemfiles/rails5.2_graphql1.9.gemfile
65
+ - gemfiles/rails5.2_graphql1.10.gemfile
66
+ - gemfiles/rails5.2_graphql1.11.gemfile
67
+ - gemfiles/rails6.0_graphql1.11.gemfile
68
+ - gemfiles/rails6.0_graphql1.12.gemfile
69
+ - gemfiles/rails6.1_graphql1.11.gemfile
70
+ - gemfiles/rails6.1_graphql1.12.gemfile
71
+ exclude:
72
+ - ruby-version: '2.2'
73
+ gemfile: gemfiles/rails6.0_graphql1.11.gemfile
74
+ - ruby-version: '2.2'
75
+ gemfile: gemfiles/rails6.0_graphql1.12.gemfile
76
+ - ruby-version: '2.2'
77
+ gemfile: gemfiles/rails6.1_graphql1.11.gemfile
78
+ - ruby-version: '2.2'
79
+ gemfile: gemfiles/rails6.1_graphql1.12.gemfile
80
+ - ruby-version: '2.3'
81
+ gemfile: gemfiles/rails6.0_graphql1.11.gemfile
82
+ - ruby-version: '2.3'
83
+ gemfile: gemfiles/rails6.0_graphql1.12.gemfile
84
+ - ruby-version: '2.3'
85
+ gemfile: gemfiles/rails6.1_graphql1.11.gemfile
86
+ - ruby-version: '2.3'
87
+ gemfile: gemfiles/rails6.1_graphql1.12.gemfile
88
+ - ruby-version: '2.4'
89
+ gemfile: gemfiles/rails6.0_graphql1.11.gemfile
90
+ - ruby-version: '2.4'
91
+ gemfile: gemfiles/rails6.0_graphql1.12.gemfile
92
+ - ruby-version: '2.4'
93
+ gemfile: gemfiles/rails6.1_graphql1.11.gemfile
94
+ - ruby-version: '2.4'
95
+ gemfile: gemfiles/rails6.1_graphql1.12.gemfile
96
+ - ruby-version: '2.7'
97
+ gemfile: gemfiles/rails4.2_graphql1.8.gemfile
98
+ - ruby-version: '3.0'
99
+ gemfile: gemfiles/rails4.2_graphql1.8.gemfile
100
+ - ruby-version: '3.0'
101
+ gemfile: gemfiles/rails5.0_graphql1.8.gemfile
102
+ - ruby-version: '3.0'
103
+ gemfile: gemfiles/rails5.0_graphql1.9.gemfile
104
+ - ruby-version: '3.0'
105
+ gemfile: gemfiles/rails5.1_graphql1.8.gemfile
106
+ - ruby-version: '3.0'
107
+ gemfile: gemfiles/rails5.1_graphql1.9.gemfile
108
+ - ruby-version: '3.0'
109
+ gemfile: gemfiles/rails5.2_graphql1.8.gemfile
110
+ - ruby-version: '3.0'
111
+ gemfile: gemfiles/rails5.2_graphql1.9.gemfile
112
+ - ruby-version: '3.0'
113
+ gemfile: gemfiles/rails5.2_graphql1.10.gemfile
114
+ - ruby-version: '3.0'
115
+ gemfile: gemfiles/rails5.2_graphql1.11.gemfile
116
+ - report-coverage:
117
+ requires:
118
+ - test
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.14.3](https://github.com/graphql-devise/graphql_devise/tree/v0.14.3) (2021-04-28)
4
+
5
+ [Full Changelog](https://github.com/graphql-devise/graphql_devise/compare/v0.14.2...v0.14.3)
6
+
7
+ **Implemented enhancements:**
8
+
9
+ - Add Support for Ruby 3 [\#170](https://github.com/graphql-devise/graphql_devise/pull/170) ([00dav00](https://github.com/00dav00))
10
+
11
+ **Fixed bugs:**
12
+
13
+ - ArgumentError \(wrong number of arguments \(given 2, expected 0..1\)\) [\#169](https://github.com/graphql-devise/graphql_devise/issues/169)
14
+
3
15
  ## [v0.14.2](https://github.com/graphql-devise/graphql_devise/tree/v0.14.2) (2021-03-08)
4
16
 
5
17
  [Full Changelog](https://github.com/graphql-devise/graphql_devise/compare/v0.14.1...v0.14.2)
@@ -47,7 +59,7 @@
47
59
 
48
60
  - Fixes connection\_config deprecation warning [\#135](https://github.com/graphql-devise/graphql_devise/pull/135) ([artplan1](https://github.com/artplan1))
49
61
 
50
- ## [v0.13.4](https://github.com/graphql-devise/graphql_devise/tree/v0.13.4) (2020-08-15)
62
+ ## [v0.13.4](https://github.com/graphql-devise/graphql_devise/tree/v0.13.4) (2020-08-16)
51
63
 
52
64
  [Full Changelog](https://github.com/graphql-devise/graphql_devise/compare/v0.13.3...v0.13.4)
53
65
 
@@ -71,7 +83,7 @@
71
83
 
72
84
  - Save resource after generating credentials in resource confirmation [\#125](https://github.com/graphql-devise/graphql_devise/pull/125) ([mcelicalderon](https://github.com/mcelicalderon))
73
85
 
74
- ## [v0.13.1](https://github.com/graphql-devise/graphql_devise/tree/v0.13.1) (2020-07-29)
86
+ ## [v0.13.1](https://github.com/graphql-devise/graphql_devise/tree/v0.13.1) (2020-07-30)
75
87
 
76
88
  [Full Changelog](https://github.com/graphql-devise/graphql_devise/compare/v0.13.0...v0.13.1)
77
89
 
@@ -84,7 +96,7 @@
84
96
  - Checking for `performed?` when mounting into your graphql schema. [\#110](https://github.com/graphql-devise/graphql_devise/issues/110)
85
97
  - no query string for email reset [\#104](https://github.com/graphql-devise/graphql_devise/issues/104)
86
98
 
87
- ## [v0.13.0](https://github.com/graphql-devise/graphql_devise/tree/v0.13.0) (2020-06-22)
99
+ ## [v0.13.0](https://github.com/graphql-devise/graphql_devise/tree/v0.13.0) (2020-06-23)
88
100
 
89
101
  [Full Changelog](https://github.com/graphql-devise/graphql_devise/compare/v0.12.3...v0.13.0)
90
102
 
@@ -101,7 +113,7 @@
101
113
  - CookieOverflow for Own Schema Mount [\#112](https://github.com/graphql-devise/graphql_devise/issues/112)
102
114
  - Reconfirmable not setting unconfirmed\_email [\#102](https://github.com/graphql-devise/graphql_devise/issues/102)
103
115
 
104
- ## [v0.12.3](https://github.com/graphql-devise/graphql_devise/tree/v0.12.3) (2020-06-19)
116
+ ## [v0.12.3](https://github.com/graphql-devise/graphql_devise/tree/v0.12.3) (2020-06-20)
105
117
 
106
118
  [Full Changelog](https://github.com/graphql-devise/graphql_devise/compare/v0.12.2...v0.12.3)
107
119
 
@@ -154,7 +166,7 @@
154
166
 
155
167
  **Implemented enhancements:**
156
168
 
157
- - Default `change\_headers\_on\_each\_request` to false [\#76](https://github.com/graphql-devise/graphql_devise/issues/76)
169
+ - Default `change_headers_on_each_request` to false [\#76](https://github.com/graphql-devise/graphql_devise/issues/76)
158
170
  - Replace the auth model concern on generator execution [\#53](https://github.com/graphql-devise/graphql_devise/issues/53)
159
171
  - Generator. Use our modules, change defaults [\#91](https://github.com/graphql-devise/graphql_devise/pull/91) ([mcelicalderon](https://github.com/mcelicalderon))
160
172
 
@@ -172,6 +184,7 @@
172
184
 
173
185
  **Implemented enhancements:**
174
186
 
187
+ - Add case insensitive fields to sign\_up and login [\#66](https://github.com/graphql-devise/graphql_devise/issues/66)
175
188
  - Honor Devise's case insensitive fields [\#81](https://github.com/graphql-devise/graphql_devise/pull/81) ([mcelicalderon](https://github.com/mcelicalderon))
176
189
 
177
190
  **Fixed bugs:**
@@ -182,7 +195,6 @@
182
195
 
183
196
  - Get the Mutations going [\#83](https://github.com/graphql-devise/graphql_devise/issues/83)
184
197
  - Improve docs. Better reference to Devise and DTA. [\#75](https://github.com/graphql-devise/graphql_devise/issues/75)
185
- - Add case insensitive fields to sign\_up and login [\#66](https://github.com/graphql-devise/graphql_devise/issues/66)
186
198
 
187
199
  **Merged pull requests:**
188
200
 
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # GraphqlDevise
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)
2
+ [![Build Status](https://circleci.com/gh/graphql-devise/graphql_devise.svg?style=svg)](https://app.circleci.com/pipelines/github/graphql-devise/graphql_devise)
3
+ [![Coverage Status](https://coveralls.io/repos/github/graphql-devise/graphql_devise/badge.svg)](https://coveralls.io/github/graphql-devise/graphql_devise)
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.
@@ -31,6 +31,7 @@ GraphQL interface on top of the [Devise Token Auth](https://github.com/lynndylan
31
31
  * [Authenticate in Your GQL Schema](#authenticate-in-your-gql-schema)
32
32
  * [Important](#important-2)
33
33
  * [Making Requests](#making-requests)
34
+ * [Introspection query](#introspection-query)
34
35
  * [Mutations](#mutations)
35
36
  * [Queries](#queries)
36
37
  * [Reset Password Flow](#reset-password-flow)
@@ -226,6 +227,12 @@ authentication unless specified otherwise using the `authenticate: true` option
226
227
  one argument (field name) and is called whenever a field that requires authentication
227
228
  is called without an authenticated resource. By default a `GraphQL::ExecutionError` will be
228
229
  raised if authentication fails. This will provide a GQL like error message on the response.
230
+ 1. `public_introspection`: The [introspection query](https://graphql.org/learn/introspection/) is a very useful GQL resource that provides
231
+ information about what queries the schema supports. This query is very powerful and
232
+ there may be some case in which you want to limit its usage to authenticated users.
233
+ To accomplish this the schema plugin provides the `public_introspection` option. This option
234
+ accepts a boolean value and by default will consider introspection queries public in all
235
+ environments but production.
229
236
 
230
237
  ### Available Mount Options
231
238
  Both the `mount_graphql_devise_for` method and the `GraphqlDevise::ResourceLoader` class
@@ -454,6 +461,9 @@ Remember to check `performed?` before rendering the result of the graphql operat
454
461
  ### Making Requests
455
462
  Here is a list of the available mutations and queries assuming your mounted model is `User`.
456
463
 
464
+ #### Introspection query
465
+ If you are using the schema plugin, you can require authentication before doing an introspection query by modifying the `public_introspection` option of the plugin. Check the [plugin config section](#mounting-operations-into-your-own-schema) for more information.
466
+
457
467
  #### Mutations
458
468
 
459
469
  Operation | Description | Example
data/Rakefile CHANGED
@@ -18,11 +18,12 @@ end
18
18
 
19
19
  require 'github_changelog_generator/task'
20
20
 
21
- GitHubChangelogGenerator::RakeTask.new :changelog do |config|
21
+ GitHubChangelogGenerator::RakeTask.new do |config|
22
22
  config.user = 'graphql-devise'
23
23
  config.project = 'graphql_devise'
24
24
  config.future_release = ENV['FUTURE_RELEASE']
25
25
  config.add_issues_wo_labels = false
26
+ config.add_pr_wo_labels = false
26
27
  end
27
28
 
28
29
  APP_RAKEFILE = File.expand_path('spec/dummy/Rakefile', __dir__)
@@ -14,7 +14,7 @@ module GraphqlDevise
14
14
  end
15
15
  )
16
16
  else
17
- GraphqlDevise::Schema.execute(params[:query], execute_params(params))
17
+ GraphqlDevise::Schema.execute(params[:query], **execute_params(params))
18
18
  end
19
19
 
20
20
  render json: result unless performed?
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
32
32
  spec.add_dependency 'rails', '>= 4.2', '< 6.2'
33
33
 
34
34
  spec.add_development_dependency 'appraisal'
35
- spec.add_development_dependency 'coveralls'
35
+ spec.add_development_dependency 'coveralls-ruby', '~> 0.2'
36
36
  spec.add_development_dependency 'factory_bot'
37
37
  spec.add_development_dependency 'faker'
38
38
  spec.add_development_dependency 'generator_spec'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GraphqlDevise
4
- VERSION = '0.14.2'.freeze
4
+ VERSION = '0.14.3'.freeze
5
5
  end
@@ -6,13 +6,13 @@ module Api
6
6
  include GraphqlDevise::Concerns::SetUserByToken
7
7
 
8
8
  def graphql
9
- result = DummySchema.execute(params[:query], execute_params(params))
9
+ result = DummySchema.execute(params[:query], **execute_params(params))
10
10
 
11
11
  render json: result unless performed?
12
12
  end
13
13
 
14
14
  def interpreter
15
- render json: InterpreterSchema.execute(params[:query], execute_params(params))
15
+ render json: InterpreterSchema.execute(params[:query], **execute_params(params))
16
16
  end
17
17
 
18
18
  def failing_resource_name
@@ -41,6 +41,5 @@ class CreateSchemaUsers < ActiveRecord::Migration[6.0]
41
41
  add_index :schema_users, [:uid, :provider], unique: true
42
42
  add_index :schema_users, :reset_password_token, unique: true
43
43
  add_index :schema_users, :confirmation_token, unique: true
44
- add_index :schema_users, :unlock_token, unique: true
45
44
  end
46
45
  end
@@ -73,7 +73,6 @@ ActiveRecord::Schema.define(version: 2020_06_23_003142) do
73
73
  t.text "tokens"
74
74
  t.datetime "created_at", precision: 6, null: false
75
75
  t.datetime "updated_at", precision: 6, null: false
76
- t.index "\"unlock_token\"", name: "index_schema_users_on_unlock_token", unique: true
77
76
  t.index ["confirmation_token"], name: "index_schema_users_on_confirmation_token", unique: true
78
77
  t.index ["email"], name: "index_schema_users_on_email", unique: true
79
78
  t.index ["reset_password_token"], name: "index_schema_users_on_reset_password_token", unique: true
@@ -6,20 +6,13 @@ RSpec.describe GraphqlDevise::GraphqlController do
6
6
  let(:password) { 'password123' }
7
7
  let(:user) { create(:user, :confirmed, password: password) }
8
8
  let(:params) { { query: query, variables: variables } }
9
- let(:request_params) do
10
- if Rails::VERSION::MAJOR >= 5
11
- { params: params }
12
- else
13
- params
14
- end
15
- end
16
9
 
17
10
  context 'when variables are a string' do
18
11
  let(:variables) { "{\"email\": \"#{user.email}\"}" }
19
12
  let(:query) { "mutation($email: String!) { userLogin(email: $email, password: \"#{password}\") { user { email name signInCount } } }" }
20
13
 
21
14
  it 'parses the string variables' do
22
- post '/api/v1/graphql_auth', request_params
15
+ post_request('/api/v1/graphql_auth')
23
16
 
24
17
  expect(json_response).to match(
25
18
  data: { userLogin: { user: { email: user.email, name: user.name, signInCount: 1 } } }
@@ -31,7 +24,7 @@ RSpec.describe GraphqlDevise::GraphqlController do
31
24
  let(:query) { "mutation { userLogin(email: \"#{user.email}\", password: \"#{password}\") { user { email name signInCount } } }" }
32
25
 
33
26
  it 'returns an empty hash as variables' do
34
- post '/api/v1/graphql_auth', request_params
27
+ post_request('/api/v1/graphql_auth')
35
28
 
36
29
  expect(json_response).to match(
37
30
  data: { userLogin: { user: { email: user.email, name: user.name, signInCount: 1 } } }
@@ -46,7 +39,7 @@ RSpec.describe GraphqlDevise::GraphqlController do
46
39
 
47
40
  it 'raises an error' do
48
41
  expect do
49
- post '/api/v1/graphql_auth', request_params
42
+ post_request('/api/v1/graphql_auth')
50
43
  end.to raise_error(ArgumentError)
51
44
  end
52
45
  end
@@ -62,7 +55,7 @@ RSpec.describe GraphqlDevise::GraphqlController do
62
55
  end
63
56
 
64
57
  it 'executes multiple queries in the same request' do
65
- post '/api/v1/graphql_auth', request_params
58
+ post_request('/api/v1/graphql_auth')
66
59
 
67
60
  expect(json_response).to match(
68
61
  [
@@ -79,4 +72,12 @@ RSpec.describe GraphqlDevise::GraphqlController do
79
72
  )
80
73
  end
81
74
  end
75
+
76
+ def post_request(path)
77
+ if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.0.0') || Rails::VERSION::MAJOR >= 5
78
+ post(path, params: params)
79
+ else
80
+ post(path, params)
81
+ end
82
+ end
82
83
  end
@@ -4,18 +4,26 @@ RSpec.shared_context 'with graphql query request' do
4
4
  let(:headers) { {} }
5
5
  let(:variables) { {} }
6
6
  let(:graphql_params) do
7
- if Rails::VERSION::MAJOR >= 5
8
- [{ params: { query: query, variables: variables }, headers: headers }]
7
+ if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.0.0') || Rails::VERSION::MAJOR >= 5
8
+ { params: { query: query, variables: variables }, headers: headers }
9
9
  else
10
10
  [{ query: query, variables: variables }, headers]
11
11
  end
12
12
  end
13
13
 
14
14
  def post_request(path = '/api/v1/graphql_auth')
15
- post path, *graphql_params
15
+ send_request(path, :post)
16
16
  end
17
17
 
18
18
  def get_request(path = '/api/v1/graphql_auth')
19
- get path, *graphql_params
19
+ send_request(path, :get)
20
+ end
21
+
22
+ def send_request(path, method)
23
+ if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.0.0') || Rails::VERSION::MAJOR >= 5
24
+ public_send(method, path, **graphql_params)
25
+ else
26
+ public_send(method, path, *graphql_params)
27
+ end
20
28
  end
21
29
  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.2
4
+ version: 0.14.3
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-03-08 00:00:00.000000000 Z
12
+ date: 2021-04-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: devise_token_auth
@@ -86,19 +86,19 @@ dependencies:
86
86
  - !ruby/object:Gem::Version
87
87
  version: '0'
88
88
  - !ruby/object:Gem::Dependency
89
- name: coveralls
89
+ name: coveralls-ruby
90
90
  requirement: !ruby/object:Gem::Requirement
91
91
  requirements:
92
- - - ">="
92
+ - - "~>"
93
93
  - !ruby/object:Gem::Version
94
- version: '0'
94
+ version: '0.2'
95
95
  type: :development
96
96
  prerelease: false
97
97
  version_requirements: !ruby/object:Gem::Requirement
98
98
  requirements:
99
- - - ">="
99
+ - - "~>"
100
100
  - !ruby/object:Gem::Version
101
- version: '0'
101
+ version: '0.2'
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: factory_bot
104
104
  requirement: !ruby/object:Gem::Requirement
@@ -275,12 +275,11 @@ executables: []
275
275
  extensions: []
276
276
  extra_rdoc_files: []
277
277
  files:
278
- - ".coveralls.yml"
278
+ - ".circleci/config.yml"
279
279
  - ".github/ISSUE_TEMPLATE/bug_report.md"
280
280
  - ".github/ISSUE_TEMPLATE/enhancement.md"
281
281
  - ".github/ISSUE_TEMPLATE/question.md"
282
282
  - ".gitignore"
283
- - ".gitlab-ci.yml"
284
283
  - ".rspec"
285
284
  - ".rubocop.yml"
286
285
  - Appraisals
data/.coveralls.yml DELETED
@@ -1 +0,0 @@
1
- repo_token: bzwe3rK8KkenWfsw42Nj6JhoO77V7V3sh
data/.gitlab-ci.yml DELETED
@@ -1,109 +0,0 @@
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