decidim-system 0.14.4 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of decidim-system might be problematic. Click here for more details.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e1107ce35fb53bbe16014bc7f3543f4403612ddd42aa048fc5afa9176f8a9b4
|
4
|
+
data.tar.gz: 3e0848dbfa2ad4c55e255f28af2b822596ab9ca40bf4b6de5edd10f573683089
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8744b025ae0d917b67a5ec55081e7f4e8b00386c84873749d865dabe4f9dfa701ca1806c23b8db36485e4009702ddd31b132e36b4b48238b901542fcb6fb5dd4
|
7
|
+
data.tar.gz: 3f824cdd71b493e03070cc079c221a0591d06590d74577ea3f9c99e3fd1c0e96fc10825ecc2159ebd3b8f3c42408cc95957d902be7ee1c92e0104417167f2829
|
@@ -6,7 +6,7 @@ module Decidim
|
|
6
6
|
# for a newly-created organization.
|
7
7
|
class CreateDefaultContentBlocks < Rectify::Command
|
8
8
|
DEFAULT_CONTENT_BLOCKS =
|
9
|
-
[:hero, :sub_hero, :highlighted_content_banner, :how_to_participate, :stats, :footer_sub_hero].freeze
|
9
|
+
[:hero, :sub_hero, :highlighted_content_banner, :how_to_participate, :stats, :metrics, :footer_sub_hero].freeze
|
10
10
|
|
11
11
|
# Public: Initializes the command.
|
12
12
|
#
|
@@ -19,13 +19,13 @@ module Decidim
|
|
19
19
|
#
|
20
20
|
# Returns nothing.
|
21
21
|
def call
|
22
|
-
|
22
|
+
content_blocks.each_with_index do |manifest, index|
|
23
23
|
weight = (index + 1) * 10
|
24
24
|
Decidim::ContentBlock.create(
|
25
25
|
decidim_organization_id: organization.id,
|
26
26
|
weight: weight,
|
27
27
|
scope: :homepage,
|
28
|
-
manifest_name:
|
28
|
+
manifest_name: manifest.name,
|
29
29
|
published_at: Time.current
|
30
30
|
)
|
31
31
|
end
|
@@ -33,6 +33,10 @@ module Decidim
|
|
33
33
|
|
34
34
|
private
|
35
35
|
|
36
|
+
def content_blocks
|
37
|
+
Decidim.content_blocks.for(:homepage).select(&:default)
|
38
|
+
end
|
39
|
+
|
36
40
|
attr_reader :organization
|
37
41
|
end
|
38
42
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-system
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-
|
13
|
+
date: 2018-11-12 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: active_link_to
|
@@ -32,14 +32,14 @@ dependencies:
|
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.
|
35
|
+
version: 0.15.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.
|
42
|
+
version: 0.15.0
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: devise
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,14 +136,14 @@ dependencies:
|
|
136
136
|
requirements:
|
137
137
|
- - '='
|
138
138
|
- !ruby/object:Gem::Version
|
139
|
-
version: 0.
|
139
|
+
version: 0.15.0
|
140
140
|
type: :development
|
141
141
|
prerelease: false
|
142
142
|
version_requirements: !ruby/object:Gem::Requirement
|
143
143
|
requirements:
|
144
144
|
- - '='
|
145
145
|
- !ruby/object:Gem::Version
|
146
|
-
version: 0.
|
146
|
+
version: 0.15.0
|
147
147
|
description: System administration to create new organization in an installation.
|
148
148
|
email:
|
149
149
|
- josepjaume@gmail.com
|
@@ -252,7 +252,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
252
252
|
version: '0'
|
253
253
|
requirements: []
|
254
254
|
rubyforge_project:
|
255
|
-
rubygems_version: 2.7.
|
255
|
+
rubygems_version: 2.7.6
|
256
256
|
signing_key:
|
257
257
|
specification_version: 4
|
258
258
|
summary: Decidim system administration
|