graphql_devise 1.3.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +36 -29
- data/Appraisals +75 -1
- data/CHANGELOG.md +19 -0
- data/config/locales/pt-BR.yml +40 -0
- data/graphql_devise.gemspec +2 -2
- data/lib/graphql_devise/concerns/controller_methods.rb +2 -2
- data/lib/graphql_devise/mutations/register.rb +1 -1
- data/lib/graphql_devise/mutations/send_password_reset_with_token.rb +1 -1
- data/lib/graphql_devise/mutations/update_password_with_token.rb +1 -1
- data/lib/graphql_devise/version.rb +1 -1
- data/spec/dummy/app/graphql/mutations/register_confirmed_user.rb +1 -1
- data/spec/generators/graphql_devise/install_generator_spec.rb +8 -1
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4aa3fd3cb5393aea5b9cedc4bbe4742fb5f89d5730c40b66b3c0d16ffde93704
|
4
|
+
data.tar.gz: ef7ab750655d0ad87b9c84c17653af2046e0479dabc1603528670e7737a97ca8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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: '
|
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', '
|
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,24 @@
|
|
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
|
+
|
12
|
+
## [v1.4.0](https://github.com/graphql-devise/graphql_devise/tree/v1.4.0) (2023-10-30)
|
13
|
+
|
14
|
+
[Full Changelog](https://github.com/graphql-devise/graphql_devise/compare/v1.3.0...v1.4.0)
|
15
|
+
|
16
|
+
**Implemented enhancements:**
|
17
|
+
|
18
|
+
- Add ability to customize raise\_user\_error\_list method [\#262](https://github.com/graphql-devise/graphql_devise/issues/262)
|
19
|
+
- Allow defining a custom raise\_user\_error\_list method [\#263](https://github.com/graphql-devise/graphql_devise/pull/263) ([mcelicalderon](https://github.com/mcelicalderon))
|
20
|
+
- Create pt-BR.yml [\#260](https://github.com/graphql-devise/graphql_devise/pull/260) ([celsoMartins](https://github.com/celsoMartins))
|
21
|
+
|
3
22
|
## [v1.3.0](https://github.com/graphql-devise/graphql_devise/tree/v1.3.0) (2023-09-01)
|
4
23
|
|
5
24
|
[Full Changelog](https://github.com/graphql-devise/graphql_devise/compare/v1.2.0...v1.3.0)
|
@@ -0,0 +1,40 @@
|
|
1
|
+
pt-BR:
|
2
|
+
graphql_devise:
|
3
|
+
redirect_url_not_allowed: "Redirecionamento para '%{redirect_url}' não permitido."
|
4
|
+
registration_failed: "Usuário não pôde ser registrado"
|
5
|
+
resource_build_failed: "O recurso não pôde ser construído, execução interrompida."
|
6
|
+
not_authenticated: "Usuário não logado."
|
7
|
+
user_not_found: "Usuário não encontrado ou não logado."
|
8
|
+
invalid_resource: "Erros presentes no recurso."
|
9
|
+
registrations:
|
10
|
+
missing_confirm_redirect_url: "Parâmetro 'confirm_success_url' ausente. Requerido quando o módulo 'confirmable' está habilitado."
|
11
|
+
passwords:
|
12
|
+
password_recovery_disabled: "Você deve habilitar a recuperação de senha para este model."
|
13
|
+
update_password_error: "Impossível atualizar a senha do usuário"
|
14
|
+
missing_passwords: "Você deve preencher os campos denominados 'Senha' e 'Confirmação de senha'."
|
15
|
+
password_not_required: "Esta conta não requer senha. Faça login usando sua conta '%{provider}'."
|
16
|
+
reset_token_not_found: "Nenhum usuário encontrado para o token de redefinição especificado."
|
17
|
+
reset_token_expired: "O token de redefinição de senha não é mais válido."
|
18
|
+
send_instructions: "Você receberá um e-mail com instruções sobre como redefinir sua senha em alguns minutos."
|
19
|
+
sessions:
|
20
|
+
bad_credentials: "Credenciais de login inválidas. Por favor, tente novamente."
|
21
|
+
not_confirmed: "Um e-mail de confirmação foi enviado para sua conta em '%{email}'. Você deve seguir as instruções no e-mail antes que sua conta possa ser ativada"
|
22
|
+
confirmations:
|
23
|
+
already_confirmed: "O e-mail já foi confirmado, tente fazer login"
|
24
|
+
invalid_token: "Token de confirmação inválido. Por favor, tente novamente"
|
25
|
+
user_not_found: "Não foi possível encontrar o usuário com o e-mail '%{email}'."
|
26
|
+
send_instructions: "Você receberá um e-mail com instruções sobre como confirmar seu endereço de e-mail em alguns minutos."
|
27
|
+
mailer:
|
28
|
+
confirmation_instructions:
|
29
|
+
confirm_link_msg: "Você pode confirmar o e-mail da sua conta através do link abaixo:"
|
30
|
+
confirm_account_link: "Confirmar minha conta"
|
31
|
+
reset_password_instructions:
|
32
|
+
request_reset_link_msg: "Alguém solicitou um link para alterar sua senha. Você pode fazer isso através do link abaixo."
|
33
|
+
password_change_link: "Altere minha senha"
|
34
|
+
ignore_mail_msg: "Se você não solicitou isso, ignore este e-mail."
|
35
|
+
no_changes_msg: "Sua senha não será alterada até que você acesse o link acima e crie uma nova."
|
36
|
+
unlock_instructions:
|
37
|
+
account_lock_msg: "Sua conta foi bloqueada devido a um número excessivo de tentativas de login malsucedidas."
|
38
|
+
hello: "olá"
|
39
|
+
welcome: "bem-vindo(a)"
|
40
|
+
|
data/graphql_devise.gemspec
CHANGED
@@ -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.
|
32
|
-
spec.add_dependency 'rails', '>= 4.2', '< 7.
|
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'
|
@@ -16,8 +16,8 @@ module GraphqlDevise
|
|
16
16
|
raise UserError, message
|
17
17
|
end
|
18
18
|
|
19
|
-
def raise_user_error_list(message,
|
20
|
-
raise DetailedUserError.new(message, errors: errors)
|
19
|
+
def raise_user_error_list(message, resource:)
|
20
|
+
raise DetailedUserError.new(message, errors: resource.errors.full_messages)
|
21
21
|
end
|
22
22
|
|
23
23
|
def remove_resource
|
@@ -26,7 +26,7 @@ module GraphqlDevise
|
|
26
26
|
if resource.errors.empty?
|
27
27
|
{ message: I18n.t('graphql_devise.passwords.send_instructions') }
|
28
28
|
else
|
29
|
-
raise_user_error_list(I18n.t('graphql_devise.invalid_resource'),
|
29
|
+
raise_user_error_list(I18n.t('graphql_devise.invalid_resource'), resource: resource)
|
30
30
|
end
|
31
31
|
else
|
32
32
|
raise_user_error(I18n.t('graphql_devise.user_not_found'))
|
@@ -4,7 +4,14 @@
|
|
4
4
|
require 'rails_helper'
|
5
5
|
require 'generators/graphql_devise/install_generator'
|
6
6
|
|
7
|
-
|
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
|
+
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:
|
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.
|
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.
|
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.
|
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.
|
73
|
+
version: '7.2'
|
74
74
|
- !ruby/object:Gem::Dependency
|
75
75
|
name: zeitwerk
|
76
76
|
requirement: !ruby/object:Gem::Requirement
|
@@ -326,6 +326,7 @@ files:
|
|
326
326
|
- bin/rails
|
327
327
|
- bin/setup
|
328
328
|
- config/locales/en.yml
|
329
|
+
- config/locales/pt-BR.yml
|
329
330
|
- config/routes.rb
|
330
331
|
- docs/usage/reset_password_flow.md
|
331
332
|
- graphql_devise.gemspec
|
@@ -528,7 +529,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
528
529
|
- !ruby/object:Gem::Version
|
529
530
|
version: '0'
|
530
531
|
requirements: []
|
531
|
-
rubygems_version: 3.
|
532
|
+
rubygems_version: 3.1.6
|
532
533
|
signing_key:
|
533
534
|
specification_version: 4
|
534
535
|
summary: GraphQL queries and mutations on top of devise_token_auth
|