decidim-verifications 0.31.5 → 0.32.0.rc2
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/README.md +7 -13
- data/app/controllers/concerns/decidim/verifications/renewable.rb +1 -0
- data/app/controllers/decidim/verifications/application_controller.rb +2 -3
- data/app/controllers/decidim/verifications/authorizations_controller.rb +4 -3
- data/app/controllers/decidim/verifications/csv_census/admin/census_records_controller.rb +2 -2
- data/app/controllers/decidim/verifications/id_documents/admin/config_controller.rb +1 -1
- data/app/controllers/decidim/verifications/id_documents/admin/confirmations_controller.rb +1 -1
- data/app/controllers/decidim/verifications/id_documents/admin/offline_confirmations_controller.rb +1 -1
- data/app/controllers/decidim/verifications/id_documents/authorizations_controller.rb +2 -2
- data/app/controllers/decidim/verifications/postal_letter/admin/postages_controller.rb +1 -1
- data/app/controllers/decidim/verifications/postal_letter/authorizations_controller.rb +2 -2
- data/app/controllers/decidim/verifications/sms/authorizations_controller.rb +2 -2
- data/app/forms/decidim/verifications/csv_census/admin/census_data_form.rb +1 -0
- data/app/forms/decidim/verifications/id_documents/admin/config_form.rb +1 -0
- data/app/views/decidim/verifications/csv_census/admin/census/index.html.erb +2 -2
- data/app/views/decidim/verifications/csv_census/admin/census/instructions.html.erb +4 -3
- data/app/views/decidim/verifications/id_documents/admin/confirmations/new.html.erb +2 -2
- data/app/views/decidim/verifications/id_documents/admin/offline_confirmations/new.html.erb +2 -2
- data/app/views/dummy_authorization/_form.html.erb +3 -3
- data/config/locales/ca-IT.yml +6 -6
- data/config/locales/ca.yml +6 -6
- data/config/locales/en.yml +6 -6
- data/config/locales/es-MX.yml +6 -6
- data/config/locales/es-PY.yml +6 -6
- data/config/locales/es.yml +6 -6
- data/config/locales/eu.yml +6 -6
- data/config/locales/fi-plain.yml +6 -6
- data/config/locales/fi.yml +6 -6
- data/config/locales/ja.yml +6 -6
- data/config/locales/pt-BR.yml +2 -2
- data/config/locales/sk.yml +6 -6
- data/decidim-verifications.gemspec +7 -8
- data/lib/decidim/verifications/adapter.rb +12 -1
- data/lib/decidim/verifications/engine.rb +11 -3
- data/lib/decidim/verifications/version.rb +1 -1
- data/lib/decidim/verifications.rb +8 -3
- metadata +10 -13
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0a089621f508e213d6a183ad2303add7d32b6d86882b0694dc19f3e2b6c4a876
|
|
4
|
+
data.tar.gz: 7261ba41f5f9668526f69d3e9d0566ee6b3122a43e69272ba3e2607394083620
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fc79c6a29d55bac55c9fdfa0bea5b1c4f1f2bc55f73cf74bd498df70c2c46a44340c9f0f4dc375d8f8d29e437197133557823a29087d8bf5faa3d9f7b850d2ae
|
|
7
|
+
data.tar.gz: 1312888f79644951dae97a4dec8bc9b503944e8dfc3fb1e600f215470efaa95224eee55cb850723ae0ed5c40c276608042707de9d4628c1412de3c1942e3d1ca
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# decidim-verifications
|
|
2
2
|
|
|
3
3
|
Decidim offers several methods for allowing participants to get authorization to
|
|
4
4
|
perform certain privileged actions. This module implements several of those methods
|
|
@@ -23,6 +23,10 @@ There are several use cases for this, such as
|
|
|
23
23
|
Right now Decidim supports only a few of these cases, but we have an internal
|
|
24
24
|
API where you can program your own kind of authorizations.
|
|
25
25
|
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
This is a module oriented for developers, as a building block to be used by other modules.
|
|
29
|
+
|
|
26
30
|
## Introduction
|
|
27
31
|
|
|
28
32
|
Each decidim instance is in full control of its authorizations, and can customize:
|
|
@@ -151,7 +155,7 @@ In order to setup Decidim with SMS verification you need to:
|
|
|
151
155
|
Keep in mind that Decidim will not store a free text version of the mobile phone, only a hashed
|
|
152
156
|
version so we can avoid duplicates and guarantee the users' privacy.
|
|
153
157
|
|
|
154
|
-
You can find an example [
|
|
158
|
+
You can find an example in the [example SMS gateway implementation][example SMS gateway].
|
|
155
159
|
|
|
156
160
|
## Authorization options
|
|
157
161
|
|
|
@@ -243,17 +247,7 @@ authorization.
|
|
|
243
247
|
|
|
244
248
|
## Installation
|
|
245
249
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
```ruby
|
|
249
|
-
gem 'decidim-verifications'
|
|
250
|
-
```
|
|
251
|
-
|
|
252
|
-
And then execute:
|
|
253
|
-
|
|
254
|
-
```bash
|
|
255
|
-
bundle
|
|
256
|
-
```
|
|
250
|
+
This is on the default Decidim installation so you should not change anything to use this feature.
|
|
257
251
|
|
|
258
252
|
## Contributing
|
|
259
253
|
|
|
@@ -27,9 +27,8 @@ module Decidim
|
|
|
27
27
|
def confirmed_user
|
|
28
28
|
return true if !current_user || (current_user && current_user.verifiable?)
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
alert: t(
|
|
30
|
+
redirect_back_or_to(
|
|
31
|
+
root_path, alert: t(
|
|
33
32
|
"authorizations.create.unconfirmed",
|
|
34
33
|
scope: "decidim.verifications"
|
|
35
34
|
)
|
|
@@ -14,6 +14,7 @@ module Decidim
|
|
|
14
14
|
include Decidim::UserProfile
|
|
15
15
|
include Decidim::HtmlSafeFlash
|
|
16
16
|
include Decidim::Verifications::Renewable
|
|
17
|
+
|
|
17
18
|
helper Decidim::DecidimFormHelper
|
|
18
19
|
helper Decidim::AuthorizationFormHelper
|
|
19
20
|
helper Decidim::TranslationsHelper
|
|
@@ -25,7 +26,7 @@ module Decidim
|
|
|
25
26
|
def index; end
|
|
26
27
|
|
|
27
28
|
def onboarding_pending
|
|
28
|
-
return
|
|
29
|
+
return redirect_back_or_to(authorizations_path) unless onboarding_manager.valid?
|
|
29
30
|
|
|
30
31
|
authorizations = action_authorized_to(onboarding_manager.action, **onboarding_manager.action_authorized_resources)
|
|
31
32
|
|
|
@@ -86,7 +87,7 @@ module Decidim
|
|
|
86
87
|
|
|
87
88
|
on(:invalid) do
|
|
88
89
|
flash[:alert] = t("authorizations.create.error", scope: "decidim.verifications")
|
|
89
|
-
render action: :new, status: :
|
|
90
|
+
render action: :new, status: :unprocessable_content
|
|
90
91
|
end
|
|
91
92
|
end
|
|
92
93
|
end
|
|
@@ -151,7 +152,7 @@ module Decidim
|
|
|
151
152
|
authorizations = action_authorized_to(onboarding_manager.action, **onboarding_manager.action_authorized_resources)
|
|
152
153
|
return unless authorizations.ephemeral?
|
|
153
154
|
|
|
154
|
-
form = Decidim::EphemeralUserForm.new(organization: current_organization
|
|
155
|
+
form = Decidim::EphemeralUserForm.new(organization: current_organization)
|
|
155
156
|
CreateEphemeralUser.call(form) do
|
|
156
157
|
on(:ok) do |ephemeral_user|
|
|
157
158
|
sign_in(ephemeral_user)
|
|
@@ -26,7 +26,7 @@ module Decidim
|
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
on(:invalid) do
|
|
29
|
-
render :new_record, status: :
|
|
29
|
+
render :new_record, status: :unprocessable_content
|
|
30
30
|
end
|
|
31
31
|
end
|
|
32
32
|
end
|
|
@@ -50,7 +50,7 @@ module Decidim
|
|
|
50
50
|
|
|
51
51
|
on(:invalid) do
|
|
52
52
|
flash.now[:alert] = I18n.t("census_records.update_record.invalid", scope: "decidim.verifications.csv_census.admin")
|
|
53
|
-
render action: "edit_record", status: :
|
|
53
|
+
render action: "edit_record", status: :unprocessable_content
|
|
54
54
|
end
|
|
55
55
|
end
|
|
56
56
|
end
|
|
@@ -33,7 +33,7 @@ module Decidim
|
|
|
33
33
|
|
|
34
34
|
on(:invalid) do
|
|
35
35
|
flash.now[:alert] = t("config.update.error", scope: "decidim.verifications.id_documents.admin")
|
|
36
|
-
render action: :edit, status: :
|
|
36
|
+
render action: :edit, status: :unprocessable_content
|
|
37
37
|
end
|
|
38
38
|
end
|
|
39
39
|
end
|
|
@@ -36,7 +36,7 @@ module Decidim
|
|
|
36
36
|
|
|
37
37
|
on(:invalid) do
|
|
38
38
|
flash.now[:alert] = t("confirmations.create.error", scope: "decidim.verifications.id_documents.admin")
|
|
39
|
-
render action: :new, status: :
|
|
39
|
+
render action: :new, status: :unprocessable_content
|
|
40
40
|
end
|
|
41
41
|
end
|
|
42
42
|
end
|
data/app/controllers/decidim/verifications/id_documents/admin/offline_confirmations_controller.rb
CHANGED
|
@@ -33,7 +33,7 @@ module Decidim
|
|
|
33
33
|
|
|
34
34
|
on(:invalid) do
|
|
35
35
|
flash.now[:alert] = t("offline_confirmations.create.error", scope: "decidim.verifications.id_documents.admin")
|
|
36
|
-
render action: :new, status: :
|
|
36
|
+
render action: :new, status: :unprocessable_content
|
|
37
37
|
end
|
|
38
38
|
end
|
|
39
39
|
end
|
|
@@ -42,7 +42,7 @@ module Decidim
|
|
|
42
42
|
|
|
43
43
|
on(:invalid) do
|
|
44
44
|
flash.now[:alert] = t("authorizations.create.error", scope: "decidim.verifications.id_documents")
|
|
45
|
-
render action: :new, status: :
|
|
45
|
+
render action: :new, status: :unprocessable_content
|
|
46
46
|
end
|
|
47
47
|
end
|
|
48
48
|
end
|
|
@@ -72,7 +72,7 @@ module Decidim
|
|
|
72
72
|
|
|
73
73
|
on(:invalid) do
|
|
74
74
|
flash.now[:alert] = t("authorizations.update.error", scope: "decidim.verifications.id_documents")
|
|
75
|
-
render action: :edit, status: :
|
|
75
|
+
render action: :edit, status: :unprocessable_content
|
|
76
76
|
end
|
|
77
77
|
end
|
|
78
78
|
end
|
|
@@ -29,7 +29,7 @@ module Decidim
|
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
on(:invalid) do
|
|
32
|
-
render json: { error: I18n.t("postages.create.error", scope: "decidim.verifications.postal_letter.admin") }, status: :
|
|
32
|
+
render json: { error: I18n.t("postages.create.error", scope: "decidim.verifications.postal_letter.admin") }, status: :unprocessable_content
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
35
|
end
|
|
@@ -29,7 +29,7 @@ module Decidim
|
|
|
29
29
|
|
|
30
30
|
on(:invalid) do
|
|
31
31
|
flash.now[:alert] = t("authorizations.create.error", scope: "decidim.verifications.postal_letter")
|
|
32
|
-
render :new, status: :
|
|
32
|
+
render :new, status: :unprocessable_content
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
35
|
end
|
|
@@ -53,7 +53,7 @@ module Decidim
|
|
|
53
53
|
|
|
54
54
|
on(:invalid) do
|
|
55
55
|
flash.now[:alert] = t("authorizations.update.error", scope: "decidim.verifications.postal_letter")
|
|
56
|
-
render :edit, status: :
|
|
56
|
+
render :edit, status: :unprocessable_content
|
|
57
57
|
end
|
|
58
58
|
end
|
|
59
59
|
end
|
|
@@ -27,7 +27,7 @@ module Decidim
|
|
|
27
27
|
end
|
|
28
28
|
on(:invalid) do
|
|
29
29
|
flash.now[:alert] = t("authorizations.create.error", scope: "decidim.verifications.sms")
|
|
30
|
-
render :new, status: :
|
|
30
|
+
render :new, status: :unprocessable_content
|
|
31
31
|
end
|
|
32
32
|
end
|
|
33
33
|
end
|
|
@@ -52,7 +52,7 @@ module Decidim
|
|
|
52
52
|
|
|
53
53
|
on(:invalid) do
|
|
54
54
|
flash.now[:alert] = t("authorizations.update.error", scope: "decidim.verifications.sms")
|
|
55
|
-
render :edit, status: :
|
|
55
|
+
render :edit, status: :unprocessable_content
|
|
56
56
|
end
|
|
57
57
|
end
|
|
58
58
|
end
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
<% add_decidim_page_title(t("
|
|
1
|
+
<% add_decidim_page_title(t(".title")) %>
|
|
2
2
|
|
|
3
3
|
<div class="card">
|
|
4
4
|
<div class="item_show__header item_show__header--with-action-options">
|
|
5
5
|
<h1 class="item_show__header-title">
|
|
6
|
-
<%= t("
|
|
6
|
+
<%= t(".title") %>
|
|
7
7
|
<%= link_to t("index.import_csv", scope: "decidim.verifications.csv_census.admin"), new_import_census_logs_path, method: :get, class: "button button__sm button__transparent-secondary" %>
|
|
8
8
|
<button type="button" data-action="csv_census-record" data-census-dialog="census_drawer" data-census-url="<%= new_record_census_logs_path %>" class="button button__sm button__secondary">
|
|
9
9
|
<%= t("index.add_new_record_button", scope: "decidim.verifications.csv_census.admin") %>
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
<% add_decidim_page_title(t("
|
|
1
|
+
<% add_decidim_page_title(t(".title")) %>
|
|
2
|
+
|
|
2
3
|
<div class="card">
|
|
3
4
|
<div class="item_show__header">
|
|
4
5
|
<h1 class="item_show__header-title">
|
|
5
|
-
<%= t("
|
|
6
|
+
<%= t(".title") %>
|
|
6
7
|
</h1>
|
|
7
8
|
</div>
|
|
8
9
|
<div class="card-section">
|
|
9
|
-
<p><%= t("
|
|
10
|
+
<p><%= t(".body") %></p>
|
|
10
11
|
</div>
|
|
11
12
|
</div>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
<% add_decidim_page_title(t(".
|
|
1
|
+
<% add_decidim_page_title(t(".title")) %>
|
|
2
2
|
|
|
3
3
|
<div class="item_show__header">
|
|
4
4
|
<h1 class="item_show__header-title">
|
|
5
|
-
<%= t(".
|
|
5
|
+
<%= t(".title") %>
|
|
6
6
|
<%= link_to t(".reject"), pending_authorization_rejection_path(@pending_authorization), method: :post, class: "button button__sm button__secondary alert button--title destroy" %>
|
|
7
7
|
</h1>
|
|
8
8
|
</div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<% if request["postal_codes"].present?
|
|
2
|
-
postal_codes = request["postal_codes"].split(",") %>
|
|
3
|
-
<p><%= t("extra_explanation.postal_codes", scope: "decidim.verifications.dummy_authorization", postal_codes: postal_codes.join(", "), count: postal_codes.count, user_postal_code: request["user_postal_code"]) %></p>
|
|
1
|
+
<% if request.params["postal_codes"].present?
|
|
2
|
+
postal_codes = request.params["postal_codes"].split(",") %>
|
|
3
|
+
<p><%= t("extra_explanation.postal_codes", scope: "decidim.verifications.dummy_authorization", postal_codes: postal_codes.join(", "), count: postal_codes.count, user_postal_code: request.params["user_postal_code"]) %></p>
|
|
4
4
|
<% end %>
|
|
5
5
|
|
|
6
6
|
<div class="form__wrapper" data-partial-demo>
|
data/config/locales/ca-IT.yml
CHANGED
|
@@ -184,6 +184,10 @@ ca-IT:
|
|
|
184
184
|
empty: No hi ha dades del cens. Utilitza %{import_csv} per importar-lo mitjançant un fitxer CSV.
|
|
185
185
|
no_sign_in: Mai no ha iniciat sessió
|
|
186
186
|
no_user: No s'ha trobat cap usuària
|
|
187
|
+
title: Dades censals actuals
|
|
188
|
+
instructions:
|
|
189
|
+
body: Per fer-ho, has d'entrar al panell d'administració i afegir les autoritzacions de "csv_census" a l'organització
|
|
190
|
+
title: Necessites activar el "csv_census" d'aquesta organització
|
|
187
191
|
last_login:
|
|
188
192
|
no_sign_in: Mai no ha iniciat sessió
|
|
189
193
|
no_user: Cap usuària
|
|
@@ -221,10 +225,6 @@ ca-IT:
|
|
|
221
225
|
user_authorized: Usuària autoritzada?
|
|
222
226
|
import_csv: Importar CSV
|
|
223
227
|
no_authorized: Usuària no actualitzada
|
|
224
|
-
title: Dades censals actuals
|
|
225
|
-
instructions:
|
|
226
|
-
body: Per fer-ho, has d'entrar al panell d'administració i afegir les autoritzacions de "csv_census" a l'organització
|
|
227
|
-
title: Necessites activar el "csv_census" d'aquesta organització
|
|
228
228
|
authorizations:
|
|
229
229
|
new:
|
|
230
230
|
error: No hem pogut verificar el teu compte o no estàs al cens de l'organització.
|
|
@@ -255,8 +255,8 @@ ca-IT:
|
|
|
255
255
|
error: La verificació no coincideix. Si us plau, torna-ho a provar o rebutja la verificació perquè la participant pugui modificar-la.
|
|
256
256
|
success: Participant convidada correctament.
|
|
257
257
|
new:
|
|
258
|
-
introduce_user_data: Introdueix les dades que apareixen a la imatge
|
|
259
258
|
reject: Rebutjar
|
|
259
|
+
title: Introdueix les dades que apareixen a la imatge
|
|
260
260
|
verify: Verificar
|
|
261
261
|
offline_confirmations:
|
|
262
262
|
create:
|
|
@@ -264,7 +264,7 @@ ca-IT:
|
|
|
264
264
|
success: Participant verificada correctament.
|
|
265
265
|
new:
|
|
266
266
|
cancel: Cancel·lar
|
|
267
|
-
|
|
267
|
+
title: Introdueix el correu electrònic de la participant i les dades del document
|
|
268
268
|
verify: Verificar
|
|
269
269
|
pending_authorizations:
|
|
270
270
|
index:
|
data/config/locales/ca.yml
CHANGED
|
@@ -184,6 +184,10 @@ ca:
|
|
|
184
184
|
empty: No hi ha dades del cens. Utilitza %{import_csv} per importar-lo mitjançant un fitxer CSV.
|
|
185
185
|
no_sign_in: Mai no ha iniciat sessió
|
|
186
186
|
no_user: No s'ha trobat cap usuària
|
|
187
|
+
title: Dades censals actuals
|
|
188
|
+
instructions:
|
|
189
|
+
body: Per fer-ho, has d'entrar al panell d'administració i afegir les autoritzacions de "csv_census" a l'organització
|
|
190
|
+
title: Necessites activar el "csv_census" d'aquesta organització
|
|
187
191
|
last_login:
|
|
188
192
|
no_sign_in: Mai no ha iniciat sessió
|
|
189
193
|
no_user: Cap usuària
|
|
@@ -221,10 +225,6 @@ ca:
|
|
|
221
225
|
user_authorized: Usuària autoritzada?
|
|
222
226
|
import_csv: Importar CSV
|
|
223
227
|
no_authorized: Usuària no actualitzada
|
|
224
|
-
title: Dades censals actuals
|
|
225
|
-
instructions:
|
|
226
|
-
body: Per fer-ho, has d'entrar al panell d'administració i afegir les autoritzacions de "csv_census" a l'organització
|
|
227
|
-
title: Necessites activar el "csv_census" d'aquesta organització
|
|
228
228
|
authorizations:
|
|
229
229
|
new:
|
|
230
230
|
error: No hem pogut verificar el teu compte o no estàs al cens de l'organització.
|
|
@@ -255,8 +255,8 @@ ca:
|
|
|
255
255
|
error: La verificació no coincideix. Si us plau, torna-ho a provar o rebutja la verificació perquè la participant pugui modificar-la.
|
|
256
256
|
success: Participant convidada correctament.
|
|
257
257
|
new:
|
|
258
|
-
introduce_user_data: Introdueix les dades que apareixen a la imatge
|
|
259
258
|
reject: Rebutjar
|
|
259
|
+
title: Introdueix les dades que apareixen a la imatge
|
|
260
260
|
verify: Verificar
|
|
261
261
|
offline_confirmations:
|
|
262
262
|
create:
|
|
@@ -264,7 +264,7 @@ ca:
|
|
|
264
264
|
success: Participant verificada correctament.
|
|
265
265
|
new:
|
|
266
266
|
cancel: Cancel·lar
|
|
267
|
-
|
|
267
|
+
title: Introdueix el correu electrònic de la participant i les dades del document
|
|
268
268
|
verify: Verificar
|
|
269
269
|
pending_authorizations:
|
|
270
270
|
index:
|
data/config/locales/en.yml
CHANGED
|
@@ -184,6 +184,10 @@ en:
|
|
|
184
184
|
empty: There are no census data. Use %{import_csv} to import a CSV file.
|
|
185
185
|
no_sign_in: Never signed in
|
|
186
186
|
no_user: No user found
|
|
187
|
+
title: Current census data
|
|
188
|
+
instructions:
|
|
189
|
+
body: To do this you must enter system administration and add the csv_census authorizations to the organization
|
|
190
|
+
title: You need to activate the CSV census for this organization
|
|
187
191
|
last_login:
|
|
188
192
|
no_sign_in: Never signed in
|
|
189
193
|
no_user: No user
|
|
@@ -221,10 +225,6 @@ en:
|
|
|
221
225
|
user_authorized: User authorized?
|
|
222
226
|
import_csv: Import CSV
|
|
223
227
|
no_authorized: User unauthorized
|
|
224
|
-
title: Current census data
|
|
225
|
-
instructions:
|
|
226
|
-
body: To do this you must enter system administration and add the csv_census authorizations to the organization
|
|
227
|
-
title: You need to activate the CSV census for this organization
|
|
228
228
|
authorizations:
|
|
229
229
|
new:
|
|
230
230
|
error: We could not verify your account or you are not in the organization's census.
|
|
@@ -255,8 +255,8 @@ en:
|
|
|
255
255
|
error: Verification does not match. Please try again or reject the verification so the participant can amend it.
|
|
256
256
|
success: Participant successfully verified.
|
|
257
257
|
new:
|
|
258
|
-
introduce_user_data: Introduce the data in the picture
|
|
259
258
|
reject: Reject
|
|
259
|
+
title: Introduce the data in the picture
|
|
260
260
|
verify: Verify
|
|
261
261
|
offline_confirmations:
|
|
262
262
|
create:
|
|
@@ -264,7 +264,7 @@ en:
|
|
|
264
264
|
success: Participant successfully verified.
|
|
265
265
|
new:
|
|
266
266
|
cancel: Cancel
|
|
267
|
-
|
|
267
|
+
title: Introduce the participant email and the document data
|
|
268
268
|
verify: Verify
|
|
269
269
|
pending_authorizations:
|
|
270
270
|
index:
|
data/config/locales/es-MX.yml
CHANGED
|
@@ -184,6 +184,10 @@ es-MX:
|
|
|
184
184
|
empty: No hay datos del censo. Utiliza %{import_csv} para importarlo usando un archivo CSV.
|
|
185
185
|
no_sign_in: Nunca ha iniciado sesión
|
|
186
186
|
no_user: No se ha encontrado ninguna usuaria
|
|
187
|
+
title: Datos censales actuales
|
|
188
|
+
instructions:
|
|
189
|
+
body: Para ello, debes acceder a la administración del sistema y añadir las autorizaciones "csv_census" a la organización
|
|
190
|
+
title: Necesitas activar el "csv_census" para esta organización
|
|
187
191
|
last_login:
|
|
188
192
|
no_sign_in: Nunca ha iniciado sesión
|
|
189
193
|
no_user: Ninguna usuaria
|
|
@@ -221,10 +225,6 @@ es-MX:
|
|
|
221
225
|
user_authorized: '¿Usuaria autorizada?'
|
|
222
226
|
import_csv: Importar CSV
|
|
223
227
|
no_authorized: Usuaria no autorizada
|
|
224
|
-
title: Datos censales actuales
|
|
225
|
-
instructions:
|
|
226
|
-
body: Para ello, debes acceder a la administración del sistema y añadir las autorizaciones "csv_census" a la organización
|
|
227
|
-
title: Necesitas activar el "csv_census" para esta organización
|
|
228
228
|
authorizations:
|
|
229
229
|
new:
|
|
230
230
|
error: No pudimos verificar su cuenta o usted no está en el censo de la organización.
|
|
@@ -255,8 +255,8 @@ es-MX:
|
|
|
255
255
|
error: La verificación no coincide. Por favor inténtalo de nuevo o rechaza la verificación para que la participante pueda modificarla.
|
|
256
256
|
success: Participante verificada correctamente.
|
|
257
257
|
new:
|
|
258
|
-
introduce_user_data: Introduce los datos que aparecen en la imagen
|
|
259
258
|
reject: Rechazar
|
|
259
|
+
title: Introduce los datos que aparecen en la imagen
|
|
260
260
|
verify: Verificar
|
|
261
261
|
offline_confirmations:
|
|
262
262
|
create:
|
|
@@ -264,7 +264,7 @@ es-MX:
|
|
|
264
264
|
success: Participante verificada correctamente.
|
|
265
265
|
new:
|
|
266
266
|
cancel: Cancelar
|
|
267
|
-
|
|
267
|
+
title: Introduce el correo electrónico de la participante y los datos del documento
|
|
268
268
|
verify: Verificar
|
|
269
269
|
pending_authorizations:
|
|
270
270
|
index:
|
data/config/locales/es-PY.yml
CHANGED
|
@@ -184,6 +184,10 @@ es-PY:
|
|
|
184
184
|
empty: No hay datos del censo. Utiliza %{import_csv} para importarlo usando un archivo CSV.
|
|
185
185
|
no_sign_in: Nunca ha iniciado sesión
|
|
186
186
|
no_user: No se ha encontrado ninguna usuaria
|
|
187
|
+
title: Datos censales actuales
|
|
188
|
+
instructions:
|
|
189
|
+
body: Para ello, debes acceder a la administración del sistema y añadir las autorizaciones "csv_census" a la organización
|
|
190
|
+
title: Necesitas activar el "csv_census" para esta organización
|
|
187
191
|
last_login:
|
|
188
192
|
no_sign_in: Nunca ha iniciado sesión
|
|
189
193
|
no_user: Ninguna usuaria
|
|
@@ -221,10 +225,6 @@ es-PY:
|
|
|
221
225
|
user_authorized: '¿Usuaria autorizada?'
|
|
222
226
|
import_csv: Importar CSV
|
|
223
227
|
no_authorized: Usuaria no autorizada
|
|
224
|
-
title: Datos censales actuales
|
|
225
|
-
instructions:
|
|
226
|
-
body: Para ello, debes acceder a la administración del sistema y añadir las autorizaciones "csv_census" a la organización
|
|
227
|
-
title: Necesitas activar el "csv_census" para esta organización
|
|
228
228
|
authorizations:
|
|
229
229
|
new:
|
|
230
230
|
error: No pudimos verificar su cuenta o usted no está en el censo de la organización.
|
|
@@ -255,8 +255,8 @@ es-PY:
|
|
|
255
255
|
error: La verificación no coincide. Por favor inténtalo de nuevo o rechaza la verificación para que la participante pueda modificarla.
|
|
256
256
|
success: Participante verificada correctamente.
|
|
257
257
|
new:
|
|
258
|
-
introduce_user_data: Introduce los datos que aparecen en la imagen
|
|
259
258
|
reject: Rechazar
|
|
259
|
+
title: Introduce los datos que aparecen en la imagen
|
|
260
260
|
verify: Verificar
|
|
261
261
|
offline_confirmations:
|
|
262
262
|
create:
|
|
@@ -264,7 +264,7 @@ es-PY:
|
|
|
264
264
|
success: Participante verificada correctamente.
|
|
265
265
|
new:
|
|
266
266
|
cancel: Cancelar
|
|
267
|
-
|
|
267
|
+
title: Introduce el correo electrónico de la participante y los datos del documento
|
|
268
268
|
verify: Verificar
|
|
269
269
|
pending_authorizations:
|
|
270
270
|
index:
|
data/config/locales/es.yml
CHANGED
|
@@ -184,6 +184,10 @@ es:
|
|
|
184
184
|
empty: No hay datos del censo. Utiliza %{import_csv} para importarlo usando un archivo CSV.
|
|
185
185
|
no_sign_in: Nunca ha iniciado sesión
|
|
186
186
|
no_user: No se ha encontrado ninguna usuaria
|
|
187
|
+
title: Datos censales actuales
|
|
188
|
+
instructions:
|
|
189
|
+
body: Para ello, debes acceder a la administración del sistema y añadir las autorizaciones "csv_census" a la organización
|
|
190
|
+
title: Necesitas activar el "csv_census" para esta organización
|
|
187
191
|
last_login:
|
|
188
192
|
no_sign_in: Nunca ha iniciado sesión
|
|
189
193
|
no_user: Ninguna usuaria
|
|
@@ -221,10 +225,6 @@ es:
|
|
|
221
225
|
user_authorized: '¿Usuaria autorizada?'
|
|
222
226
|
import_csv: Importar CSV
|
|
223
227
|
no_authorized: Usuaria no autorizada
|
|
224
|
-
title: Datos censales actuales
|
|
225
|
-
instructions:
|
|
226
|
-
body: Para ello, debes acceder a la administración del sistema y añadir las autorizaciones "csv_census" a la organización
|
|
227
|
-
title: Necesitas activar el "csv_census" para esta organización
|
|
228
228
|
authorizations:
|
|
229
229
|
new:
|
|
230
230
|
error: No pudimos verificar tu cuenta o no estás en el censo de la organización.
|
|
@@ -255,8 +255,8 @@ es:
|
|
|
255
255
|
error: La verificación no coincide. Por favor inténtalo de nuevo o rechaza la verificación para que la participante pueda modificarla.
|
|
256
256
|
success: Participante verificada correctamente.
|
|
257
257
|
new:
|
|
258
|
-
introduce_user_data: Introduce los datos que aparecen en la imagen
|
|
259
258
|
reject: Rechazar
|
|
259
|
+
title: Introduce los datos que aparecen en la imagen
|
|
260
260
|
verify: Verificar
|
|
261
261
|
offline_confirmations:
|
|
262
262
|
create:
|
|
@@ -264,7 +264,7 @@ es:
|
|
|
264
264
|
success: Participante verificada correctamente.
|
|
265
265
|
new:
|
|
266
266
|
cancel: Cancelar
|
|
267
|
-
|
|
267
|
+
title: Introduce el correo electrónico de la participante y los datos del documento
|
|
268
268
|
verify: Verificar
|
|
269
269
|
pending_authorizations:
|
|
270
270
|
index:
|
data/config/locales/eu.yml
CHANGED
|
@@ -184,6 +184,10 @@ eu:
|
|
|
184
184
|
empty: Ez dago errolda-daturik. Erabili %{import_csv} inportatzeko CSV fitxategi bat.
|
|
185
185
|
no_sign_in: Saioa inoiz ez hasia
|
|
186
186
|
no_user: Ez da parte-hartzailerik aurkitu
|
|
187
|
+
title: Erroldako oraingo datuak
|
|
188
|
+
instructions:
|
|
189
|
+
body: Horretarako, sistemaren administrazioa sartu behar duzu eta gehitu csv_census baimenak erakundeari
|
|
190
|
+
title: CSV errolda aktibatu behar duzu erakunde honetarako
|
|
187
191
|
last_login:
|
|
188
192
|
no_sign_in: Inoiz ez sinatua
|
|
189
193
|
no_user: Parte-hartzailerik gabe
|
|
@@ -221,10 +225,6 @@ eu:
|
|
|
221
225
|
user_authorized: Parte-hartzailea baimendua?
|
|
222
226
|
import_csv: Inportatu CSV fitxategia
|
|
223
227
|
no_authorized: Parte-hartzailea ez baimendua
|
|
224
|
-
title: Erroldako oraingo datuak
|
|
225
|
-
instructions:
|
|
226
|
-
body: Horretarako, sistemaren administrazioa sartu behar duzu eta gehitu csv_census baimenak erakundeari
|
|
227
|
-
title: CSV errolda aktibatu behar duzu erakunde honetarako
|
|
228
228
|
authorizations:
|
|
229
229
|
new:
|
|
230
230
|
error: Ezin izan dugu zure kontua egiaztatu edo ez zaude erakundearen erroldan.
|
|
@@ -255,8 +255,8 @@ eu:
|
|
|
255
255
|
error: Egiaztapena ez dator bat. Mesedez, saiatu berriro edo ukatu egiaztapena, parte-hartzaileak aldatu dezan.
|
|
256
256
|
success: Parte-hartzailea zuzen egiaztatua.
|
|
257
257
|
new:
|
|
258
|
-
introduce_user_data: Idatzi datua irudian
|
|
259
258
|
reject: Ukatu
|
|
259
|
+
title: Idatzi datua irudian
|
|
260
260
|
verify: Ziurtatu
|
|
261
261
|
offline_confirmations:
|
|
262
262
|
create:
|
|
@@ -264,7 +264,7 @@ eu:
|
|
|
264
264
|
success: Parte-hartzailea zuzen egiaztatua.
|
|
265
265
|
new:
|
|
266
266
|
cancel: Ezeztatu
|
|
267
|
-
|
|
267
|
+
title: Sartu parte-hartzailearen helbide elektronikoa eta dokumentuaren datuak
|
|
268
268
|
verify: Ziurtatu
|
|
269
269
|
pending_authorizations:
|
|
270
270
|
index:
|
data/config/locales/fi-plain.yml
CHANGED
|
@@ -184,6 +184,10 @@ fi-pl:
|
|
|
184
184
|
empty: Henkilötietorekisterissä ei ole tietoja. Käytä %{import_csv} -toimintoa tuodaksesi tiedot järjestelmään CSV-tiedostosta.
|
|
185
185
|
no_sign_in: Ei ole koskaan kirjautunut sisään
|
|
186
186
|
no_user: Käyttäjää ei löytynyt
|
|
187
|
+
title: Henkilötietorekisterin tiedot
|
|
188
|
+
instructions:
|
|
189
|
+
body: Käyttääksesi tätä toimintoa sinun on kirjauduttava järjestelmänvalvojan hallinnointinäkymään ja lisättävä csv_census-vahvistustapa organisaatiolle
|
|
190
|
+
title: Sinun on otettava käyttöön CSV-henkilötietorekisteri tälle organisaatiolle
|
|
187
191
|
last_login:
|
|
188
192
|
no_sign_in: Ei ole koskaan kirjautunut sisään
|
|
189
193
|
no_user: Ei käyttäjää
|
|
@@ -221,10 +225,6 @@ fi-pl:
|
|
|
221
225
|
user_authorized: Onko käyttäjän henkilöllisyys on vahvistettu?
|
|
222
226
|
import_csv: Tuo CSV
|
|
223
227
|
no_authorized: Käyttäjän henkilöllisyyttä ei ole vahvistettu
|
|
224
|
-
title: Henkilötietorekisterin tiedot
|
|
225
|
-
instructions:
|
|
226
|
-
body: Käyttääksesi tätä toimintoa sinun on kirjauduttava järjestelmänvalvojan hallinnointinäkymään ja lisättävä csv_census-vahvistustapa organisaatiolle
|
|
227
|
-
title: Sinun on otettava käyttöön CSV-henkilötietorekisteri tälle organisaatiolle
|
|
228
228
|
authorizations:
|
|
229
229
|
new:
|
|
230
230
|
error: Emme voineet vahvistaa tiliäsi, koska tietojasi ei löytynyt organisaation rekisteristä.
|
|
@@ -255,8 +255,8 @@ fi-pl:
|
|
|
255
255
|
error: Vahvistustiedot eivät täsmää. Yritä uudestaan tai hylkää vahvistus, jolloin käyttäjä voi muuttaa sitä.
|
|
256
256
|
success: Osallistujan vahvistaminen onnistui.
|
|
257
257
|
new:
|
|
258
|
-
introduce_user_data: Syötä kuvassa näkyvät tiedot
|
|
259
258
|
reject: Hylkää
|
|
259
|
+
title: Syötä kuvassa näkyvät tiedot
|
|
260
260
|
verify: Vahvista
|
|
261
261
|
offline_confirmations:
|
|
262
262
|
create:
|
|
@@ -264,7 +264,7 @@ fi-pl:
|
|
|
264
264
|
success: Osallistujan vahvistaminen onnistui.
|
|
265
265
|
new:
|
|
266
266
|
cancel: Peruuta
|
|
267
|
-
|
|
267
|
+
title: Syötä osallistujan sähköpostiosoite ja henkilöllisyystodistuksen tiedot
|
|
268
268
|
verify: Vahvista
|
|
269
269
|
pending_authorizations:
|
|
270
270
|
index:
|
data/config/locales/fi.yml
CHANGED
|
@@ -184,6 +184,10 @@ fi:
|
|
|
184
184
|
empty: Henkilötietorekisterissä ei ole tietoja. Käytä %{import_csv} -toimintoa tuodaksesi tiedot järjestelmään CSV-tiedostosta.
|
|
185
185
|
no_sign_in: Ei ole koskaan kirjautunut sisään
|
|
186
186
|
no_user: Käyttäjää ei löytynyt
|
|
187
|
+
title: Henkilötietorekisterin tiedot
|
|
188
|
+
instructions:
|
|
189
|
+
body: Käyttääksesi tätä toimintoa sinun on kirjauduttava järjestelmänvalvojan hallinnointinäkymään ja lisättävä csv_census-vahvistustapa organisaatiolle
|
|
190
|
+
title: Sinun on otettava käyttöön CSV-henkilötietorekisteri tälle organisaatiolle
|
|
187
191
|
last_login:
|
|
188
192
|
no_sign_in: Ei ole koskaan kirjautunut sisään
|
|
189
193
|
no_user: Ei käyttäjää
|
|
@@ -221,10 +225,6 @@ fi:
|
|
|
221
225
|
user_authorized: Onko käyttäjän henkilöllisyys on vahvistettu?
|
|
222
226
|
import_csv: Tuo CSV
|
|
223
227
|
no_authorized: Käyttäjän henkilöllisyyttä ei ole vahvistettu
|
|
224
|
-
title: Henkilötietorekisterin tiedot
|
|
225
|
-
instructions:
|
|
226
|
-
body: Käyttääksesi tätä toimintoa sinun on kirjauduttava järjestelmänvalvojan hallinnointinäkymään ja lisättävä csv_census-vahvistustapa organisaatiolle
|
|
227
|
-
title: Sinun on otettava käyttöön CSV-henkilötietorekisteri tälle organisaatiolle
|
|
228
228
|
authorizations:
|
|
229
229
|
new:
|
|
230
230
|
error: Emme voineet vahvistaa tiliäsi, koska tietojasi ei löytynyt organisaation rekisteristä.
|
|
@@ -255,8 +255,8 @@ fi:
|
|
|
255
255
|
error: Vahvistustiedot eivät täsmää. Yritä uudestaan tai hylkää vahvistus, jolloin käyttäjä voi muuttaa sitä.
|
|
256
256
|
success: Osallistujan vahvistaminen onnistui.
|
|
257
257
|
new:
|
|
258
|
-
introduce_user_data: Syötä kuvassa näkyvät tiedot
|
|
259
258
|
reject: Hylkää
|
|
259
|
+
title: Syötä kuvassa näkyvät tiedot
|
|
260
260
|
verify: Vahvista
|
|
261
261
|
offline_confirmations:
|
|
262
262
|
create:
|
|
@@ -264,7 +264,7 @@ fi:
|
|
|
264
264
|
success: Osallistujan vahvistaminen onnistui.
|
|
265
265
|
new:
|
|
266
266
|
cancel: Peruuta
|
|
267
|
-
|
|
267
|
+
title: Syötä osallistujan sähköpostiosoite ja henkilöllisyystodistuksen tiedot
|
|
268
268
|
verify: Vahvista
|
|
269
269
|
pending_authorizations:
|
|
270
270
|
index:
|
data/config/locales/ja.yml
CHANGED
|
@@ -184,6 +184,10 @@ ja:
|
|
|
184
184
|
empty: センサスデータがありません。CSVファイルをインポートするには %{import_csv} を使用してください。
|
|
185
185
|
no_sign_in: ログインしたことがありません
|
|
186
186
|
no_user: ユーザーが見つかりません
|
|
187
|
+
title: 現在のセンサスデータ
|
|
188
|
+
instructions:
|
|
189
|
+
body: これを行うには、システム管理画面から、csv_census の認証を組織に追加する必要があります
|
|
190
|
+
title: この組織のCSVセンサスを有効にする必要があります
|
|
187
191
|
last_login:
|
|
188
192
|
no_sign_in: ログインしたことがありません
|
|
189
193
|
no_user: ユーザーがいません
|
|
@@ -221,10 +225,6 @@ ja:
|
|
|
221
225
|
user_authorized: 承認済み?
|
|
222
226
|
import_csv: CSVをインポート
|
|
223
227
|
no_authorized: 承認されていないユーザー
|
|
224
|
-
title: 現在のセンサスデータ
|
|
225
|
-
instructions:
|
|
226
|
-
body: これを行うには、システム管理画面から、csv_census の認証を組織に追加する必要があります
|
|
227
|
-
title: この組織のCSVセンサスを有効にする必要があります
|
|
228
228
|
authorizations:
|
|
229
229
|
new:
|
|
230
230
|
error: お客様のアカウントを確認できませんでした。また、組織のセンサスに入っていない場合もあります。
|
|
@@ -253,8 +253,8 @@ ja:
|
|
|
253
253
|
error: 検証が一致しません。再度お試しいただくか、検証を拒否して参加者が修正できるようにしてください。
|
|
254
254
|
success: 参加者が正常に検証されました。
|
|
255
255
|
new:
|
|
256
|
-
introduce_user_data: 写真のデータを入力する
|
|
257
256
|
reject: 拒否
|
|
257
|
+
title: 写真のデータを入力する
|
|
258
258
|
verify: 確認する
|
|
259
259
|
offline_confirmations:
|
|
260
260
|
create:
|
|
@@ -262,7 +262,7 @@ ja:
|
|
|
262
262
|
success: 参加者が正常に検証されました。
|
|
263
263
|
new:
|
|
264
264
|
cancel: キャンセル
|
|
265
|
-
|
|
265
|
+
title: 参加者のメールアドレスと文書データを入力
|
|
266
266
|
verify: 確認する
|
|
267
267
|
pending_authorizations:
|
|
268
268
|
index:
|
data/config/locales/pt-BR.yml
CHANGED
|
@@ -251,8 +251,8 @@ pt-BR:
|
|
|
251
251
|
error: A verificação não corresponde. Tente novamente ou rejeite a verificação para que o participante possa corrigi-la.
|
|
252
252
|
success: Participante verificado com sucesso.
|
|
253
253
|
new:
|
|
254
|
-
introduce_user_data: Introduza os dados na imagem
|
|
255
254
|
reject: Rejeitar
|
|
255
|
+
title: Introduza os dados na imagem
|
|
256
256
|
verify: Verificar
|
|
257
257
|
offline_confirmations:
|
|
258
258
|
create:
|
|
@@ -260,7 +260,7 @@ pt-BR:
|
|
|
260
260
|
success: Participante verificado com sucesso.
|
|
261
261
|
new:
|
|
262
262
|
cancel: Cancelar
|
|
263
|
-
|
|
263
|
+
title: Introduzir o email do usuário e os dados do documento
|
|
264
264
|
verify: Verificar
|
|
265
265
|
pending_authorizations:
|
|
266
266
|
index:
|
data/config/locales/sk.yml
CHANGED
|
@@ -184,6 +184,10 @@ sk:
|
|
|
184
184
|
empty: Neexistujú žiadne údaje v registri. Použite %{import_csv} na importovanie súboru CSV.
|
|
185
185
|
no_sign_in: Nikdy neprihlásený
|
|
186
186
|
no_user: Nenašiel sa žiadny používateľ
|
|
187
|
+
title: Aktuálne údaje registra
|
|
188
|
+
instructions:
|
|
189
|
+
body: Ak to chcete urobiť, musíte vstúpiť do správy systému a pridať autorizácie csv_census do organizácie
|
|
190
|
+
title: Pre túto organizáciu musíte aktivovať register CSV
|
|
187
191
|
last_login:
|
|
188
192
|
no_sign_in: Nikdy neprihlásený
|
|
189
193
|
no_user: Žiadny používateľ
|
|
@@ -221,10 +225,6 @@ sk:
|
|
|
221
225
|
user_authorized: Používateľ autorizovaný?
|
|
222
226
|
import_csv: Importovať CSV
|
|
223
227
|
no_authorized: Používateľ neautorizovaný
|
|
224
|
-
title: Aktuálne údaje registra
|
|
225
|
-
instructions:
|
|
226
|
-
body: Ak to chcete urobiť, musíte vstúpiť do správy systému a pridať autorizácie csv_census do organizácie
|
|
227
|
-
title: Pre túto organizáciu musíte aktivovať register CSV
|
|
228
228
|
authorizations:
|
|
229
229
|
new:
|
|
230
230
|
error: Váš účet nebol overený, alebo nie ste v sčítanie organizácie.
|
|
@@ -259,8 +259,8 @@ sk:
|
|
|
259
259
|
error: Overenie sa nezhoduje. Skúste to znova alebo overenie zamietnite, aby ho účastník mohol opraviť.
|
|
260
260
|
success: Účastník bol úspešne overený.
|
|
261
261
|
new:
|
|
262
|
-
introduce_user_data: Zadajte údaje z obrázka
|
|
263
262
|
reject: Odmietnuť
|
|
263
|
+
title: Zadajte údaje z obrázka
|
|
264
264
|
verify: Overte
|
|
265
265
|
offline_confirmations:
|
|
266
266
|
create:
|
|
@@ -268,7 +268,7 @@ sk:
|
|
|
268
268
|
success: Účastník bol úspešne overený.
|
|
269
269
|
new:
|
|
270
270
|
cancel: zrušenie
|
|
271
|
-
|
|
271
|
+
title: Zadajte e-mail účastníka a údaje z dokladu
|
|
272
272
|
verify: Overte
|
|
273
273
|
pending_authorizations:
|
|
274
274
|
index:
|
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
$LOAD_PATH.push File.expand_path("lib", __dir__)
|
|
4
4
|
|
|
5
|
-
require "decidim/verifications/version"
|
|
6
|
-
|
|
7
5
|
Gem::Specification.new do |s|
|
|
8
|
-
|
|
9
|
-
s.version =
|
|
6
|
+
version = "0.32.0.rc2"
|
|
7
|
+
s.version = version
|
|
10
8
|
s.authors = ["David Rodriguez"]
|
|
11
9
|
s.email = ["deivid.rodriguez@riseup.net"]
|
|
12
10
|
s.homepage = "https://decidim.org"
|
|
@@ -17,8 +15,9 @@ Gem::Specification.new do |s|
|
|
|
17
15
|
"homepage_uri" => "https://decidim.org",
|
|
18
16
|
"source_code_uri" => "https://github.com/decidim/decidim"
|
|
19
17
|
}
|
|
20
|
-
s.required_ruby_version = "~> 3.
|
|
18
|
+
s.required_ruby_version = "~> 3.4.0"
|
|
21
19
|
|
|
20
|
+
s.name = "decidim-verifications"
|
|
22
21
|
s.summary = "Decidim verifications module"
|
|
23
22
|
s.description = "Several verification methods for your decidim instance"
|
|
24
23
|
s.license = "AGPL-3.0-or-later"
|
|
@@ -30,8 +29,8 @@ Gem::Specification.new do |s|
|
|
|
30
29
|
end
|
|
31
30
|
end
|
|
32
31
|
|
|
33
|
-
s.add_dependency "decidim-core",
|
|
32
|
+
s.add_dependency "decidim-core", version
|
|
34
33
|
|
|
35
|
-
s.add_development_dependency "decidim-admin",
|
|
36
|
-
s.add_development_dependency "decidim-dev",
|
|
34
|
+
s.add_development_dependency "decidim-admin", version
|
|
35
|
+
s.add_development_dependency "decidim-dev", version
|
|
37
36
|
end
|
|
@@ -38,6 +38,17 @@ module Decidim
|
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
class UnregisteredVerificationManifest < StandardError
|
|
41
|
+
def initialize(name:)
|
|
42
|
+
msg = <<~MSG.squish
|
|
43
|
+
The verification workflow manifest `#{name}` is not defined. Please
|
|
44
|
+
verify your verification configuration and check your initializers to
|
|
45
|
+
ensure that the workflow is configured. Note that in some occasions a
|
|
46
|
+
successful configuration may require configuring some environment
|
|
47
|
+
variables.
|
|
48
|
+
MSG
|
|
49
|
+
|
|
50
|
+
super(msg)
|
|
51
|
+
end
|
|
41
52
|
end
|
|
42
53
|
|
|
43
54
|
#
|
|
@@ -54,7 +65,7 @@ module Decidim
|
|
|
54
65
|
def self.from_element(element)
|
|
55
66
|
manifest = Verifications.find_workflow_manifest(element)
|
|
56
67
|
|
|
57
|
-
raise UnregisteredVerificationManifest unless manifest
|
|
68
|
+
raise UnregisteredVerificationManifest.new(name: element) unless manifest
|
|
58
69
|
|
|
59
70
|
new(manifest)
|
|
60
71
|
end
|
|
@@ -37,15 +37,23 @@ module Decidim
|
|
|
37
37
|
|
|
38
38
|
initializer "decidim_verifications.mount_routes" do
|
|
39
39
|
Decidim::Core::Engine.routes do
|
|
40
|
-
|
|
40
|
+
extend Decidim::Routes::LocaleRedirects
|
|
41
|
+
|
|
42
|
+
scope "/:locale", **locale_scope_options do
|
|
43
|
+
mount Decidim::Verifications::Engine, at: "/", as: "decidim_verifications"
|
|
44
|
+
end
|
|
41
45
|
end
|
|
42
46
|
end
|
|
43
47
|
|
|
44
48
|
initializer "decidim_verifications.mount_admin_routes" do
|
|
45
49
|
Decidim::Core::Engine.routes do
|
|
46
50
|
constraints(->(request) { Decidim::Admin::OrganizationDashboardConstraint.new(request).matches? }) do
|
|
47
|
-
Decidim
|
|
48
|
-
|
|
51
|
+
extend Decidim::Routes::LocaleRedirects
|
|
52
|
+
|
|
53
|
+
scope "/:locale", **locale_scope_options do
|
|
54
|
+
Decidim.authorization_admin_engines.each do |manifest|
|
|
55
|
+
mount manifest.admin_engine, at: "/admin/#{manifest.name}", as: "decidim_admin_#{manifest.name}"
|
|
56
|
+
end
|
|
49
57
|
end
|
|
50
58
|
end
|
|
51
59
|
end
|
|
@@ -27,9 +27,14 @@ module Decidim
|
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
module Verifications
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
class << self
|
|
31
|
+
def config = self
|
|
32
|
+
|
|
33
|
+
def configure
|
|
34
|
+
yield self
|
|
35
|
+
end
|
|
33
36
|
end
|
|
37
|
+
|
|
38
|
+
mattr_accessor :document_types, default: Decidim::Env.new("VERIFICATIONS_DOCUMENT_TYPES", "identification_number,passport").to_array
|
|
34
39
|
end
|
|
35
40
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: decidim-verifications
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.32.0.rc2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Rodriguez
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: decidim-core
|
|
@@ -16,42 +15,42 @@ dependencies:
|
|
|
16
15
|
requirements:
|
|
17
16
|
- - '='
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.
|
|
18
|
+
version: 0.32.0.rc2
|
|
20
19
|
type: :runtime
|
|
21
20
|
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
23
|
- - '='
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 0.
|
|
25
|
+
version: 0.32.0.rc2
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
28
27
|
name: decidim-admin
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
30
29
|
requirements:
|
|
31
30
|
- - '='
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 0.
|
|
32
|
+
version: 0.32.0.rc2
|
|
34
33
|
type: :development
|
|
35
34
|
prerelease: false
|
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
36
|
requirements:
|
|
38
37
|
- - '='
|
|
39
38
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: 0.
|
|
39
|
+
version: 0.32.0.rc2
|
|
41
40
|
- !ruby/object:Gem::Dependency
|
|
42
41
|
name: decidim-dev
|
|
43
42
|
requirement: !ruby/object:Gem::Requirement
|
|
44
43
|
requirements:
|
|
45
44
|
- - '='
|
|
46
45
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: 0.
|
|
46
|
+
version: 0.32.0.rc2
|
|
48
47
|
type: :development
|
|
49
48
|
prerelease: false
|
|
50
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
50
|
requirements:
|
|
52
51
|
- - '='
|
|
53
52
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: 0.
|
|
53
|
+
version: 0.32.0.rc2
|
|
55
54
|
description: Several verification methods for your decidim instance
|
|
56
55
|
email:
|
|
57
56
|
- deivid.rodriguez@riseup.net
|
|
@@ -283,7 +282,6 @@ metadata:
|
|
|
283
282
|
funding_uri: https://opencollective.com/decidim
|
|
284
283
|
homepage_uri: https://decidim.org
|
|
285
284
|
source_code_uri: https://github.com/decidim/decidim
|
|
286
|
-
post_install_message:
|
|
287
285
|
rdoc_options: []
|
|
288
286
|
require_paths:
|
|
289
287
|
- lib
|
|
@@ -291,15 +289,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
291
289
|
requirements:
|
|
292
290
|
- - "~>"
|
|
293
291
|
- !ruby/object:Gem::Version
|
|
294
|
-
version: 3.
|
|
292
|
+
version: 3.4.0
|
|
295
293
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
296
294
|
requirements:
|
|
297
295
|
- - ">="
|
|
298
296
|
- !ruby/object:Gem::Version
|
|
299
297
|
version: '0'
|
|
300
298
|
requirements: []
|
|
301
|
-
rubygems_version: 3.
|
|
302
|
-
signing_key:
|
|
299
|
+
rubygems_version: 3.6.9
|
|
303
300
|
specification_version: 4
|
|
304
301
|
summary: Decidim verifications module
|
|
305
302
|
test_files: []
|