decidim-dev 0.17.2 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae678b341df13c60cd4f08decfec936831072f658f62a889cb0b47dba9108e16
4
- data.tar.gz: b0ad525230a1dcf80df9e8a9e0b68b541f59f0a18d1d3bae696d8e858377a0c7
3
+ metadata.gz: d87222f9f1f9d88e98ee8b46db5ed6e81fcf5329d9ba28db6b24c590f1f826fc
4
+ data.tar.gz: c9bebe21e335dc5e975f9382ac11cb9fb5ab046971e26ab8ec229ec7349643b8
5
5
  SHA512:
6
- metadata.gz: ff9b42d378f874ef43deee7e25e1d023b529173fb97a2e8608fd206be90531fb33775e97e8784458e1db831f44af9242efd60d7e9e8d02c7d39d47190081cbbb
7
- data.tar.gz: 89957c18501eb29d03b707d8ecffdc91207273d46fa0171a047f667d0e35e507440a6760e9795e726d378be6da574be4a674ca7dd1b980808d5422ea234e0da2
6
+ metadata.gz: 24ad860a7eeaf188d57c21acacf0fde0313fb54c0f5c5e702907b88931534b066589c111d6bda1716877ff08e7ee2912aa2757f6d775b4905a114b0b9c558352
7
+ data.tar.gz: 6dd76eb58124d83162fdd4e331d9d4d1fd4a9702faf9eff48b75911831d4202d7b63ff2d69b78d4c72f8630cabcaf4512bc0e187db75ab4a8f0b010759d9fff1
@@ -0,0 +1,40 @@
1
+ ar:
2
+ activemodel:
3
+ attributes:
4
+ dummy_resource:
5
+ created_at: أنشئت في
6
+ field: مجالي
7
+ start_date: تاريخ البداية
8
+ title: العنوان
9
+ updated_at: تم التحديث في
10
+ decidim:
11
+ dummy:
12
+ admin:
13
+ exports:
14
+ dummies: الدمى
15
+ gamification:
16
+ badges:
17
+ test:
18
+ conditions:
19
+ - استخدام بيئة اختبار ل decidim.
20
+ description: يحصل المشاركون على هذه الشارة عن طريق إنشاء اختبارات.
21
+ description_another: قام هذا المشارك بإنشاء %{score} اختبار.
22
+ description_own: لقد أنشأت %{score} اختبارات.
23
+ name: الاختبارات
24
+ next_level_in: إنشاء %{score} اختبارات أخرى للوصول إلى المستوى التالي!
25
+ unearned_another: لم ينشئ هذا المشارك أي اختبارات حتى الآن.
26
+ unearned_own: لم تنشئ أية اختبارات بعد.
27
+ pages:
28
+ home:
29
+ statistics:
30
+ bar: شريط
31
+ dummies_count_high: الدمى عالية
32
+ dummies_count_medium: الدمى المتوسطة
33
+ foo: فو
34
+ participatory_processes:
35
+ statistics:
36
+ dummies_count_high: الدمى عالية
37
+ dummies_count_medium: الدمى المتوسطة
38
+ resource_links:
39
+ test_link:
40
+ dummy_resource_dummy: الدمية ذات الصلة
@@ -52,6 +52,7 @@ module Decidim
52
52
  include Searchable
53
53
  include Paddable
54
54
  include Amendable
55
+ include Decidim::NewsletterParticipant
55
56
 
56
57
  searchable_fields(
57
58
  scope_id: { scope: :id },
@@ -83,6 +84,13 @@ module Decidim
83
84
  def self.export_serializer
84
85
  DummySerializer
85
86
  end
87
+
88
+ def self.newsletter_participant_ids(component)
89
+ Decidim::DummyResources::DummyResource.where(component: component).joins(:component)
90
+ .where(decidim_author_type: Decidim::UserBaseEntity.name)
91
+ .where.not(author: nil)
92
+ .pluck(:decidim_author_id).flatten.compact.uniq
93
+ end
86
94
  end
87
95
  end
88
96
  end
@@ -106,6 +114,8 @@ Decidim.register_component(:dummy) do |component|
106
114
 
107
115
  component.actions = %w(foo bar)
108
116
 
117
+ component.newsletter_participant_entities = ["Decidim::DummyResources::DummyResource"]
118
+
109
119
  component.settings(:global) do |settings|
110
120
  settings.attribute :comments_enabled, type: :boolean, default: true
111
121
  settings.attribute :resources_permissions_enabled, type: :boolean, default: true
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-dev version.
5
5
  module Dev
6
6
  def self.version
7
- "0.17.2"
7
+ "0.18.0"
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.2
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -32,14 +32,14 @@ dependencies:
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.17.2
35
+ version: 0.18.0
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.17.2
42
+ version: 0.18.0
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: factory_bot_rails
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -345,6 +345,7 @@ files:
345
345
  - app/views/decidim/dummy_resources/dummy_resources/foo.html.erb
346
346
  - app/views/decidim/dummy_resources/dummy_resources/show.html.erb
347
347
  - config/locales/ar-SA.yml
348
+ - config/locales/ar.yml
348
349
  - config/locales/ca.yml
349
350
  - config/locales/cs-CZ.yml
350
351
  - config/locales/cs.yml