graphql_devise 1.2.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.circleci/config.yml +17 -1
- data/Appraisals +27 -13
- data/CHANGELOG.md +19 -1
- data/config/locales/pt-BR.yml +40 -0
- data/graphql_devise.gemspec +1 -1
- 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
- metadata +6 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8f51f6bf7fe463ff0ea364fe89ba48c3d5823ee965f044b49c4417ea051e8ec1
|
|
4
|
+
data.tar.gz: d0d974ad589b3549d90764b9afe7841fe71ec9731f4bba2386d6f329e10d55ac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d914975173e11956b19e7c3591967e8332297b5f779e1e61088ee0f43a09348cbeba2514d1a91987562194e5c05d8a7b273a8a31eb208dc382a00cf65e56159d
|
|
7
|
+
data.tar.gz: c779b95176de43a738514eb1b4e06da6c30d4bb8bbf915d342e57ed6e57c733410e717e5777d0ebebd56a72d515b99dae67dd33c3246a0ae6ce11ee38f30cc27
|
data/.circleci/config.yml
CHANGED
|
@@ -39,7 +39,6 @@ workflows:
|
|
|
39
39
|
matrix:
|
|
40
40
|
parameters:
|
|
41
41
|
ruby-version:
|
|
42
|
-
- '2.4'
|
|
43
42
|
- '2.5'
|
|
44
43
|
- '2.6'
|
|
45
44
|
- '2.7'
|
|
@@ -65,6 +64,7 @@ workflows:
|
|
|
65
64
|
- gemfiles/rails7.0_graphql1.12.gemfile
|
|
66
65
|
- gemfiles/rails7.0_graphql1.13.gemfile
|
|
67
66
|
- gemfiles/rails7.0_graphql2.0.gemfile
|
|
67
|
+
- gemfiles/rails7.0_graphql2.1.gemfile
|
|
68
68
|
exclude:
|
|
69
69
|
- ruby-version: '2.4'
|
|
70
70
|
gemfile: gemfiles/rails6.0_graphql1.11.gemfile
|
|
@@ -88,6 +88,8 @@ workflows:
|
|
|
88
88
|
gemfile: gemfiles/rails7.0_graphql1.13.gemfile
|
|
89
89
|
- ruby-version: '2.4'
|
|
90
90
|
gemfile: gemfiles/rails7.0_graphql2.0.gemfile
|
|
91
|
+
- ruby-version: '2.4'
|
|
92
|
+
gemfile: gemfiles/rails7.0_graphql2.1.gemfile
|
|
91
93
|
- ruby-version: '2.5'
|
|
92
94
|
gemfile: gemfiles/rails7.0_graphql1.11.gemfile
|
|
93
95
|
- ruby-version: '2.5'
|
|
@@ -100,6 +102,18 @@ workflows:
|
|
|
100
102
|
gemfile: gemfiles/rails7.0_graphql1.13.gemfile
|
|
101
103
|
- ruby-version: '2.5'
|
|
102
104
|
gemfile: gemfiles/rails7.0_graphql2.0.gemfile
|
|
105
|
+
- ruby-version: '2.5'
|
|
106
|
+
gemfile: gemfiles/rails7.0_graphql2.1.gemfile
|
|
107
|
+
- ruby-version: '2.5'
|
|
108
|
+
gemfile: gemfiles/rails6.1_graphql2.0.gemfile
|
|
109
|
+
- ruby-version: '2.5'
|
|
110
|
+
gemfile: gemfiles/rails6.1_graphql1.12.gemfile
|
|
111
|
+
- ruby-version: '2.5'
|
|
112
|
+
gemfile: gemfiles/rails6.1_graphql1.11.gemfile
|
|
113
|
+
- ruby-version: '2.5'
|
|
114
|
+
gemfile: gemfiles/rails6.0_graphql1.12.gemfile
|
|
115
|
+
- ruby-version: '2.5'
|
|
116
|
+
gemfile: gemfiles/rails6.0_graphql1.11.gemfile
|
|
103
117
|
- ruby-version: '2.6'
|
|
104
118
|
gemfile: gemfiles/rails7.0_graphql1.11.gemfile
|
|
105
119
|
- ruby-version: '2.6'
|
|
@@ -108,6 +122,8 @@ workflows:
|
|
|
108
122
|
gemfile: gemfiles/rails7.0_graphql1.13.gemfile
|
|
109
123
|
- ruby-version: '2.6'
|
|
110
124
|
gemfile: gemfiles/rails7.0_graphql2.0.gemfile
|
|
125
|
+
- ruby-version: '2.6'
|
|
126
|
+
gemfile: gemfiles/rails7.0_graphql2.1.gemfile
|
|
111
127
|
- ruby-version: '2.7'
|
|
112
128
|
gemfile: gemfiles/rails4.2_graphql1.8.gemfile
|
|
113
129
|
- ruby-version: '3.0'
|
data/Appraisals
CHANGED
|
@@ -83,63 +83,68 @@ appraise 'rails5.2-graphql1.12' do
|
|
|
83
83
|
end
|
|
84
84
|
|
|
85
85
|
appraise 'rails6.0-graphql1.10' do
|
|
86
|
-
gem 'sqlite3', '~> 1.4'
|
|
86
|
+
gem 'sqlite3', '~> 1.5.4'
|
|
87
87
|
gem 'devise', '>= 4.7'
|
|
88
88
|
gem 'rails', git: 'https://github.com/rails/rails', branch: '6-0-stable'
|
|
89
89
|
gem 'graphql', '~> 1.10.0'
|
|
90
90
|
end
|
|
91
91
|
|
|
92
92
|
appraise 'rails6.0-graphql1.11' do
|
|
93
|
-
gem 'sqlite3', '~> 1.4'
|
|
93
|
+
gem 'sqlite3', '~> 1.5.4'
|
|
94
|
+
gem 'public_suffix', '< 5'
|
|
94
95
|
gem 'devise', '>= 4.7'
|
|
95
96
|
gem 'rails', git: 'https://github.com/rails/rails', branch: '6-0-stable'
|
|
96
97
|
gem 'graphql', '~> 1.11.0'
|
|
97
98
|
end
|
|
98
99
|
|
|
99
100
|
appraise 'rails6.0-graphql1.12' do
|
|
100
|
-
gem 'sqlite3', '~> 1.4'
|
|
101
|
+
gem 'sqlite3', '~> 1.5.4'
|
|
102
|
+
gem 'public_suffix', '< 5'
|
|
101
103
|
gem 'devise', '>= 4.7'
|
|
102
104
|
gem 'rails', git: 'https://github.com/rails/rails', branch: '6-0-stable'
|
|
103
105
|
gem 'graphql', '~> 1.12.0'
|
|
104
106
|
end
|
|
105
107
|
|
|
106
108
|
appraise 'rails6.0-graphql1.13' do
|
|
107
|
-
gem 'sqlite3', '~> 1.4'
|
|
109
|
+
gem 'sqlite3', '~> 1.5.4'
|
|
108
110
|
gem 'devise', '>= 4.7'
|
|
109
111
|
gem 'rails', git: 'https://github.com/rails/rails', branch: '6-0-stable'
|
|
110
112
|
gem 'graphql', '~> 1.13.0'
|
|
111
113
|
end
|
|
112
114
|
|
|
113
115
|
appraise 'rails6.1-graphql1.10' do
|
|
114
|
-
gem 'sqlite3', '~> 1.4'
|
|
116
|
+
gem 'sqlite3', '~> 1.5.4'
|
|
115
117
|
gem 'devise', '>= 4.7'
|
|
116
118
|
gem 'rails', git: 'https://github.com/rails/rails', branch: '6-1-stable'
|
|
117
119
|
gem 'graphql', '~> 1.10.0'
|
|
118
120
|
end
|
|
119
121
|
|
|
120
122
|
appraise 'rails6.1-graphql1.11' do
|
|
121
|
-
gem 'sqlite3', '~> 1.4'
|
|
123
|
+
gem 'sqlite3', '~> 1.5.4'
|
|
124
|
+
gem 'public_suffix', '< 5'
|
|
122
125
|
gem 'devise', '>= 4.7'
|
|
123
126
|
gem 'rails', git: 'https://github.com/rails/rails', branch: '6-1-stable'
|
|
124
127
|
gem 'graphql', '~> 1.11.0'
|
|
125
128
|
end
|
|
126
129
|
|
|
127
130
|
appraise 'rails6.1-graphql1.12' do
|
|
128
|
-
gem 'sqlite3', '~> 1.4'
|
|
131
|
+
gem 'sqlite3', '~> 1.5.4'
|
|
132
|
+
gem 'public_suffix', '< 5'
|
|
129
133
|
gem 'devise', '>= 4.7'
|
|
130
134
|
gem 'rails', git: 'https://github.com/rails/rails', branch: '6-1-stable'
|
|
131
135
|
gem 'graphql', '~> 1.12.0'
|
|
132
136
|
end
|
|
133
137
|
|
|
134
138
|
appraise 'rails6.1-graphql1.13' do
|
|
135
|
-
gem 'sqlite3', '~> 1.4'
|
|
139
|
+
gem 'sqlite3', '~> 1.5.4'
|
|
136
140
|
gem 'devise', '>= 4.7'
|
|
137
141
|
gem 'rails', git: 'https://github.com/rails/rails', branch: '6-1-stable'
|
|
138
142
|
gem 'graphql', '~> 1.13.0'
|
|
139
143
|
end
|
|
140
144
|
|
|
141
145
|
appraise 'rails6.1-graphql2.0' do
|
|
142
|
-
gem '
|
|
146
|
+
gem 'public_suffix', '< 5'
|
|
147
|
+
gem 'sqlite3', '~> 1.5.4'
|
|
143
148
|
gem 'devise', '>= 4.7'
|
|
144
149
|
gem 'rails', git: 'https://github.com/rails/rails', branch: '6-1-stable'
|
|
145
150
|
gem 'graphql', '~> 2.0.1'
|
|
@@ -147,7 +152,7 @@ end
|
|
|
147
152
|
|
|
148
153
|
appraise 'rails7.0-graphql1.11' do
|
|
149
154
|
gem 'sassc-rails'
|
|
150
|
-
gem 'sqlite3', '~> 1.4'
|
|
155
|
+
gem 'sqlite3', '~> 1.5.4'
|
|
151
156
|
gem 'devise', '>= 4.7'
|
|
152
157
|
gem 'devise_token_auth', '>= 1.2.1'
|
|
153
158
|
gem 'rails', git: 'https://github.com/rails/rails', branch: '7-0-stable'
|
|
@@ -156,7 +161,7 @@ end
|
|
|
156
161
|
|
|
157
162
|
appraise 'rails7.0-graphql1.12' do
|
|
158
163
|
gem 'sassc-rails'
|
|
159
|
-
gem 'sqlite3', '~> 1.4'
|
|
164
|
+
gem 'sqlite3', '~> 1.5.4'
|
|
160
165
|
gem 'devise', '>= 4.7'
|
|
161
166
|
gem 'devise_token_auth', '>= 1.2.1'
|
|
162
167
|
gem 'rails', git: 'https://github.com/rails/rails', branch: '7-0-stable'
|
|
@@ -165,7 +170,7 @@ end
|
|
|
165
170
|
|
|
166
171
|
appraise 'rails7.0-graphql1.13' do
|
|
167
172
|
gem 'sassc-rails'
|
|
168
|
-
gem 'sqlite3', '~> 1.4'
|
|
173
|
+
gem 'sqlite3', '~> 1.5.4'
|
|
169
174
|
gem 'devise', '>= 4.7'
|
|
170
175
|
gem 'devise_token_auth', '>= 1.2.1'
|
|
171
176
|
gem 'rails', git: 'https://github.com/rails/rails', branch: '7-0-stable'
|
|
@@ -174,9 +179,18 @@ end
|
|
|
174
179
|
|
|
175
180
|
appraise 'rails7.0-graphql2.0' do
|
|
176
181
|
gem 'sassc-rails'
|
|
177
|
-
gem 'sqlite3', '~> 1.4'
|
|
182
|
+
gem 'sqlite3', '~> 1.5.4'
|
|
178
183
|
gem 'devise_token_auth', '>= 1.2.1'
|
|
179
184
|
gem 'devise', '>= 4.7'
|
|
180
185
|
gem 'rails', git: 'https://github.com/rails/rails', branch: '7-0-stable'
|
|
181
186
|
gem 'graphql', '~> 2.0.1'
|
|
182
187
|
end
|
|
188
|
+
|
|
189
|
+
appraise 'rails7.0-graphql2.1' do
|
|
190
|
+
gem 'sassc-rails'
|
|
191
|
+
gem 'sqlite3', '~> 1.5.4'
|
|
192
|
+
gem 'devise_token_auth', '>= 1.2.1'
|
|
193
|
+
gem 'devise', '>= 4.7'
|
|
194
|
+
gem 'rails', git: 'https://github.com/rails/rails', branch: '7-0-stable'
|
|
195
|
+
gem 'graphql', '>= 2.1', '< 2.2'
|
|
196
|
+
end
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [v1.
|
|
3
|
+
## [v1.4.0](https://github.com/graphql-devise/graphql_devise/tree/v1.4.0) (2023-10-30)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/graphql-devise/graphql_devise/compare/v1.3.0...v1.4.0)
|
|
6
|
+
|
|
7
|
+
**Implemented enhancements:**
|
|
8
|
+
|
|
9
|
+
- Add ability to customize raise\_user\_error\_list method [\#262](https://github.com/graphql-devise/graphql_devise/issues/262)
|
|
10
|
+
- Allow defining a custom raise\_user\_error\_list method [\#263](https://github.com/graphql-devise/graphql_devise/pull/263) ([mcelicalderon](https://github.com/mcelicalderon))
|
|
11
|
+
- Create pt-BR.yml [\#260](https://github.com/graphql-devise/graphql_devise/pull/260) ([celsoMartins](https://github.com/celsoMartins))
|
|
12
|
+
|
|
13
|
+
## [v1.3.0](https://github.com/graphql-devise/graphql_devise/tree/v1.3.0) (2023-09-01)
|
|
14
|
+
|
|
15
|
+
[Full Changelog](https://github.com/graphql-devise/graphql_devise/compare/v1.2.0...v1.3.0)
|
|
16
|
+
|
|
17
|
+
**Implemented enhancements:**
|
|
18
|
+
|
|
19
|
+
- Support graphql v2.1 [\#257](https://github.com/graphql-devise/graphql_devise/pull/257) ([mcelicalderon](https://github.com/mcelicalderon))
|
|
20
|
+
|
|
21
|
+
## [v1.2.0](https://github.com/graphql-devise/graphql_devise/tree/v1.2.0) (2022-11-21)
|
|
4
22
|
|
|
5
23
|
[Full Changelog](https://github.com/graphql-devise/graphql_devise/compare/v1.1.1...v1.2.0)
|
|
6
24
|
|
|
@@ -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,7 +28,7 @@ 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.
|
|
31
|
+
spec.add_dependency 'graphql', '>= 1.8', '< 2.2'
|
|
32
32
|
spec.add_dependency 'rails', '>= 4.2', '< 7.1'
|
|
33
33
|
spec.add_dependency 'zeitwerk'
|
|
34
34
|
|
|
@@ -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'))
|
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.4.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: 2023-10-30 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.2'
|
|
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.2'
|
|
54
54
|
- !ruby/object:Gem::Dependency
|
|
55
55
|
name: rails
|
|
56
56
|
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
|