decidim-dev 0.23.1 → 0.23.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/mailers/decidim/dummy_resources/dummy_resource_mailer.rb +17 -0
- data/config/locales/de.yml +1 -1
- data/config/locales/gl.yml +16 -0
- data/config/locales/si-LK.yml +1 -0
- data/config/locales/sw-KE.yml +1 -0
- data/config/locales/tr-TR.yml +25 -9
- data/lib/decidim/dev/assets/5000x5000.png +0 -0
- data/lib/decidim/dev/test/rspec_support/caching.rb +15 -0
- data/lib/decidim/dev/test/rspec_support/component.rb +7 -4
- data/lib/decidim/dev/version.rb +1 -1
- metadata +12 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ad5ceb0e132830c1d8974281e165ced3cac65c394431cd9f9694d07a67b1be0
|
4
|
+
data.tar.gz: 70768597d7e2d6f71e703d04b83b643a946347791784114f7b937d69e77586a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b27647ecbecea66b0240dce61e87abd9f0fe4bd01fc3c2877d02bca3a6b081773dfdcb3d4dcbfe7368205bc47a42657add65052c71e80f585a38ee609f3c5d3
|
7
|
+
data.tar.gz: bf9b55fde3e9eae43b26afebd9337cb92dcd90ba64a9d8c59b4e90e047b7ee65ff7eb2210763ce8ec5a81512ac7034203fdc480a551bf64e00d7845bf0b394d0
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Decidim
|
4
|
+
module DummyResources
|
5
|
+
class DummyResourceMailer < ApplicationMailer
|
6
|
+
def send_email(user, organization)
|
7
|
+
@user = user
|
8
|
+
@organization = organization
|
9
|
+
|
10
|
+
mail(to: "#{user.name} <#{user.email}>") do |format|
|
11
|
+
format.text { "This is the test" }
|
12
|
+
format.html { "<p>This is a mail </p>" }
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/config/locales/de.yml
CHANGED
data/config/locales/gl.yml
CHANGED
@@ -3,11 +3,27 @@ gl:
|
|
3
3
|
attributes:
|
4
4
|
dummy_resource:
|
5
5
|
created_at: Creado en
|
6
|
+
decidim_scope_id: Ámbito
|
6
7
|
field: O meu campo
|
7
8
|
start_date: Data de inicio
|
8
9
|
title: Título
|
10
|
+
translatable_text: Texto traducíbel
|
9
11
|
updated_at: Actualizado en
|
10
12
|
decidim:
|
13
|
+
components:
|
14
|
+
dummy:
|
15
|
+
settings:
|
16
|
+
global:
|
17
|
+
readonly_attribute: Atributo de só lectura
|
18
|
+
test: Unha proba
|
19
|
+
test_choices:
|
20
|
+
a: Opción A
|
21
|
+
b: Opción B
|
22
|
+
c: Opción C
|
23
|
+
step:
|
24
|
+
endorsements_blocked: Adhesións bloqueadas
|
25
|
+
endorsements_enabled: Adhesións habilitadas
|
26
|
+
readonly_step_attribute: Atributo de paso de só lectura
|
11
27
|
dummy:
|
12
28
|
admin:
|
13
29
|
exports:
|
@@ -0,0 +1 @@
|
|
1
|
+
si:
|
@@ -0,0 +1 @@
|
|
1
|
+
sw:
|
data/config/locales/tr-TR.yml
CHANGED
@@ -2,12 +2,28 @@ tr:
|
|
2
2
|
activemodel:
|
3
3
|
attributes:
|
4
4
|
dummy_resource:
|
5
|
-
created_at:
|
5
|
+
created_at: Oluşturuldu
|
6
|
+
decidim_scope_id: Kapsam
|
6
7
|
field: Benim alanım
|
7
8
|
start_date: Başlangıç tarihi
|
8
9
|
title: Başlık
|
9
|
-
|
10
|
+
translatable_text: Çeviri metni
|
11
|
+
updated_at: Güncellendi
|
10
12
|
decidim:
|
13
|
+
components:
|
14
|
+
dummy:
|
15
|
+
settings:
|
16
|
+
global:
|
17
|
+
readonly_attribute: Salt okunur özniteliği
|
18
|
+
test: Test
|
19
|
+
test_choices:
|
20
|
+
a: Seçenek
|
21
|
+
b: Seçim
|
22
|
+
c: Seçenek
|
23
|
+
step:
|
24
|
+
endorsements_blocked: Onaylar engellendi
|
25
|
+
endorsements_enabled: Onaylar etkinleştirildi
|
26
|
+
readonly_step_attribute: Salt okunur özniteliği
|
11
27
|
dummy:
|
12
28
|
admin:
|
13
29
|
exports:
|
@@ -27,14 +43,14 @@ tr:
|
|
27
43
|
pages:
|
28
44
|
home:
|
29
45
|
statistics:
|
30
|
-
bar:
|
31
|
-
dummies_count_high:
|
32
|
-
dummies_count_medium:
|
33
|
-
foo:
|
46
|
+
bar: Çubuk
|
47
|
+
dummies_count_high: Çok sahte
|
48
|
+
dummies_count_medium: Orta sahte
|
49
|
+
foo: Sahte değişken
|
34
50
|
participatory_processes:
|
35
51
|
statistics:
|
36
|
-
dummies_count_high:
|
37
|
-
dummies_count_medium:
|
52
|
+
dummies_count_high: Çok sahte
|
53
|
+
dummies_count_medium: Orta sahte
|
38
54
|
resource_links:
|
39
55
|
test_link:
|
40
|
-
dummy_resource_dummy: İlgili
|
56
|
+
dummy_resource_dummy: İlgili sahte konu
|
Binary file
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
RSpec.configure do |config|
|
4
|
+
config.around(:each, :caching) do |example|
|
5
|
+
caching = ActionController::Base.perform_caching
|
6
|
+
cache_store = ActionController::Base.cache_store
|
7
|
+
ActionController::Base.perform_caching = true
|
8
|
+
ActionController::Base.cache_store = ActiveSupport::Cache::MemoryStore.new
|
9
|
+
|
10
|
+
example.run
|
11
|
+
|
12
|
+
ActionController::Base.perform_caching = caching
|
13
|
+
ActionController::Base.cache_store = cache_store
|
14
|
+
end
|
15
|
+
end
|
@@ -106,10 +106,13 @@ module Decidim
|
|
106
106
|
end
|
107
107
|
|
108
108
|
def self.newsletter_participant_ids(component)
|
109
|
-
Decidim::DummyResources::DummyResource.where(component: component)
|
110
|
-
|
111
|
-
|
112
|
-
|
109
|
+
authors_ids = Decidim::DummyResources::DummyResource.where(component: component)
|
110
|
+
.where(decidim_author_type: Decidim::UserBaseEntity.name)
|
111
|
+
.where.not(author: nil)
|
112
|
+
.group(:decidim_author_id)
|
113
|
+
.pluck(:decidim_author_id)
|
114
|
+
commentators_ids = Decidim::Comments::Comment.user_commentators_ids_in(Decidim::DummyResources::DummyResource.where(component: component))
|
115
|
+
(authors_ids + commentators_ids).flatten.compact.uniq
|
113
116
|
end
|
114
117
|
end
|
115
118
|
|
data/lib/decidim/dev/version.rb
CHANGED
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-dev
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.23.
|
4
|
+
version: 0.23.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
8
8
|
- Marc Riera Casals
|
9
9
|
- Oriol Gual Oliva
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2021-05-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: capybara
|
@@ -32,14 +32,14 @@ dependencies:
|
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.23.
|
35
|
+
version: 0.23.6
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - '='
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 0.23.
|
42
|
+
version: 0.23.6
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: factory_bot_rails
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
@@ -378,6 +378,7 @@ files:
|
|
378
378
|
- app/commands/decidim/dummy_resources/create_dummy_resource.rb
|
379
379
|
- app/controllers/decidim/dummy_resources/dummy_resources_controller.rb
|
380
380
|
- app/forms/decidim/dummy_resources/dummy_resource_form.rb
|
381
|
+
- app/mailers/decidim/dummy_resources/dummy_resource_mailer.rb
|
381
382
|
- app/views/decidim/dummy_resource/_linked_dummys.html.erb
|
382
383
|
- app/views/decidim/dummy_resources/dummy_resources/foo.html.erb
|
383
384
|
- app/views/decidim/dummy_resources/dummy_resources/show.html.erb
|
@@ -434,12 +435,14 @@ files:
|
|
434
435
|
- config/locales/pt.yml
|
435
436
|
- config/locales/ro-RO.yml
|
436
437
|
- config/locales/ru.yml
|
438
|
+
- config/locales/si-LK.yml
|
437
439
|
- config/locales/sk-SK.yml
|
438
440
|
- config/locales/sk.yml
|
439
441
|
- config/locales/sl.yml
|
440
442
|
- config/locales/so-SO.yml
|
441
443
|
- config/locales/sr-CS.yml
|
442
444
|
- config/locales/sv.yml
|
445
|
+
- config/locales/sw-KE.yml
|
443
446
|
- config/locales/ti-ER.yml
|
444
447
|
- config/locales/tr-TR.yml
|
445
448
|
- config/locales/uk.yml
|
@@ -448,6 +451,7 @@ files:
|
|
448
451
|
- config/locales/zh-CN.yml
|
449
452
|
- config/locales/zh-TW.yml
|
450
453
|
- lib/decidim/dev.rb
|
454
|
+
- lib/decidim/dev/assets/5000x5000.png
|
451
455
|
- lib/decidim/dev/assets/Exampledocument.pdf
|
452
456
|
- lib/decidim/dev/assets/assemblies.json
|
453
457
|
- lib/decidim/dev/assets/assemblies_with_null.json
|
@@ -483,6 +487,7 @@ files:
|
|
483
487
|
- lib/decidim/dev/test/rspec_support/attachment_helpers.rb
|
484
488
|
- lib/decidim/dev/test/rspec_support/attachments.rb
|
485
489
|
- lib/decidim/dev/test/rspec_support/authorization.rb
|
490
|
+
- lib/decidim/dev/test/rspec_support/caching.rb
|
486
491
|
- lib/decidim/dev/test/rspec_support/capybara.rb
|
487
492
|
- lib/decidim/dev/test/rspec_support/capybara_data_picker.rb
|
488
493
|
- lib/decidim/dev/test/rspec_support/capybara_scopes_picker.rb
|
@@ -517,7 +522,7 @@ homepage: https://github.com/decidim/decidim
|
|
517
522
|
licenses:
|
518
523
|
- AGPL-3.0
|
519
524
|
metadata: {}
|
520
|
-
post_install_message:
|
525
|
+
post_install_message:
|
521
526
|
rdoc_options: []
|
522
527
|
require_paths:
|
523
528
|
- lib
|
@@ -533,7 +538,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
533
538
|
version: '0'
|
534
539
|
requirements: []
|
535
540
|
rubygems_version: 3.0.3
|
536
|
-
signing_key:
|
541
|
+
signing_key:
|
537
542
|
specification_version: 4
|
538
543
|
summary: Decidim dev tools
|
539
544
|
test_files: []
|