decidim-verifications 0.28.0.rc5 → 0.28.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +22 -0
- data/app/controllers/concerns/decidim/admin/workflows_breadcrumb.rb +28 -0
- data/app/controllers/decidim/verifications/csv_census/admin/census_controller.rb +4 -0
- data/app/controllers/decidim/verifications/id_documents/admin/config_controller.rb +4 -0
- data/app/controllers/decidim/verifications/id_documents/admin/confirmations_controller.rb +4 -0
- data/app/controllers/decidim/verifications/id_documents/admin/offline_confirmations_controller.rb +4 -0
- data/app/controllers/decidim/verifications/id_documents/admin/pending_authorizations_controller.rb +4 -0
- data/app/controllers/decidim/verifications/id_documents/admin/rejections_controller.rb +4 -0
- data/app/controllers/decidim/verifications/postal_letter/admin/pending_authorizations_controller.rb +4 -0
- data/app/controllers/decidim/verifications/postal_letter/admin/postages_controller.rb +4 -0
- data/app/forms/decidim/verifications/id_documents/information_form.rb +8 -4
- 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 +2 -2
- data/app/views/decidim/verifications/id_documents/admin/config/edit.html.erb +2 -2
- 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/decidim/verifications/id_documents/admin/pending_authorizations/index.html.erb +3 -3
- data/app/views/decidim/verifications/postal_letter/admin/pending_authorizations/index.html.erb +49 -52
- data/config/locales/ar.yml +0 -2
- data/config/locales/bg.yml +272 -4
- data/config/locales/ca.yml +1 -2
- data/config/locales/cs.yml +1 -2
- data/config/locales/de.yml +1 -2
- data/config/locales/el.yml +0 -2
- data/config/locales/en.yml +1 -2
- data/config/locales/es-MX.yml +1 -2
- data/config/locales/es-PY.yml +1 -2
- data/config/locales/es.yml +1 -2
- data/config/locales/eu.yml +1 -2
- data/config/locales/fi-plain.yml +1 -2
- data/config/locales/fi.yml +1 -2
- data/config/locales/fr-CA.yml +1 -2
- data/config/locales/fr.yml +1 -2
- data/config/locales/ga-IE.yml +0 -2
- data/config/locales/gl.yml +0 -2
- data/config/locales/he-IL.yml +1 -0
- data/config/locales/hu.yml +0 -2
- data/config/locales/id-ID.yml +0 -2
- data/config/locales/is-IS.yml +0 -2
- data/config/locales/it.yml +0 -2
- data/config/locales/ja.yml +1 -2
- data/config/locales/lt.yml +0 -2
- data/config/locales/nl.yml +0 -2
- data/config/locales/no.yml +0 -2
- data/config/locales/pl.yml +1 -2
- data/config/locales/pt-BR.yml +7 -2
- data/config/locales/pt.yml +0 -2
- data/config/locales/ro-RO.yml +0 -2
- data/config/locales/ru.yml +0 -2
- data/config/locales/sk.yml +0 -2
- data/config/locales/sv.yml +0 -2
- data/config/locales/tr-TR.yml +1 -2
- data/config/locales/uk.yml +0 -2
- data/config/locales/zh-CN.yml +0 -2
- data/config/locales/zh-TW.yml +0 -2
- data/decidim-verifications.gemspec +37 -0
- data/lib/decidim/verifications/engine.rb +5 -0
- data/lib/decidim/verifications/test/factories.rb +8 -2
- data/lib/decidim/verifications/version.rb +1 -1
- data/lib/decidim/verifications.rb +7 -0
- metadata +19 -17
- data/config/environment.rb +0 -3
data/config/locales/uk.yml
CHANGED
data/config/locales/zh-CN.yml
CHANGED
data/config/locales/zh-TW.yml
CHANGED
@@ -0,0 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
$LOAD_PATH.push File.expand_path("lib", __dir__)
|
4
|
+
|
5
|
+
require "decidim/verifications/version"
|
6
|
+
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.name = "decidim-verifications"
|
9
|
+
s.version = Decidim::Verifications.version
|
10
|
+
s.authors = ["David Rodriguez"]
|
11
|
+
s.email = ["deivid.rodriguez@riseup.net"]
|
12
|
+
s.homepage = "https://decidim.org"
|
13
|
+
s.metadata = {
|
14
|
+
"bug_tracker_uri" => "https://github.com/decidim/decidim/issues",
|
15
|
+
"documentation_uri" => "https://docs.decidim.org/",
|
16
|
+
"funding_uri" => "https://opencollective.com/decidim",
|
17
|
+
"homepage_uri" => "https://decidim.org",
|
18
|
+
"source_code_uri" => "https://github.com/decidim/decidim"
|
19
|
+
}
|
20
|
+
s.required_ruby_version = "~> 3.1.0"
|
21
|
+
|
22
|
+
s.summary = "Decidim verifications module"
|
23
|
+
s.description = "Several verification methods for your decidim instance"
|
24
|
+
s.license = "AGPL-3.0"
|
25
|
+
|
26
|
+
s.files = Dir.chdir(__dir__) do
|
27
|
+
`git ls-files -z`.split("\x0").select do |f|
|
28
|
+
(File.expand_path(f) == __FILE__) ||
|
29
|
+
f.start_with?(*%w(app/ config/ db/ lib/ Rakefile README.md))
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
s.add_dependency "decidim-core", Decidim::Verifications.version
|
34
|
+
|
35
|
+
s.add_development_dependency "decidim-admin", Decidim::Verifications.version
|
36
|
+
s.add_development_dependency "decidim-dev", Decidim::Verifications.version
|
37
|
+
end
|
@@ -38,6 +38,11 @@ module Decidim
|
|
38
38
|
initializer "decidim_verifications.webpacker.assets_path" do
|
39
39
|
Decidim.register_assets_path File.expand_path("app/packs", root)
|
40
40
|
end
|
41
|
+
|
42
|
+
initializer "decidim_verifications.register_icons" do
|
43
|
+
Decidim.icons.register(name: "fingerprint-2-line", icon: "fingerprint-2-line", category: "system", description: "", engine: :verifications)
|
44
|
+
Decidim.icons.register(name: "message-3-line", icon: "message-3-line", category: "system", description: "", engine: :verifications)
|
45
|
+
end
|
41
46
|
end
|
42
47
|
end
|
43
48
|
end
|
@@ -5,13 +5,19 @@ require "decidim/dev"
|
|
5
5
|
|
6
6
|
FactoryBot.define do
|
7
7
|
factory :csv_datum, class: "Decidim::Verifications::CsvDatum" do
|
8
|
+
transient do
|
9
|
+
skip_injection { false }
|
10
|
+
end
|
8
11
|
email { generate(:email) }
|
9
12
|
organization
|
10
13
|
end
|
11
14
|
|
12
15
|
factory :conflict, class: "Decidim::Verifications::Conflict" do
|
13
|
-
|
14
|
-
|
16
|
+
transient do
|
17
|
+
skip_injection { false }
|
18
|
+
end
|
19
|
+
current_user { create(:user, skip_injection:) }
|
20
|
+
managed_user { create(:user, managed: true, organization: current_user.organization, skip_injection:) }
|
15
21
|
unique_id { "12345678X" }
|
16
22
|
times { 1 }
|
17
23
|
end
|
@@ -25,4 +25,11 @@ module Decidim
|
|
25
25
|
def self.authorization_handlers
|
26
26
|
Decidim::Verifications.workflows.select(&:form)
|
27
27
|
end
|
28
|
+
|
29
|
+
module Verifications
|
30
|
+
include ActiveSupport::Configurable
|
31
|
+
config_accessor :document_types do
|
32
|
+
%w(identification_number passport)
|
33
|
+
end
|
34
|
+
end
|
28
35
|
end
|
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.28.
|
4
|
+
version: 0.28.1
|
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:
|
11
|
+
date: 2024-04-30 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.28.
|
19
|
+
version: 0.28.1
|
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.28.
|
26
|
+
version: 0.28.1
|
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.28.
|
33
|
+
version: 0.28.1
|
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.28.
|
40
|
+
version: 0.28.1
|
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.28.
|
47
|
+
version: 0.28.1
|
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.28.
|
54
|
+
version: 0.28.1
|
55
55
|
description: Several verification methods for your decidim instance
|
56
56
|
email:
|
57
57
|
- deivid.rodriguez@riseup.net
|
@@ -75,6 +75,7 @@ files:
|
|
75
75
|
- app/commands/decidim/verifications/perform_authorization_step.rb
|
76
76
|
- app/commands/decidim/verifications/revoke_all_authorizations.rb
|
77
77
|
- app/commands/decidim/verifications/revoke_by_condition_authorizations.rb
|
78
|
+
- app/controllers/concerns/decidim/admin/workflows_breadcrumb.rb
|
78
79
|
- app/controllers/concerns/decidim/verifications/renewable.rb
|
79
80
|
- app/controllers/decidim/verifications/admin/verifications_controller.rb
|
80
81
|
- app/controllers/decidim/verifications/application_controller.rb
|
@@ -145,7 +146,6 @@ files:
|
|
145
146
|
- app/views/dummy_authorization/_form.html.erb
|
146
147
|
- app/views/layouts/decidim/authorizations.html.erb
|
147
148
|
- config/assets.rb
|
148
|
-
- config/environment.rb
|
149
149
|
- config/locales/am-ET.yml
|
150
150
|
- config/locales/ar-SA.yml
|
151
151
|
- config/locales/ar.yml
|
@@ -178,6 +178,7 @@ files:
|
|
178
178
|
- config/locales/ga-IE.yml
|
179
179
|
- config/locales/gl.yml
|
180
180
|
- config/locales/gn-PY.yml
|
181
|
+
- config/locales/he-IL.yml
|
181
182
|
- config/locales/hr-HR.yml
|
182
183
|
- config/locales/hr.yml
|
183
184
|
- config/locales/hu.yml
|
@@ -228,6 +229,7 @@ files:
|
|
228
229
|
- db/migrate/20171030133426_move_authorizations_to_new_api.rb
|
229
230
|
- db/migrate/20181227135423_create_decidim_verifications_csv_data.rb
|
230
231
|
- db/migrate/20201028161118_create_decidim_verifications_conflicts.rb
|
232
|
+
- decidim-verifications.gemspec
|
231
233
|
- lib/decidim/verifications.rb
|
232
234
|
- lib/decidim/verifications/adapter.rb
|
233
235
|
- lib/decidim/verifications/csv_census.rb
|
@@ -264,23 +266,23 @@ metadata:
|
|
264
266
|
funding_uri: https://opencollective.com/decidim
|
265
267
|
homepage_uri: https://decidim.org
|
266
268
|
source_code_uri: https://github.com/decidim/decidim
|
267
|
-
post_install_message:
|
269
|
+
post_install_message:
|
268
270
|
rdoc_options: []
|
269
271
|
require_paths:
|
270
272
|
- lib
|
271
273
|
required_ruby_version: !ruby/object:Gem::Requirement
|
272
274
|
requirements:
|
273
|
-
- - "
|
275
|
+
- - "~>"
|
274
276
|
- !ruby/object:Gem::Version
|
275
|
-
version:
|
277
|
+
version: 3.1.0
|
276
278
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
277
279
|
requirements:
|
278
|
-
- - "
|
280
|
+
- - ">="
|
279
281
|
- !ruby/object:Gem::Version
|
280
|
-
version:
|
282
|
+
version: '0'
|
281
283
|
requirements: []
|
282
|
-
rubygems_version: 3.
|
283
|
-
signing_key:
|
284
|
+
rubygems_version: 3.5.9
|
285
|
+
signing_key:
|
284
286
|
specification_version: 4
|
285
287
|
summary: Decidim verifications module
|
286
288
|
test_files: []
|
data/config/environment.rb
DELETED