decidim-verifications 0.27.0 → 0.27.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/commands/decidim/verifications/csv_census/admin/create_census_data.rb +4 -1
- data/app/controllers/decidim/verifications/csv_census/admin/census_controller.rb +3 -1
- data/app/forms/decidim/verifications/csv_census/admin/census_data_form.rb +4 -0
- data/app/views/decidim/verifications/csv_census/admin/census/index.html.erb +3 -3
- data/config/locales/ca.yml +6 -0
- data/config/locales/cs.yml +6 -0
- data/config/locales/en.yml +6 -0
- data/config/locales/es-MX.yml +6 -0
- data/config/locales/es-PY.yml +6 -0
- data/config/locales/es.yml +6 -0
- data/config/locales/eu.yml +13 -0
- data/config/locales/fi-plain.yml +6 -0
- data/config/locales/fi.yml +6 -0
- data/config/locales/fr-CA.yml +6 -0
- data/config/locales/fr.yml +6 -0
- data/config/locales/gn-PY.yml +1 -0
- data/config/locales/ja.yml +6 -0
- data/config/locales/ka-GE.yml +1 -0
- data/config/locales/lo-LA.yml +1 -0
- data/lib/decidim/verifications/version.rb +1 -1
- metadata +12 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1f570374ef3a85a6d43d6f72a018fcc962b755c890da3e917fe9ab7fc863c6b
|
4
|
+
data.tar.gz: 474fdcadf6bfdfdc3840ddcf8374cf467fe3ccf862322b9012d26d8f96de0a7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 777c0ff848bee6d03efa7c1ec5321c0e7a061e7f5137d1f9081cd3c5d125b302cdec7540b92d4ef524fae13b09f1b9ed868244c8b9635d3bf7c4a0a26b53278e
|
7
|
+
data.tar.gz: f60089aa769d1096b204f58fa08c68c2b7cb1e06e1b4c2b1445206ec25c156e855f4b83fc5fa75f8ecc43031bc0162f3d2394b3aa34b801d3e508cd30eff2ecb
|
@@ -20,8 +20,11 @@ module Decidim
|
|
20
20
|
def call
|
21
21
|
return broadcast(:invalid) unless @form.file
|
22
22
|
|
23
|
+
data = @form.data
|
24
|
+
return broadcast(:invalid) unless data
|
25
|
+
|
23
26
|
# rubocop:disable Rails/SkipsModelValidations
|
24
|
-
CsvDatum.insert_all(@organization,
|
27
|
+
CsvDatum.insert_all(@organization, data.values)
|
25
28
|
# rubocop:enable Rails/SkipsModelValidations
|
26
29
|
RemoveDuplicatesJob.perform_later(@organization)
|
27
30
|
|
@@ -19,16 +19,18 @@ module Decidim
|
|
19
19
|
def create
|
20
20
|
enforce_permission_to :create, :authorization
|
21
21
|
@form = form(CensusDataForm).from_params(params)
|
22
|
+
@status = Status.new(current_organization)
|
22
23
|
CreateCensusData.call(@form, current_organization) do
|
23
24
|
on(:ok) do
|
24
25
|
flash[:notice] = t(".success", count: @form.data.values.count, errors: @form.data.errors.count)
|
26
|
+
redirect_to census_path
|
25
27
|
end
|
26
28
|
|
27
29
|
on(:invalid) do
|
28
30
|
flash[:alert] = t(".error")
|
31
|
+
render :index
|
29
32
|
end
|
30
33
|
end
|
31
|
-
redirect_to census_path
|
32
34
|
end
|
33
35
|
|
34
36
|
def destroy_all
|
@@ -34,9 +34,9 @@
|
|
34
34
|
...
|
35
35
|
...
|
36
36
|
</pre>
|
37
|
-
<%=
|
38
|
-
<%= label_tag :
|
39
|
-
<%=
|
37
|
+
<%= decidim_form_for @form, url: census_path, multipart: true do |form| %>
|
38
|
+
<%= label_tag :file, t("admin.new.file", scope: "decidim.verifications.csv_census") %>
|
39
|
+
<%= form.file_field :file %>
|
40
40
|
<%= submit_tag t("admin.new.submit", scope: "decidim.verifications.csv_census"), class: "button" %>
|
41
41
|
<% end %>
|
42
42
|
</div>
|
data/config/locales/ca.yml
CHANGED
@@ -24,6 +24,12 @@ ca:
|
|
24
24
|
postal_letter_postage:
|
25
25
|
full_address: Adreça completa
|
26
26
|
verification_code: Codi de verificació
|
27
|
+
errors:
|
28
|
+
models:
|
29
|
+
census_data:
|
30
|
+
attributes:
|
31
|
+
file:
|
32
|
+
malformed: Arxiu d'importació mal formatat, si us plau, llegeix les instruccions curosament i assegura't que l'arxiu està codificat en UTF-8.
|
27
33
|
decidim:
|
28
34
|
admin:
|
29
35
|
menu:
|
data/config/locales/cs.yml
CHANGED
@@ -24,6 +24,12 @@ cs:
|
|
24
24
|
postal_letter_postage:
|
25
25
|
full_address: Celá poštovní adresa
|
26
26
|
verification_code: Ověřovací kód
|
27
|
+
errors:
|
28
|
+
models:
|
29
|
+
census_data:
|
30
|
+
attributes:
|
31
|
+
file:
|
32
|
+
malformed: Chybný importní soubor, přečtěte si pozorně pokyny a ujistěte se, že soubor je kódovaný UTF-8.
|
27
33
|
decidim:
|
28
34
|
admin:
|
29
35
|
menu:
|
data/config/locales/en.yml
CHANGED
@@ -24,6 +24,12 @@ en:
|
|
24
24
|
postal_letter_postage:
|
25
25
|
full_address: Full address
|
26
26
|
verification_code: Verification code
|
27
|
+
errors:
|
28
|
+
models:
|
29
|
+
census_data:
|
30
|
+
attributes:
|
31
|
+
file:
|
32
|
+
malformed: Malformed import file, please read through the instructions carefully and make sure the file is UTF-8 encoded.
|
27
33
|
decidim:
|
28
34
|
admin:
|
29
35
|
menu:
|
data/config/locales/es-MX.yml
CHANGED
@@ -24,6 +24,12 @@ es-MX:
|
|
24
24
|
postal_letter_postage:
|
25
25
|
full_address: Dirección completa
|
26
26
|
verification_code: Código de verificación
|
27
|
+
errors:
|
28
|
+
models:
|
29
|
+
census_data:
|
30
|
+
attributes:
|
31
|
+
file:
|
32
|
+
malformed: Archivo de importación mal formateado, por favor lea las instrucciones cuidadosamente y asegúrese de que el archivo está codificado en UTF-8.
|
27
33
|
decidim:
|
28
34
|
admin:
|
29
35
|
menu:
|
data/config/locales/es-PY.yml
CHANGED
@@ -24,6 +24,12 @@ es-PY:
|
|
24
24
|
postal_letter_postage:
|
25
25
|
full_address: Dirección completa
|
26
26
|
verification_code: Código de verificación
|
27
|
+
errors:
|
28
|
+
models:
|
29
|
+
census_data:
|
30
|
+
attributes:
|
31
|
+
file:
|
32
|
+
malformed: Archivo de importación mal formateado, por favor lea las instrucciones cuidadosamente y asegúrese de que el archivo está codificado en UTF-8.
|
27
33
|
decidim:
|
28
34
|
admin:
|
29
35
|
menu:
|
data/config/locales/es.yml
CHANGED
@@ -24,6 +24,12 @@ es:
|
|
24
24
|
postal_letter_postage:
|
25
25
|
full_address: Dirección completa
|
26
26
|
verification_code: Código de verificación
|
27
|
+
errors:
|
28
|
+
models:
|
29
|
+
census_data:
|
30
|
+
attributes:
|
31
|
+
file:
|
32
|
+
malformed: Archivo de importación mal formateado, por favor lea las instrucciones cuidadosamente y asegúrese de que el archivo está codificado en UTF-8.
|
27
33
|
decidim:
|
28
34
|
admin:
|
29
35
|
menu:
|
data/config/locales/eu.yml
CHANGED
@@ -24,6 +24,12 @@ eu:
|
|
24
24
|
postal_letter_postage:
|
25
25
|
full_address: Helbide osoa
|
26
26
|
verification_code: Egiaztapen kodea
|
27
|
+
errors:
|
28
|
+
models:
|
29
|
+
census_data:
|
30
|
+
attributes:
|
31
|
+
file:
|
32
|
+
malformed: Fitxategia akastuna da. Irakurri arretaz jarraibideak eta ziurtatu fitxategia UTF-8an kodifikatuta dagoela.
|
27
33
|
decidim:
|
28
34
|
admin:
|
29
35
|
menu:
|
@@ -76,6 +82,13 @@ eu:
|
|
76
82
|
postal_letter:
|
77
83
|
explanation: Posta-gutun bat bidaliko dizugu, sartu behar duzun kode batekin, beraz, zure helbidea egiaztatu ahal izango dugu
|
78
84
|
name: Kodea posta bidez
|
85
|
+
events:
|
86
|
+
verifications:
|
87
|
+
verify_with_managed_user:
|
88
|
+
email_intro: <a href="%{resource_url}">%{resource_title}</a> parte-hartzailea (<a href="%{managed_user_url}">%{managed_user_name}</a>) parte-hartzaileaen datuekin egiaztatzen saiatu da.
|
89
|
+
email_outro: Egiaztau <a href="%{conflicts_url}">gatazken zerrenda </a> eta jarri harremanetan parte-hartzailearekin bere datuak egiaztatu eta arazoa konpontzeko.
|
90
|
+
email_subject: Errorea beste parte-hartzaile baten bidez egiaztatzeagatik
|
91
|
+
notification_title: <a href="%{resource_url}">%{resource_title}</a> parte-hartzailea (<a href="%{managed_user_url}">%{managed_user_name}</a>) parte-hartzaileaen datuekin egiaztatzen saiatu da.
|
79
92
|
verifications:
|
80
93
|
authorizations:
|
81
94
|
authorization_metadata:
|
data/config/locales/fi-plain.yml
CHANGED
@@ -24,6 +24,12 @@ fi-pl:
|
|
24
24
|
postal_letter_postage:
|
25
25
|
full_address: Koko osoite
|
26
26
|
verification_code: Vahvistuskoodi
|
27
|
+
errors:
|
28
|
+
models:
|
29
|
+
census_data:
|
30
|
+
attributes:
|
31
|
+
file:
|
32
|
+
malformed: Virheellinen tuontitiedosto, lue ohjeet huolellisesti ja varmista, että tiedosto on UTF-8 muodossa.
|
27
33
|
decidim:
|
28
34
|
admin:
|
29
35
|
menu:
|
data/config/locales/fi.yml
CHANGED
@@ -24,6 +24,12 @@ fi:
|
|
24
24
|
postal_letter_postage:
|
25
25
|
full_address: Koko osoite
|
26
26
|
verification_code: Vahvistuskoodi
|
27
|
+
errors:
|
28
|
+
models:
|
29
|
+
census_data:
|
30
|
+
attributes:
|
31
|
+
file:
|
32
|
+
malformed: Virheellinen tuontitiedosto, lue ohjeet huolellisesti ja varmista, että tiedosto on UTF-8 muodossa.
|
27
33
|
decidim:
|
28
34
|
admin:
|
29
35
|
menu:
|
data/config/locales/fr-CA.yml
CHANGED
@@ -24,6 +24,12 @@ fr-CA:
|
|
24
24
|
postal_letter_postage:
|
25
25
|
full_address: Adresse complète
|
26
26
|
verification_code: Code de vérification
|
27
|
+
errors:
|
28
|
+
models:
|
29
|
+
census_data:
|
30
|
+
attributes:
|
31
|
+
file:
|
32
|
+
malformed: Fichier d'importation mal formé, veuillez lire attentivement les instructions et assurez-vous que le fichier est encodé en UTF-8.
|
27
33
|
decidim:
|
28
34
|
admin:
|
29
35
|
menu:
|
data/config/locales/fr.yml
CHANGED
@@ -24,6 +24,12 @@ fr:
|
|
24
24
|
postal_letter_postage:
|
25
25
|
full_address: Adresse complète
|
26
26
|
verification_code: Code de vérification
|
27
|
+
errors:
|
28
|
+
models:
|
29
|
+
census_data:
|
30
|
+
attributes:
|
31
|
+
file:
|
32
|
+
malformed: Fichier d'importation mal formé, veuillez lire attentivement les instructions et assurez-vous que le fichier est encodé en UTF-8.
|
27
33
|
decidim:
|
28
34
|
admin:
|
29
35
|
menu:
|
@@ -0,0 +1 @@
|
|
1
|
+
gn:
|
data/config/locales/ja.yml
CHANGED
@@ -24,6 +24,12 @@ ja:
|
|
24
24
|
postal_letter_postage:
|
25
25
|
full_address: フルアドレス
|
26
26
|
verification_code: 確認コード
|
27
|
+
errors:
|
28
|
+
models:
|
29
|
+
census_data:
|
30
|
+
attributes:
|
31
|
+
file:
|
32
|
+
malformed: インポートファイルの形式が正しくありません。手順を見直して、ファイルがUTF-8でエンコードされていることを確認してください。
|
27
33
|
decidim:
|
28
34
|
admin:
|
29
35
|
menu:
|
@@ -0,0 +1 @@
|
|
1
|
+
ka:
|
@@ -0,0 +1 @@
|
|
1
|
+
lo:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-verifications
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.27.
|
4
|
+
version: 0.27.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Rodriguez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: decidim-core
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.27.
|
19
|
+
version: 0.27.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.27.
|
26
|
+
version: 0.27.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: decidim-admin
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.27.
|
33
|
+
version: 0.27.2
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.27.
|
40
|
+
version: 0.27.2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: decidim-dev
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.27.
|
47
|
+
version: 0.27.2
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.27.
|
54
|
+
version: 0.27.2
|
55
55
|
description: Several verification methods for your decidim instance
|
56
56
|
email:
|
57
57
|
- deivid.rodriguez@riseup.net
|
@@ -170,6 +170,7 @@ files:
|
|
170
170
|
- config/locales/fr.yml
|
171
171
|
- config/locales/ga-IE.yml
|
172
172
|
- config/locales/gl.yml
|
173
|
+
- config/locales/gn-PY.yml
|
173
174
|
- config/locales/hr-HR.yml
|
174
175
|
- config/locales/hr.yml
|
175
176
|
- config/locales/hu.yml
|
@@ -178,10 +179,12 @@ files:
|
|
178
179
|
- config/locales/is.yml
|
179
180
|
- config/locales/it.yml
|
180
181
|
- config/locales/ja.yml
|
182
|
+
- config/locales/ka-GE.yml
|
181
183
|
- config/locales/ko-KR.yml
|
182
184
|
- config/locales/ko.yml
|
183
185
|
- config/locales/lb-LU.yml
|
184
186
|
- config/locales/lb.yml
|
187
|
+
- config/locales/lo-LA.yml
|
185
188
|
- config/locales/lt-LT.yml
|
186
189
|
- config/locales/lt.yml
|
187
190
|
- config/locales/lv.yml
|
@@ -261,7 +264,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
261
264
|
- !ruby/object:Gem::Version
|
262
265
|
version: '0'
|
263
266
|
requirements: []
|
264
|
-
rubygems_version: 3.
|
267
|
+
rubygems_version: 3.3.7
|
265
268
|
signing_key:
|
266
269
|
specification_version: 4
|
267
270
|
summary: Decidim verifications module
|