graphql_devise 1.4.0 → 1.5.0

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: 8f51f6bf7fe463ff0ea364fe89ba48c3d5823ee965f044b49c4417ea051e8ec1
4
- data.tar.gz: d0d974ad589b3549d90764b9afe7841fe71ec9731f4bba2386d6f329e10d55ac
3
+ metadata.gz: 4aa3fd3cb5393aea5b9cedc4bbe4742fb5f89d5730c40b66b3c0d16ffde93704
4
+ data.tar.gz: ef7ab750655d0ad87b9c84c17653af2046e0479dabc1603528670e7737a97ca8
5
5
  SHA512:
6
- metadata.gz: d914975173e11956b19e7c3591967e8332297b5f779e1e61088ee0f43a09348cbeba2514d1a91987562194e5c05d8a7b273a8a31eb208dc382a00cf65e56159d
7
- data.tar.gz: c779b95176de43a738514eb1b4e06da6c30d4bb8bbf915d342e57ed6e57c733410e717e5777d0ebebd56a72d515b99dae67dd33c3246a0ae6ce11ee38f30cc27
6
+ metadata.gz: f18ec6dc3779ad66dd3950b8768e013108f5208b17c0dc21e7197aca2872d8fdb2dcd95ef1f78d1138f773eb98584a9c7bf0668bc516e56c3f7e56b8b5832a11
7
+ data.tar.gz: 6511feb415cfdb50b3b784feb874f1fba9ac695207fd7e9a48aeaa9b531894da1de4849729059aa36957e228e4f7ad2dc07396ecc25c4e953e341ace990a728d
data/.circleci/config.yml CHANGED
@@ -15,6 +15,7 @@ jobs:
15
15
  BUNDLE_GEMFILE: << parameters.gemfile >>
16
16
  COVERALLS_PARALLEL: true
17
17
  EAGER_LOAD: 'true'
18
+ RUBYOPT: '-rostruct'
18
19
  steps:
19
20
  - checkout
20
21
  - run: gem install bundler -v '1.17'
@@ -27,7 +28,7 @@ jobs:
27
28
  bundle exec rspec
28
29
  report-coverage:
29
30
  docker:
30
- - image: 'circleci/node:10.0.0'
31
+ - image: 'cimg/node:22.1.0'
31
32
  steps:
32
33
  - coveralls/upload:
33
34
  parallel_finished: true
@@ -65,31 +66,13 @@ workflows:
65
66
  - gemfiles/rails7.0_graphql1.13.gemfile
66
67
  - gemfiles/rails7.0_graphql2.0.gemfile
67
68
  - gemfiles/rails7.0_graphql2.1.gemfile
69
+ - gemfiles/rails7.0_graphql2.2.gemfile
70
+ - gemfiles/rails7.0_graphql2.3.gemfile
71
+ - gemfiles/rails7.1_graphql2.0.gemfile
72
+ - gemfiles/rails7.1_graphql2.1.gemfile
73
+ - gemfiles/rails7.1_graphql2.2.gemfile
74
+ - gemfiles/rails7.1_graphql2.3.gemfile
68
75
  exclude:
69
- - ruby-version: '2.4'
70
- gemfile: gemfiles/rails6.0_graphql1.11.gemfile
71
- - ruby-version: '2.4'
72
- gemfile: gemfiles/rails6.0_graphql1.12.gemfile
73
- - ruby-version: '2.4'
74
- gemfile: gemfiles/rails6.0_graphql1.13.gemfile
75
- - ruby-version: '2.4'
76
- gemfile: gemfiles/rails6.1_graphql1.11.gemfile
77
- - ruby-version: '2.4'
78
- gemfile: gemfiles/rails6.1_graphql1.12.gemfile
79
- - ruby-version: '2.4'
80
- gemfile: gemfiles/rails6.1_graphql1.13.gemfile
81
- - ruby-version: '2.4'
82
- gemfile: gemfiles/rails6.1_graphql2.0.gemfile
83
- - ruby-version: '2.4'
84
- gemfile: gemfiles/rails7.0_graphql1.11.gemfile
85
- - ruby-version: '2.4'
86
- gemfile: gemfiles/rails7.0_graphql1.12.gemfile
87
- - ruby-version: '2.4'
88
- gemfile: gemfiles/rails7.0_graphql1.13.gemfile
89
- - ruby-version: '2.4'
90
- gemfile: gemfiles/rails7.0_graphql2.0.gemfile
91
- - ruby-version: '2.4'
92
- gemfile: gemfiles/rails7.0_graphql2.1.gemfile
93
76
  - ruby-version: '2.5'
94
77
  gemfile: gemfiles/rails7.0_graphql1.11.gemfile
95
78
  - ruby-version: '2.5'
@@ -100,10 +83,6 @@ workflows:
100
83
  gemfile: gemfiles/rails7.0_graphql1.12.gemfile
101
84
  - ruby-version: '2.5'
102
85
  gemfile: gemfiles/rails7.0_graphql1.13.gemfile
103
- - ruby-version: '2.5'
104
- gemfile: gemfiles/rails7.0_graphql2.0.gemfile
105
- - ruby-version: '2.5'
106
- gemfile: gemfiles/rails7.0_graphql2.1.gemfile
107
86
  - ruby-version: '2.5'
108
87
  gemfile: gemfiles/rails6.1_graphql2.0.gemfile
109
88
  - ruby-version: '2.5'
@@ -114,6 +93,22 @@ workflows:
114
93
  gemfile: gemfiles/rails6.0_graphql1.12.gemfile
115
94
  - ruby-version: '2.5'
116
95
  gemfile: gemfiles/rails6.0_graphql1.11.gemfile
96
+ - ruby-version: '2.5'
97
+ gemfile: gemfiles/rails7.0_graphql2.0.gemfile
98
+ - ruby-version: '2.5'
99
+ gemfile: gemfiles/rails7.0_graphql2.1.gemfile
100
+ - ruby-version: '2.5'
101
+ gemfile: gemfiles/rails7.0_graphql2.2.gemfile
102
+ - ruby-version: '2.5'
103
+ gemfile: gemfiles/rails7.0_graphql2.3.gemfile
104
+ - ruby-version: '2.5'
105
+ gemfile: gemfiles/rails7.1_graphql2.0.gemfile
106
+ - ruby-version: '2.5'
107
+ gemfile: gemfiles/rails7.1_graphql2.1.gemfile
108
+ - ruby-version: '2.5'
109
+ gemfile: gemfiles/rails7.1_graphql2.2.gemfile
110
+ - ruby-version: '2.5'
111
+ gemfile: gemfiles/rails7.1_graphql2.3.gemfile
117
112
  - ruby-version: '2.6'
118
113
  gemfile: gemfiles/rails7.0_graphql1.11.gemfile
119
114
  - ruby-version: '2.6'
@@ -124,6 +119,18 @@ workflows:
124
119
  gemfile: gemfiles/rails7.0_graphql2.0.gemfile
125
120
  - ruby-version: '2.6'
126
121
  gemfile: gemfiles/rails7.0_graphql2.1.gemfile
122
+ - ruby-version: '2.6'
123
+ gemfile: gemfiles/rails7.0_graphql2.2.gemfile
124
+ - ruby-version: '2.6'
125
+ gemfile: gemfiles/rails7.0_graphql2.3.gemfile
126
+ - ruby-version: '2.6'
127
+ gemfile: gemfiles/rails7.1_graphql2.0.gemfile
128
+ - ruby-version: '2.6'
129
+ gemfile: gemfiles/rails7.1_graphql2.1.gemfile
130
+ - ruby-version: '2.6'
131
+ gemfile: gemfiles/rails7.1_graphql2.2.gemfile
132
+ - ruby-version: '2.6'
133
+ gemfile: gemfiles/rails7.1_graphql2.3.gemfile
127
134
  - ruby-version: '2.7'
128
135
  gemfile: gemfiles/rails4.2_graphql1.8.gemfile
129
136
  - ruby-version: '3.0'
data/Appraisals CHANGED
@@ -5,6 +5,8 @@ appraise 'rails4.2-graphql1.8' do
5
5
  gem 'graphql', '~> 1.8.0'
6
6
  gem 'devise_token_auth', '< 1.2'
7
7
  gem 'rspec-rails', '< 4.0'
8
+ gem 'bigdecimal', '1.3.5'
9
+ gem 'factory_bot', '<= 6.4.4'
8
10
  end
9
11
 
10
12
  appraise 'rails5.0-graphql1.8' do
@@ -14,6 +16,7 @@ appraise 'rails5.0-graphql1.8' do
14
16
  gem 'devise_token_auth', '0.1.43'
15
17
  gem 'devise', '>= 4.0'
16
18
  gem 'rspec-rails', '< 4.0'
19
+ gem 'factory_bot', '<= 6.4.4'
17
20
  end
18
21
 
19
22
  appraise 'rails5.0-graphql1.9' do
@@ -22,6 +25,7 @@ appraise 'rails5.0-graphql1.9' do
22
25
  gem 'graphql', '~> 1.9.0'
23
26
  gem 'devise_token_auth', '< 1.2'
24
27
  gem 'rspec-rails', '< 4.0'
28
+ gem 'factory_bot', '<= 6.4.4'
25
29
  end
26
30
 
27
31
  appraise 'rails5.1-graphql1.8' do
@@ -31,6 +35,7 @@ appraise 'rails5.1-graphql1.8' do
31
35
  gem 'devise_token_auth', '0.1.43'
32
36
  gem 'devise', '>= 4.3'
33
37
  gem 'rspec-rails', '< 4.0'
38
+ gem 'factory_bot', '<= 6.4.4'
34
39
  end
35
40
 
36
41
  appraise 'rails5.1-graphql1.9' do
@@ -39,6 +44,7 @@ appraise 'rails5.1-graphql1.9' do
39
44
  gem 'graphql', '~> 1.9.0'
40
45
  gem 'devise_token_auth', '< 1.2'
41
46
  gem 'rspec-rails', '< 4.0'
47
+ gem 'factory_bot', '<= 6.4.4'
42
48
  end
43
49
 
44
50
  appraise 'rails5.2-graphql1.8' do
@@ -48,6 +54,7 @@ appraise 'rails5.2-graphql1.8' do
48
54
  gem 'devise_token_auth', '0.1.43'
49
55
  gem 'devise', '>= 4.4.2'
50
56
  gem 'rspec-rails', '< 4.0'
57
+ gem 'factory_bot', '<= 6.4.4'
51
58
  end
52
59
 
53
60
  appraise 'rails5.2-graphql1.9' do
@@ -56,6 +63,7 @@ appraise 'rails5.2-graphql1.9' do
56
63
  gem 'graphql', '~> 1.9.0'
57
64
  gem 'devise_token_auth', '< 1.2'
58
65
  gem 'rspec-rails', '< 4.0'
66
+ gem 'factory_bot', '<= 6.4.4'
59
67
  end
60
68
 
61
69
  appraise 'rails5.2-graphql1.10' do
@@ -64,6 +72,7 @@ appraise 'rails5.2-graphql1.10' do
64
72
  gem 'graphql', '~> 1.10.0'
65
73
  gem 'devise_token_auth', '< 1.2'
66
74
  gem 'rspec-rails', '< 4.0'
75
+ gem 'factory_bot', '<= 6.4.4'
67
76
  end
68
77
 
69
78
  appraise 'rails5.2-graphql1.11' do
@@ -72,6 +81,7 @@ appraise 'rails5.2-graphql1.11' do
72
81
  gem 'graphql', '~> 1.11.0'
73
82
  gem 'devise_token_auth', '< 1.2'
74
83
  gem 'rspec-rails', '< 4.0'
84
+ gem 'factory_bot', '<= 6.4.4'
75
85
  end
76
86
 
77
87
  appraise 'rails5.2-graphql1.12' do
@@ -80,6 +90,7 @@ appraise 'rails5.2-graphql1.12' do
80
90
  gem 'graphql', '~> 1.12.0'
81
91
  gem 'devise_token_auth', '< 1.2'
82
92
  gem 'rspec-rails', '< 4.0'
93
+ gem 'factory_bot', '<= 6.4.4'
83
94
  end
84
95
 
85
96
  appraise 'rails6.0-graphql1.10' do
@@ -87,6 +98,7 @@ appraise 'rails6.0-graphql1.10' do
87
98
  gem 'devise', '>= 4.7'
88
99
  gem 'rails', git: 'https://github.com/rails/rails', branch: '6-0-stable'
89
100
  gem 'graphql', '~> 1.10.0'
101
+ gem 'factory_bot', '<= 6.4.4'
90
102
  end
91
103
 
92
104
  appraise 'rails6.0-graphql1.11' do
@@ -95,6 +107,7 @@ appraise 'rails6.0-graphql1.11' do
95
107
  gem 'devise', '>= 4.7'
96
108
  gem 'rails', git: 'https://github.com/rails/rails', branch: '6-0-stable'
97
109
  gem 'graphql', '~> 1.11.0'
110
+ gem 'factory_bot', '<= 6.4.4'
98
111
  end
99
112
 
100
113
  appraise 'rails6.0-graphql1.12' do
@@ -103,6 +116,7 @@ appraise 'rails6.0-graphql1.12' do
103
116
  gem 'devise', '>= 4.7'
104
117
  gem 'rails', git: 'https://github.com/rails/rails', branch: '6-0-stable'
105
118
  gem 'graphql', '~> 1.12.0'
119
+ gem 'factory_bot', '<= 6.4.4'
106
120
  end
107
121
 
108
122
  appraise 'rails6.0-graphql1.13' do
@@ -110,6 +124,7 @@ appraise 'rails6.0-graphql1.13' do
110
124
  gem 'devise', '>= 4.7'
111
125
  gem 'rails', git: 'https://github.com/rails/rails', branch: '6-0-stable'
112
126
  gem 'graphql', '~> 1.13.0'
127
+ gem 'factory_bot', '<= 6.4.4'
113
128
  end
114
129
 
115
130
  appraise 'rails6.1-graphql1.10' do
@@ -117,6 +132,7 @@ appraise 'rails6.1-graphql1.10' do
117
132
  gem 'devise', '>= 4.7'
118
133
  gem 'rails', git: 'https://github.com/rails/rails', branch: '6-1-stable'
119
134
  gem 'graphql', '~> 1.10.0'
135
+ gem 'factory_bot', '<= 6.4.4'
120
136
  end
121
137
 
122
138
  appraise 'rails6.1-graphql1.11' do
@@ -125,6 +141,7 @@ appraise 'rails6.1-graphql1.11' do
125
141
  gem 'devise', '>= 4.7'
126
142
  gem 'rails', git: 'https://github.com/rails/rails', branch: '6-1-stable'
127
143
  gem 'graphql', '~> 1.11.0'
144
+ gem 'factory_bot', '<= 6.4.4'
128
145
  end
129
146
 
130
147
  appraise 'rails6.1-graphql1.12' do
@@ -133,6 +150,7 @@ appraise 'rails6.1-graphql1.12' do
133
150
  gem 'devise', '>= 4.7'
134
151
  gem 'rails', git: 'https://github.com/rails/rails', branch: '6-1-stable'
135
152
  gem 'graphql', '~> 1.12.0'
153
+ gem 'factory_bot', '<= 6.4.4'
136
154
  end
137
155
 
138
156
  appraise 'rails6.1-graphql1.13' do
@@ -140,6 +158,7 @@ appraise 'rails6.1-graphql1.13' do
140
158
  gem 'devise', '>= 4.7'
141
159
  gem 'rails', git: 'https://github.com/rails/rails', branch: '6-1-stable'
142
160
  gem 'graphql', '~> 1.13.0'
161
+ gem 'factory_bot', '<= 6.4.4'
143
162
  end
144
163
 
145
164
  appraise 'rails6.1-graphql2.0' do
@@ -148,6 +167,7 @@ appraise 'rails6.1-graphql2.0' do
148
167
  gem 'devise', '>= 4.7'
149
168
  gem 'rails', git: 'https://github.com/rails/rails', branch: '6-1-stable'
150
169
  gem 'graphql', '~> 2.0.1'
170
+ gem 'factory_bot', '<= 6.4.4'
151
171
  end
152
172
 
153
173
  appraise 'rails7.0-graphql1.11' do
@@ -183,7 +203,7 @@ appraise 'rails7.0-graphql2.0' do
183
203
  gem 'devise_token_auth', '>= 1.2.1'
184
204
  gem 'devise', '>= 4.7'
185
205
  gem 'rails', git: 'https://github.com/rails/rails', branch: '7-0-stable'
186
- gem 'graphql', '~> 2.0.1'
206
+ gem 'graphql', '>= 2.0', '< 2.1'
187
207
  end
188
208
 
189
209
  appraise 'rails7.0-graphql2.1' do
@@ -194,3 +214,57 @@ appraise 'rails7.0-graphql2.1' do
194
214
  gem 'rails', git: 'https://github.com/rails/rails', branch: '7-0-stable'
195
215
  gem 'graphql', '>= 2.1', '< 2.2'
196
216
  end
217
+
218
+ appraise 'rails7.0-graphql2.2' do
219
+ gem 'sassc-rails'
220
+ gem 'sqlite3', '~> 1.5.4'
221
+ gem 'devise_token_auth', '>= 1.2.1'
222
+ gem 'devise', '>= 4.7'
223
+ gem 'rails', git: 'https://github.com/rails/rails', branch: '7-0-stable'
224
+ gem 'graphql', '>= 2.2', '< 2.3'
225
+ end
226
+
227
+ appraise 'rails7.0-graphql2.3' do
228
+ gem 'sassc-rails'
229
+ gem 'sqlite3', '~> 1.5.4'
230
+ gem 'devise_token_auth', '>= 1.2.1'
231
+ gem 'devise', '>= 4.7'
232
+ gem 'rails', git: 'https://github.com/rails/rails', branch: '7-0-stable'
233
+ gem 'graphql', '>= 2.3', '< 2.4'
234
+ end
235
+
236
+ appraise 'rails7.1-graphql2.0' do
237
+ gem 'sassc-rails'
238
+ gem 'sqlite3', '~> 1.5.4'
239
+ gem 'devise_token_auth', '>= 1.2.1'
240
+ gem 'devise', '>= 4.7'
241
+ gem 'rails', git: 'https://github.com/rails/rails', branch: '7-1-stable'
242
+ gem 'graphql', '>= 2.0', '< 2.1'
243
+ end
244
+
245
+ appraise 'rails7.1-graphql2.1' do
246
+ gem 'sassc-rails'
247
+ gem 'sqlite3', '~> 1.5.4'
248
+ gem 'devise_token_auth', '>= 1.2.1'
249
+ gem 'devise', '>= 4.7'
250
+ gem 'rails', git: 'https://github.com/rails/rails', branch: '7-1-stable'
251
+ gem 'graphql', '>= 2.1', '< 2.2'
252
+ end
253
+
254
+ appraise 'rails7.1-graphql2.2' do
255
+ gem 'sassc-rails'
256
+ gem 'sqlite3', '~> 1.5.4'
257
+ gem 'devise_token_auth', '>= 1.2.1'
258
+ gem 'devise', '>= 4.7'
259
+ gem 'rails', git: 'https://github.com/rails/rails', branch: '7-1-stable'
260
+ gem 'graphql', '>= 2.2', '< 2.3'
261
+ end
262
+
263
+ appraise 'rails7.1-graphql2.3' do
264
+ gem 'sassc-rails'
265
+ gem 'sqlite3', '~> 1.5.4'
266
+ gem 'devise_token_auth', '>= 1.2.1'
267
+ gem 'devise', '>= 4.7'
268
+ gem 'rails', git: 'https://github.com/rails/rails', branch: '7-1-stable'
269
+ gem 'graphql', '>= 2.3', '< 2.4'
270
+ end
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## [v1.5.0](https://github.com/graphql-devise/graphql_devise/tree/v1.5.0) (2024-05-16)
4
+
5
+ [Full Changelog](https://github.com/graphql-devise/graphql_devise/compare/v1.4.0...v1.5.0)
6
+
7
+ **Implemented enhancements:**
8
+
9
+ - Add support for graphql 2.2 and 2.3 [\#271](https://github.com/graphql-devise/graphql_devise/pull/271) ([00dav00](https://github.com/00dav00))
10
+ - Support Rails 7.1 [\#267](https://github.com/graphql-devise/graphql_devise/pull/267) ([mcelicalderon](https://github.com/mcelicalderon))
11
+
3
12
  ## [v1.4.0](https://github.com/graphql-devise/graphql_devise/tree/v1.4.0) (2023-10-30)
4
13
 
5
14
  [Full Changelog](https://github.com/graphql-devise/graphql_devise/compare/v1.3.0...v1.4.0)
@@ -28,8 +28,8 @@ Gem::Specification.new do |spec|
28
28
  spec.required_ruby_version = '>= 2.4.4'
29
29
 
30
30
  spec.add_dependency 'devise_token_auth', '>= 0.1.43', '< 2.0'
31
- spec.add_dependency 'graphql', '>= 1.8', '< 2.2'
32
- spec.add_dependency 'rails', '>= 4.2', '< 7.1'
31
+ spec.add_dependency 'graphql', '>= 1.8', '< 2.4'
32
+ spec.add_dependency 'rails', '>= 4.2', '< 7.2'
33
33
  spec.add_dependency 'zeitwerk'
34
34
 
35
35
  spec.add_development_dependency 'appraisal'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GraphqlDevise
4
- VERSION = '1.4.0'
4
+ VERSION = '1.5.0'
5
5
  end
@@ -4,7 +4,14 @@
4
4
  require 'rails_helper'
5
5
  require 'generators/graphql_devise/install_generator'
6
6
 
7
- RSpec.describe GraphqlDevise::InstallGenerator, type: :generator do
7
+ # NOTE: Skipping tests because of a problem between zeitwerk and GQL versions 2.1.0 & 2.2.14
8
+ skip_generator_tests =
9
+ Gem::Version.new(GraphQL::VERSION).between?(
10
+ Gem::Version.new('2.1.0'),
11
+ Gem::Version.new('2.2.14')
12
+ ) && Gem::Version.new(Rails.version) >= Gem::Version.new('7.0.0')
13
+
14
+ RSpec.describe GraphqlDevise::InstallGenerator, type: :generator, skip: skip_generator_tests do
8
15
  destination File.expand_path('../../../../gqld_dummy', __dir__)
9
16
 
10
17
  let(:routes_path) { "#{destination_root}/config/routes.rb" }
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: 1.4.0
4
+ version: 1.5.0
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: 2023-10-30 00:00:00.000000000 Z
12
+ date: 2024-05-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: devise_token_auth
@@ -40,7 +40,7 @@ dependencies:
40
40
  version: '1.8'
41
41
  - - "<"
42
42
  - !ruby/object:Gem::Version
43
- version: '2.2'
43
+ version: '2.4'
44
44
  type: :runtime
45
45
  prerelease: false
46
46
  version_requirements: !ruby/object:Gem::Requirement
@@ -50,7 +50,7 @@ dependencies:
50
50
  version: '1.8'
51
51
  - - "<"
52
52
  - !ruby/object:Gem::Version
53
- version: '2.2'
53
+ version: '2.4'
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: rails
56
56
  requirement: !ruby/object:Gem::Requirement
@@ -60,7 +60,7 @@ dependencies:
60
60
  version: '4.2'
61
61
  - - "<"
62
62
  - !ruby/object:Gem::Version
63
- version: '7.1'
63
+ version: '7.2'
64
64
  type: :runtime
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
@@ -70,7 +70,7 @@ dependencies:
70
70
  version: '4.2'
71
71
  - - "<"
72
72
  - !ruby/object:Gem::Version
73
- version: '7.1'
73
+ version: '7.2'
74
74
  - !ruby/object:Gem::Dependency
75
75
  name: zeitwerk
76
76
  requirement: !ruby/object:Gem::Requirement