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.
- checksums.yaml +4 -4
- data/lib/decidim/pages/feature.rb +14 -18
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f93b76f5337ce1512ed22ddc1799d09813ee40a
|
4
|
+
data.tar.gz: a49ce50d55480fbfb165b46b371288caacad5b54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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::
|
56
|
-
|
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
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
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
|
-
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
70
|
+
version: 0.4.4
|
71
71
|
description: A pages component for decidim's participatory processes.
|
72
72
|
email:
|
73
73
|
- josepjaume@gmail.com
|