decidim-pages 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/decidim/pages/feature.rb +14 -18
  3. metadata +7 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 96b0c4b3942fd8cd122dee202d176f1796902972
4
- data.tar.gz: 7b5d55ff4d6520bbe72d9b2519547334a11ff41d
3
+ metadata.gz: 1f93b76f5337ce1512ed22ddc1799d09813ee40a
4
+ data.tar.gz: a49ce50d55480fbfb165b46b371288caacad5b54
5
5
  SHA512:
6
- metadata.gz: 33c22da7024e712eb94cc5ff3300f573b04c526db3ce2d228d16e898a106ff40d5428f204b063ac8a8a61e92c4f4c75831d4fba96efc35258705946cd3b08ea3
7
- data.tar.gz: c4c79d5629d2e70ba057c39a920c4da9c20de056f2804607e1feacf034193fc7fc2df831fa276df86957e2b9b3962d68f3b8c4189791394693fd149a64179267
6
+ metadata.gz: af424738f7e943d1589e8699bc6a892fc1a73080756482ef536d8e7c69a02cb1cfb0ad0b89c8cbc030dada9b6517223377c2da14750b4fde073c2a89cd334b5c
7
+ data.tar.gz: cd475c5b013c258672c7368ad68d2f16877c6c8fbe46477cd0c851c58b7a729ab5a3b05c0dae681a56755df2d3445dda92524665f9c950db720e6defcddff2a5
@@ -51,25 +51,21 @@ Decidim.register_feature(:pages) do |feature|
51
51
  resource.model_class_name = "Decidim::Pages::Page"
52
52
  end
53
53
 
54
- feature.seeds do
55
- Decidim::ParticipatoryProcess.find_each do |process|
56
- next unless process.steps.any?
54
+ feature.seeds do |process|
55
+ feature = Decidim::Feature.create!(
56
+ name: Decidim::Features::Namer.new(process.organization.available_locales, :pages).i18n_name,
57
+ manifest_name: :pages,
58
+ published_at: Time.current,
59
+ participatory_process: process
60
+ )
57
61
 
58
- feature = Decidim::Feature.create!(
59
- name: Decidim::Features::Namer.new(process.organization.available_locales, :pages).i18n_name,
60
- manifest_name: :pages,
61
- published_at: Time.current,
62
- participatory_process: process
63
- )
62
+ page = Decidim::Pages::Page.create!(
63
+ feature: feature,
64
+ body: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
65
+ Decidim::Faker::Localized.paragraph(3)
66
+ end
67
+ )
64
68
 
65
- page = Decidim::Pages::Page.create!(
66
- feature: feature,
67
- body: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
68
- Decidim::Faker::Localized.paragraph(3)
69
- end
70
- )
71
-
72
- Decidim::Comments::Seed.comments_for(page)
73
- end
69
+ Decidim::Comments::Seed.comments_for(page)
74
70
  end
75
71
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -18,28 +18,28 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.4.3
21
+ version: 0.4.4
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 0.4.3
28
+ version: 0.4.4
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: decidim-comments
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.4.3
35
+ version: 0.4.4
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.4.3
42
+ version: 0.4.4
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: rectify
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -60,14 +60,14 @@ dependencies:
60
60
  requirements:
61
61
  - - '='
62
62
  - !ruby/object:Gem::Version
63
- version: 0.4.3
63
+ version: 0.4.4
64
64
  type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - '='
69
69
  - !ruby/object:Gem::Version
70
- version: 0.4.3
70
+ version: 0.4.4
71
71
  description: A pages component for decidim's participatory processes.
72
72
  email:
73
73
  - josepjaume@gmail.com