decidim-verifications 0.27.9 → 0.28.0.rc4
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 -26
- data/app/cells/decidim/verifications/revocations/show.erb +18 -16
- data/app/commands/decidim/verifications/authorize_user.rb +24 -3
- data/app/commands/decidim/verifications/confirm_user_authorization.rb +1 -1
- data/app/commands/decidim/verifications/csv_census/admin/create_census_data.rb +1 -1
- data/app/commands/decidim/verifications/id_documents/admin/confirm_user_offline_authorization.rb +1 -1
- data/app/commands/decidim/verifications/perform_authorization_step.rb +1 -1
- data/app/commands/decidim/verifications/revoke_all_authorizations.rb +2 -2
- data/app/commands/decidim/verifications/revoke_by_condition_authorizations.rb +3 -3
- data/app/controllers/concerns/decidim/verifications/renewable.rb +2 -2
- data/app/controllers/decidim/verifications/application_controller.rb +3 -0
- data/app/controllers/decidim/verifications/authorizations_controller.rb +20 -4
- data/app/controllers/decidim/verifications/id_documents/authorizations_controller.rb +6 -6
- data/app/controllers/decidim/verifications/sms/authorizations_controller.rb +7 -11
- data/app/events/decidim/verifications/managed_user_error_event.rb +3 -8
- data/app/forms/decidim/verifications/id_documents/information_form.rb +4 -8
- data/app/forms/decidim/verifications/postal_letter/postage_form.rb +1 -1
- data/app/forms/decidim/verifications/sms/mobile_phone_form.rb +7 -3
- data/app/helpers/decidim/verifications/application_helper.rb +91 -0
- data/app/jobs/decidim/verifications/csv_census/application_job.rb +1 -1
- data/app/jobs/decidim/verifications/csv_census/remove_duplicates_job.rb +1 -1
- data/app/models/decidim/verifications/csv_census/data.rb +1 -1
- data/app/models/decidim/verifications/csv_datum.rb +3 -3
- data/app/packs/entrypoints/decidim_verifications.js +2 -0
- data/app/packs/stylesheets/verifications.scss +58 -0
- data/app/presenters/decidim/verifications/postal_letter/authorization_presenter.rb +1 -1
- data/app/queries/decidim/verifications/authorizations.rb +2 -2
- data/app/services/decidim/authorization_handler.rb +45 -13
- data/app/views/decidim/verifications/authorizations/_item.html.erb +31 -0
- data/app/views/decidim/verifications/authorizations/first_login.html.erb +20 -21
- data/app/views/decidim/verifications/authorizations/index.html.erb +28 -73
- data/app/views/decidim/verifications/authorizations/new.html.erb +27 -29
- data/app/views/decidim/verifications/authorizations/renew_modal.html.erb +23 -30
- data/app/views/decidim/verifications/csv_census/admin/census/index.html.erb +54 -39
- data/app/views/decidim/verifications/csv_census/admin/census/instructions.html.erb +3 -2
- data/app/views/decidim/verifications/id_documents/admin/config/edit.html.erb +30 -21
- data/app/views/decidim/verifications/id_documents/admin/confirmations/new.html.erb +38 -22
- data/app/views/decidim/verifications/id_documents/admin/offline_confirmations/new.html.erb +39 -21
- data/app/views/decidim/verifications/id_documents/admin/pending_authorizations/index.html.erb +4 -4
- data/app/views/decidim/verifications/id_documents/authorizations/_form.html.erb +4 -10
- data/app/views/decidim/verifications/id_documents/authorizations/choose.html.erb +10 -19
- data/app/views/decidim/verifications/id_documents/authorizations/edit.html.erb +32 -41
- data/app/views/decidim/verifications/id_documents/authorizations/new.html.erb +19 -25
- data/app/views/decidim/verifications/postal_letter/admin/pending_authorizations/index.html.erb +53 -48
- data/app/views/decidim/verifications/postal_letter/authorizations/edit.html.erb +32 -34
- data/app/views/decidim/verifications/postal_letter/authorizations/new.html.erb +20 -25
- data/app/views/decidim/verifications/sms/authorizations/edit.html.erb +25 -34
- data/app/views/decidim/verifications/sms/authorizations/new.html.erb +20 -25
- data/app/views/dummy_authorization/_form.html.erb +6 -16
- data/app/views/layouts/decidim/authorizations.html.erb +8 -0
- data/config/assets.rb +8 -0
- data/config/locales/ar.yml +3 -50
- data/config/locales/bg.yml +4 -266
- data/config/locales/ca.yml +46 -39
- data/config/locales/cs.yml +48 -41
- data/config/locales/de.yml +44 -37
- data/config/locales/el.yml +3 -59
- data/config/locales/en.yml +52 -45
- data/config/locales/es-MX.yml +47 -40
- data/config/locales/es-PY.yml +47 -40
- data/config/locales/es.yml +46 -39
- data/config/locales/eu.yml +51 -44
- data/config/locales/fi-plain.yml +48 -41
- data/config/locales/fi.yml +48 -41
- data/config/locales/fr-CA.yml +50 -43
- data/config/locales/fr.yml +50 -43
- data/config/locales/ga-IE.yml +2 -1
- data/config/locales/gl.yml +3 -59
- data/config/locales/hu.yml +48 -43
- data/config/locales/id-ID.yml +3 -50
- data/config/locales/is-IS.yml +3 -22
- data/config/locales/it.yml +3 -59
- data/config/locales/ja.yml +50 -43
- data/config/locales/lt.yml +43 -35
- data/config/locales/lv.yml +1 -58
- data/config/locales/nl.yml +3 -59
- data/config/locales/no.yml +3 -59
- data/config/locales/pl.yml +3 -80
- data/config/locales/pt-BR.yml +3 -66
- data/config/locales/pt.yml +3 -59
- data/config/locales/ro-RO.yml +7 -59
- data/config/locales/ru.yml +3 -28
- data/config/locales/sk.yml +3 -58
- data/config/locales/sv.yml +7 -62
- data/config/locales/tr-TR.yml +3 -60
- data/config/locales/uk.yml +3 -28
- data/config/locales/zh-CN.yml +3 -59
- data/config/locales/zh-TW.yml +33 -25
- data/lib/decidim/verifications/adapter.rb +7 -7
- data/lib/decidim/verifications/csv_census/workflow.rb +1 -0
- data/lib/decidim/verifications/id_documents/workflow.rb +1 -0
- data/lib/decidim/verifications/postal_letter/workflow.rb +1 -0
- data/lib/decidim/verifications/sms/engine.rb +2 -1
- data/lib/decidim/verifications/sms/example_gateway.rb +3 -2
- data/lib/decidim/verifications/test/factories.rb +2 -8
- data/lib/decidim/verifications/version.rb +1 -1
- data/lib/decidim/verifications/workflow_manifest.rb +2 -1
- data/lib/decidim/verifications/workflows.rb +2 -2
- data/lib/decidim/verifications.rb +0 -7
- metadata +26 -18
- data/app/views/decidim/verifications/authorizations/_granted_authorization.html.erb +0 -32
- data/config/locales/he-IL.yml +0 -1
- data/decidim-verifications.gemspec +0 -30
@@ -5,7 +5,7 @@ module Decidim
|
|
5
5
|
class InvalidVerificationRoute < StandardError
|
6
6
|
def new(route:)
|
7
7
|
msg = <<~MSG
|
8
|
-
You specified a direct handler but you
|
8
|
+
You specified a direct handler but you are trying to use `#{route}`
|
9
9
|
which is only available for multi-step authorization workflows. Change
|
10
10
|
your workflow to define an engine with a `#{route}` route.
|
11
11
|
MSG
|
@@ -63,16 +63,16 @@ module Decidim
|
|
63
63
|
@manifest = manifest
|
64
64
|
end
|
65
65
|
|
66
|
-
delegate :key, :name, :fullname, :description, :type, to: :manifest
|
66
|
+
delegate :key, :name, :fullname, :description, :type, :icon, to: :manifest
|
67
67
|
|
68
68
|
#
|
69
69
|
# Main entry point for the verification engine
|
70
70
|
#
|
71
71
|
def root_path(redirect_url: nil)
|
72
72
|
if manifest.type == "direct"
|
73
|
-
decidim_verifications.new_authorization_path(redirect_params(handler: name, redirect_url:
|
73
|
+
decidim_verifications.new_authorization_path(redirect_params(handler: name, redirect_url:))
|
74
74
|
else
|
75
|
-
main_engine.send(:root_path, redirect_params(redirect_url:
|
75
|
+
main_engine.send(:root_path, redirect_params(redirect_url:))
|
76
76
|
end
|
77
77
|
end
|
78
78
|
|
@@ -84,7 +84,7 @@ module Decidim
|
|
84
84
|
raise InvalidVerificationRoute.new(route: "edit_authorization_path") if manifest.type == "direct"
|
85
85
|
raise MissingVerificationRoute.new(handler: name, route: "edit_authorization_path", action: "resume") unless main_engine.respond_to?(:edit_authorization_path)
|
86
86
|
|
87
|
-
main_engine.send(:edit_authorization_path, redirect_params(redirect_url:
|
87
|
+
main_engine.send(:edit_authorization_path, redirect_params(redirect_url:))
|
88
88
|
end
|
89
89
|
|
90
90
|
#
|
@@ -93,11 +93,11 @@ module Decidim
|
|
93
93
|
#
|
94
94
|
def renew_path(redirect_url: nil)
|
95
95
|
if manifest.type == "direct"
|
96
|
-
decidim_verifications.renew_authorizations_path(redirect_params(handler: name, redirect_url:
|
96
|
+
decidim_verifications.renew_authorizations_path(redirect_params(handler: name, redirect_url:))
|
97
97
|
else
|
98
98
|
raise MissingVerificationRoute.new(handler: name, route: "renew_authorization_path", action: "renew") unless main_engine.respond_to?(:renew_authorization_path)
|
99
99
|
|
100
|
-
main_engine.send(:renew_authorization_path, redirect_params(redirect_url:
|
100
|
+
main_engine.send(:renew_authorization_path, redirect_params(redirect_url:))
|
101
101
|
end
|
102
102
|
end
|
103
103
|
|
@@ -18,10 +18,11 @@ module Decidim
|
|
18
18
|
root to: "authorizations#new"
|
19
19
|
end
|
20
20
|
|
21
|
-
initializer "
|
21
|
+
initializer "decidim_verifications_sms.workflow" do |_app|
|
22
22
|
if Decidim.sms_gateway_service
|
23
23
|
Decidim::Verifications.register_workflow(:sms) do |workflow|
|
24
24
|
workflow.engine = Decidim::Verifications::Sms::Engine
|
25
|
+
workflow.icon = "message-3-line"
|
25
26
|
end
|
26
27
|
end
|
27
28
|
end
|
@@ -4,11 +4,12 @@ module Decidim
|
|
4
4
|
module Verifications
|
5
5
|
module Sms
|
6
6
|
class ExampleGateway
|
7
|
-
attr_reader :mobile_phone_number, :code
|
7
|
+
attr_reader :mobile_phone_number, :code, :context
|
8
8
|
|
9
|
-
def initialize(mobile_phone_number, code)
|
9
|
+
def initialize(mobile_phone_number, code, context = {})
|
10
10
|
@mobile_phone_number = mobile_phone_number
|
11
11
|
@code = code
|
12
|
+
@context = context
|
12
13
|
end
|
13
14
|
|
14
15
|
def deliver_code
|
@@ -5,19 +5,13 @@ 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
|
11
8
|
email { generate(:email) }
|
12
9
|
organization
|
13
10
|
end
|
14
11
|
|
15
12
|
factory :conflict, class: "Decidim::Verifications::Conflict" do
|
16
|
-
|
17
|
-
|
18
|
-
end
|
19
|
-
current_user { create(:user, skip_injection: skip_injection) }
|
20
|
-
managed_user { create(:user, managed: true, organization: current_user.organization, skip_injection: skip_injection) }
|
13
|
+
current_user { create(:user) }
|
14
|
+
managed_user { create(:user, managed: true, organization: current_user.organization) }
|
21
15
|
unique_id { "12345678X" }
|
22
16
|
times { 1 }
|
23
17
|
end
|
@@ -21,7 +21,7 @@ module Decidim
|
|
21
21
|
#
|
22
22
|
# Note that whereas direct methods can be used for "on the fly"
|
23
23
|
# verification, deferred methods require the authorization status to be
|
24
|
-
# persisted into DB. That
|
24
|
+
# persisted into DB. That is the reason why only direct methods can be used
|
25
25
|
# for user impersonation, for example, since they require continuous "on the
|
26
26
|
# fly" verification by the impersonating user.
|
27
27
|
#
|
@@ -37,6 +37,7 @@ module Decidim
|
|
37
37
|
attribute :renewable, Boolean, default: true
|
38
38
|
attribute :time_between_renewals, ActiveSupport::Duration, default: 1.day
|
39
39
|
attribute :metadata_cell, String, default: "decidim/verifications/authorization_metadata"
|
40
|
+
attribute :icon, String
|
40
41
|
|
41
42
|
validate :engine_or_form
|
42
43
|
|
@@ -23,8 +23,8 @@ module Decidim
|
|
23
23
|
#
|
24
24
|
# Registers a new verification workflow using the workflow manifest API
|
25
25
|
#
|
26
|
-
def register_workflow(name, &
|
27
|
-
registry.register_workflow(name, &
|
26
|
+
def register_workflow(name, &)
|
27
|
+
registry.register_workflow(name, &)
|
28
28
|
end
|
29
29
|
|
30
30
|
#
|
@@ -25,11 +25,4 @@ 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
|
35
28
|
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.
|
4
|
+
version: 0.28.0.rc4
|
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-12-11 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.28.0.rc4
|
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.28.0.rc4
|
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.28.0.rc4
|
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.28.0.rc4
|
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.28.0.rc4
|
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.28.0.rc4
|
55
55
|
description: Several verification methods for your decidim instance
|
56
56
|
email:
|
57
57
|
- deivid.rodriguez@riseup.net
|
@@ -105,6 +105,7 @@ files:
|
|
105
105
|
- app/forms/decidim/verifications/postal_letter/postage_form.rb
|
106
106
|
- app/forms/decidim/verifications/sms/confirmation_form.rb
|
107
107
|
- app/forms/decidim/verifications/sms/mobile_phone_form.rb
|
108
|
+
- app/helpers/decidim/verifications/application_helper.rb
|
108
109
|
- app/jobs/decidim/verifications/csv_census/application_job.rb
|
109
110
|
- app/jobs/decidim/verifications/csv_census/remove_duplicates_job.rb
|
110
111
|
- app/models/decidim/verifications/application_record.rb
|
@@ -112,6 +113,8 @@ files:
|
|
112
113
|
- app/models/decidim/verifications/csv_census/data.rb
|
113
114
|
- app/models/decidim/verifications/csv_census/status.rb
|
114
115
|
- app/models/decidim/verifications/csv_datum.rb
|
116
|
+
- app/packs/entrypoints/decidim_verifications.js
|
117
|
+
- app/packs/stylesheets/verifications.scss
|
115
118
|
- app/presenters/decidim/verifications/id_documents/authorization_presenter.rb
|
116
119
|
- app/presenters/decidim/verifications/postal_letter/authorization_presenter.rb
|
117
120
|
- app/queries/decidim/verifications/authorizations.rb
|
@@ -119,7 +122,7 @@ files:
|
|
119
122
|
- app/services/decidim/authorization_handler.rb
|
120
123
|
- app/uploaders/decidim/cw/verifications/attachment_uploader.rb
|
121
124
|
- app/uploaders/decidim/verifications/attachment_uploader.rb
|
122
|
-
- app/views/decidim/verifications/authorizations/
|
125
|
+
- app/views/decidim/verifications/authorizations/_item.html.erb
|
123
126
|
- app/views/decidim/verifications/authorizations/first_login.html.erb
|
124
127
|
- app/views/decidim/verifications/authorizations/index.html.erb
|
125
128
|
- app/views/decidim/verifications/authorizations/new.html.erb
|
@@ -140,6 +143,8 @@ files:
|
|
140
143
|
- app/views/decidim/verifications/sms/authorizations/edit.html.erb
|
141
144
|
- app/views/decidim/verifications/sms/authorizations/new.html.erb
|
142
145
|
- app/views/dummy_authorization/_form.html.erb
|
146
|
+
- app/views/layouts/decidim/authorizations.html.erb
|
147
|
+
- config/assets.rb
|
143
148
|
- config/locales/am-ET.yml
|
144
149
|
- config/locales/ar-SA.yml
|
145
150
|
- config/locales/ar.yml
|
@@ -172,7 +177,6 @@ files:
|
|
172
177
|
- config/locales/ga-IE.yml
|
173
178
|
- config/locales/gl.yml
|
174
179
|
- config/locales/gn-PY.yml
|
175
|
-
- config/locales/he-IL.yml
|
176
180
|
- config/locales/hr-HR.yml
|
177
181
|
- config/locales/hr.yml
|
178
182
|
- config/locales/hu.yml
|
@@ -223,7 +227,6 @@ files:
|
|
223
227
|
- db/migrate/20171030133426_move_authorizations_to_new_api.rb
|
224
228
|
- db/migrate/20181227135423_create_decidim_verifications_csv_data.rb
|
225
229
|
- db/migrate/20201028161118_create_decidim_verifications_conflicts.rb
|
226
|
-
- decidim-verifications.gemspec
|
227
230
|
- lib/decidim/verifications.rb
|
228
231
|
- lib/decidim/verifications/adapter.rb
|
229
232
|
- lib/decidim/verifications/csv_census.rb
|
@@ -251,26 +254,31 @@ files:
|
|
251
254
|
- lib/decidim/verifications/version.rb
|
252
255
|
- lib/decidim/verifications/workflow_manifest.rb
|
253
256
|
- lib/decidim/verifications/workflows.rb
|
254
|
-
homepage: https://
|
257
|
+
homepage: https://decidim.org
|
255
258
|
licenses:
|
256
259
|
- AGPL-3.0
|
257
|
-
metadata:
|
260
|
+
metadata:
|
261
|
+
bug_tracker_uri: https://github.com/decidim/decidim/issues
|
262
|
+
documentation_uri: https://docs.decidim.org/
|
263
|
+
funding_uri: https://opencollective.com/decidim
|
264
|
+
homepage_uri: https://decidim.org
|
265
|
+
source_code_uri: https://github.com/decidim/decidim
|
258
266
|
post_install_message:
|
259
267
|
rdoc_options: []
|
260
268
|
require_paths:
|
261
269
|
- lib
|
262
270
|
required_ruby_version: !ruby/object:Gem::Requirement
|
263
271
|
requirements:
|
264
|
-
- - "
|
272
|
+
- - ">="
|
265
273
|
- !ruby/object:Gem::Version
|
266
|
-
version: 3.
|
274
|
+
version: '3.1'
|
267
275
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
268
276
|
requirements:
|
269
|
-
- - "
|
277
|
+
- - ">"
|
270
278
|
- !ruby/object:Gem::Version
|
271
|
-
version:
|
279
|
+
version: 1.3.1
|
272
280
|
requirements: []
|
273
|
-
rubygems_version: 3.
|
281
|
+
rubygems_version: 3.4.20
|
274
282
|
signing_key:
|
275
283
|
specification_version: 4
|
276
284
|
summary: Decidim verifications module
|
@@ -1,32 +0,0 @@
|
|
1
|
-
<div class="card--list__text">
|
2
|
-
<%= icon "lock-locked", class: "card--list__icon", role: "img", "aria-hidden": true %>
|
3
|
-
<div>
|
4
|
-
<h5 class="card--list__heading">
|
5
|
-
<%= t("#{authorization.name}.name", scope: "decidim.authorization_handlers") %>
|
6
|
-
</h5>
|
7
|
-
<span class="text-small <%= "alert" if authorization.expired? %>">
|
8
|
-
<% if authorization.expired? %>
|
9
|
-
<%= t("expired_at", scope: "decidim.authorization_handlers", timestamp: l(authorization.expires_at, format: :long)) %>
|
10
|
-
<% else %>
|
11
|
-
<%= t("granted_at", scope: "decidim.authorization_handlers", timestamp: l(authorization.granted_at, format: :long)) %>
|
12
|
-
<% if authorization.expires_at.present? %>
|
13
|
-
<%= t("expires_at", scope: "decidim.authorization_handlers", timestamp: l(authorization.expires_at, format: :long)) %>
|
14
|
-
<% end %>
|
15
|
-
<% end %>
|
16
|
-
</span>
|
17
|
-
</div>
|
18
|
-
</div>
|
19
|
-
|
20
|
-
<% if authorization.expired? %>
|
21
|
-
<div class="card--list__data">
|
22
|
-
<span class="card--list__data__icon">
|
23
|
-
<%= icon "reload", aria_label: t("renew", scope: "decidim.authorization_handlers"), role: "img" %>
|
24
|
-
</span>
|
25
|
-
</div>
|
26
|
-
<% elsif authorization.renewable? %>
|
27
|
-
<div class="card--list__data">
|
28
|
-
<span class="card--list__data__icon">
|
29
|
-
<%= icon "reload", aria_label: t("renew", scope: "decidim.authorization_handlers"), role: "img" %>
|
30
|
-
</span>
|
31
|
-
</div>
|
32
|
-
<% end %>
|
data/config/locales/he-IL.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
he:
|
@@ -1,30 +0,0 @@
|
|
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://github.com/decidim/decidim"
|
13
|
-
s.required_ruby_version = "~> 3.0.0"
|
14
|
-
|
15
|
-
s.summary = "Decidim verifications module"
|
16
|
-
s.description = "Several verification methods for your decidim instance"
|
17
|
-
s.license = "AGPL-3.0"
|
18
|
-
|
19
|
-
s.files = Dir.chdir(__dir__) do
|
20
|
-
`git ls-files -z`.split("\x0").select do |f|
|
21
|
-
(File.expand_path(f) == __FILE__) ||
|
22
|
-
f.start_with?(*%w(app/ config/ db/ lib/ Rakefile README.md))
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
s.add_dependency "decidim-core", Decidim::Verifications.version
|
27
|
-
|
28
|
-
s.add_development_dependency "decidim-admin", Decidim::Verifications.version
|
29
|
-
s.add_development_dependency "decidim-dev", Decidim::Verifications.version
|
30
|
-
end
|