decidim-verifications 0.28.1 → 0.29.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/app/commands/decidim/verifications/revoke_by_condition_authorizations.rb +3 -3
- data/app/controllers/concerns/decidim/admin/workflows_breadcrumb.rb +1 -1
- data/app/controllers/decidim/verifications/admin/verifications_controller.rb +1 -1
- data/app/forms/decidim/verifications/csv_census/admin/census_data_form.rb +1 -1
- data/app/models/decidim/verifications/csv_census/data.rb +1 -1
- data/app/services/decidim/authorization_handler.rb +1 -1
- data/app/views/decidim/verifications/id_documents/admin/confirmations/new.html.erb +1 -1
- data/config/locales/ar.yml +0 -2
- data/config/locales/bg.yml +20 -1
- data/config/locales/ca.yml +19 -0
- data/config/locales/cs.yml +6 -3
- data/config/locales/de.yml +20 -1
- data/config/locales/el.yml +0 -2
- data/config/locales/en.yml +22 -3
- data/config/locales/es-MX.yml +20 -1
- data/config/locales/es-PY.yml +20 -1
- data/config/locales/es.yml +20 -1
- data/config/locales/eu.yml +21 -2
- data/config/locales/fi-plain.yml +20 -1
- data/config/locales/fi.yml +21 -2
- data/config/locales/fr-CA.yml +21 -2
- data/config/locales/fr.yml +21 -2
- data/config/locales/gl.yml +0 -2
- data/config/locales/hu.yml +0 -4
- data/config/locales/id-ID.yml +0 -2
- data/config/locales/it.yml +0 -2
- data/config/locales/ja.yml +22 -3
- data/config/locales/lt.yml +0 -4
- data/config/locales/lv.yml +0 -2
- data/config/locales/nl.yml +0 -2
- data/config/locales/no.yml +0 -2
- data/config/locales/pl.yml +105 -2
- data/config/locales/pt-BR.yml +0 -4
- data/config/locales/pt.yml +0 -2
- data/config/locales/ro-RO.yml +0 -2
- data/config/locales/sk.yml +0 -2
- data/config/locales/sv.yml +0 -2
- data/config/locales/tr-TR.yml +0 -2
- data/config/locales/zh-CN.yml +0 -2
- data/config/locales/zh-TW.yml +0 -4
- data/decidim-verifications.gemspec +1 -1
- data/lib/decidim/verifications/adapter.rb +9 -0
- data/lib/decidim/verifications/default_action_authorizer.rb +1 -1
- data/lib/decidim/verifications/version.rb +1 -1
- data/lib/decidim/verifications/workflows.rb +2 -2
- metadata +15 -16
- data/app/uploaders/decidim/cw/verifications/attachment_uploader.rb +0 -15
data/config/locales/tr-TR.yml
CHANGED
@@ -176,8 +176,6 @@ tr:
|
|
176
176
|
title: Doğrulama kodunuzu isteyin
|
177
177
|
sms:
|
178
178
|
authorizations:
|
179
|
-
destroy:
|
180
|
-
success: Doğrulama kodu başarıyla sıfırlandı. Lütfen telefon numaranızı tekrar girin.
|
181
179
|
edit:
|
182
180
|
confirm_destroy: Doğrulama kodunu sıfırlamak istediğinizden emin misiniz?
|
183
181
|
destroy: Doğrulama kodunu sıfırla
|
data/config/locales/zh-CN.yml
CHANGED
data/config/locales/zh-TW.yml
CHANGED
@@ -85,10 +85,8 @@ zh-TW:
|
|
85
85
|
events:
|
86
86
|
verifications:
|
87
87
|
verify_with_managed_user:
|
88
|
-
email_intro: 該參與者<a href="%{resource_url}">%{resource_title}</a>嘗試使用另一個參與者(<a href="%{managed_user_url}">%{managed_user_name}</a>) 的資料進行驗證。
|
89
88
|
email_outro: 請檢查<a href="%{conflicts_url}">驗證衝突清單</a>,並聯繫參與者驗證其詳細資料以解決問題。
|
90
89
|
email_subject: 對其他參與者的驗證嘗試失敗
|
91
|
-
notification_title: 該參與者<a href="%{resource_path}">%{resource_title}</a>嘗試使用另一個參與者(<a href="%{managed_user_path}">%{managed_user_name}</a>) 的資料進行驗證。
|
92
90
|
verifications:
|
93
91
|
authorizations:
|
94
92
|
authorization_metadata:
|
@@ -261,8 +259,6 @@ zh-TW:
|
|
261
259
|
create:
|
262
260
|
error: 您的請求發生問題.
|
263
261
|
success: 感謝您!我們已經發送了一個SMS簡訊到您的手機。
|
264
|
-
destroy:
|
265
|
-
success: 驗證碼已成功重設。請重新輸入您的電話號碼。
|
266
262
|
edit:
|
267
263
|
confirm_destroy: 您確定要重置驗證碼嗎?
|
268
264
|
destroy: 重置驗證代碼
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
|
|
17
17
|
"homepage_uri" => "https://decidim.org",
|
18
18
|
"source_code_uri" => "https://github.com/decidim/decidim"
|
19
19
|
}
|
20
|
-
s.required_ruby_version = "~> 3.
|
20
|
+
s.required_ruby_version = "~> 3.2.0"
|
21
21
|
|
22
22
|
s.summary = "Decidim verifications module"
|
23
23
|
s.description = "Several verification methods for your decidim instance"
|
@@ -110,6 +110,15 @@ module Decidim
|
|
110
110
|
admin_engine.send(:root_path, redirect_params)
|
111
111
|
end
|
112
112
|
|
113
|
+
#
|
114
|
+
# Does this workflow manifest has an admin engine associated?
|
115
|
+
#
|
116
|
+
# Returns a boolean value.
|
117
|
+
#
|
118
|
+
def has_admin_root_path?
|
119
|
+
respond_to?("decidim_admin_#{name}")
|
120
|
+
end
|
121
|
+
|
113
122
|
#
|
114
123
|
# Authorize user to perform an action using the authorization handler action authorizer.
|
115
124
|
# Saves the action_authorizer object with its context for subsequent methods calls.
|
@@ -9,7 +9,7 @@ module Decidim
|
|
9
9
|
# authorization - The existing authorization record to be evaluated. Can be nil.
|
10
10
|
# options - A hash with options related only to the current authorization process.
|
11
11
|
# component - The component where the authorization is taking place.
|
12
|
-
#
|
12
|
+
# resource - The resource where the authorization is taking place. Can be nil.
|
13
13
|
#
|
14
14
|
def initialize(authorization, options, component, resource)
|
15
15
|
@authorization = authorization
|
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.
|
4
|
+
version: 0.29.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Rodriguez
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-16 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.
|
19
|
+
version: 0.29.0.rc1
|
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.
|
26
|
+
version: 0.29.0.rc1
|
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.
|
33
|
+
version: 0.29.0.rc1
|
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.
|
40
|
+
version: 0.29.0.rc1
|
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.
|
47
|
+
version: 0.29.0.rc1
|
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.
|
54
|
+
version: 0.29.0.rc1
|
55
55
|
description: Several verification methods for your decidim instance
|
56
56
|
email:
|
57
57
|
- deivid.rodriguez@riseup.net
|
@@ -121,7 +121,6 @@ files:
|
|
121
121
|
- app/queries/decidim/verifications/authorizations.rb
|
122
122
|
- app/queries/decidim/verifications/authorizations_before_date.rb
|
123
123
|
- app/services/decidim/authorization_handler.rb
|
124
|
-
- app/uploaders/decidim/cw/verifications/attachment_uploader.rb
|
125
124
|
- app/uploaders/decidim/verifications/attachment_uploader.rb
|
126
125
|
- app/views/decidim/verifications/authorizations/_item.html.erb
|
127
126
|
- app/views/decidim/verifications/authorizations/first_login.html.erb
|
@@ -266,7 +265,7 @@ metadata:
|
|
266
265
|
funding_uri: https://opencollective.com/decidim
|
267
266
|
homepage_uri: https://decidim.org
|
268
267
|
source_code_uri: https://github.com/decidim/decidim
|
269
|
-
post_install_message:
|
268
|
+
post_install_message:
|
270
269
|
rdoc_options: []
|
271
270
|
require_paths:
|
272
271
|
- lib
|
@@ -274,15 +273,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
274
273
|
requirements:
|
275
274
|
- - "~>"
|
276
275
|
- !ruby/object:Gem::Version
|
277
|
-
version: 3.
|
276
|
+
version: 3.2.0
|
278
277
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
279
278
|
requirements:
|
280
|
-
- - "
|
279
|
+
- - ">"
|
281
280
|
- !ruby/object:Gem::Version
|
282
|
-
version:
|
281
|
+
version: 1.3.1
|
283
282
|
requirements: []
|
284
|
-
rubygems_version: 3.
|
285
|
-
signing_key:
|
283
|
+
rubygems_version: 3.4.10
|
284
|
+
signing_key:
|
286
285
|
specification_version: 4
|
287
286
|
summary: Decidim verifications module
|
288
287
|
test_files: []
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Decidim::Cw
|
4
|
-
module Verifications
|
5
|
-
# This class deals with uploading identity documents.
|
6
|
-
class AttachmentUploader < Decidim::Cw::ImageUploader
|
7
|
-
set_variants do
|
8
|
-
{
|
9
|
-
thumbnail: { resize_to_limit: [90, nil] },
|
10
|
-
big: { resize_to_limit: [600, nil] }
|
11
|
-
}
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|