decidim-system 0.14.4 → 0.15.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: 452dc40f124cfd2e61192fb09d8aca6bf5641a10e9f7878cd61e85bb8de0eeb1
4
- data.tar.gz: 5292194f1c9775769c70b8fbd4f88bd996f739764a941f9d60b0009fb3dca885
3
+ metadata.gz: 7e1107ce35fb53bbe16014bc7f3543f4403612ddd42aa048fc5afa9176f8a9b4
4
+ data.tar.gz: 3e0848dbfa2ad4c55e255f28af2b822596ab9ca40bf4b6de5edd10f573683089
5
5
  SHA512:
6
- metadata.gz: 8d0c97f42ba9bfc97826616865c63016c1752a0503bfa0821f62b0c5464f9bab32d4e6104819c1d0b54c1f1e123d0b6c39689aef8343d052f74cbecc80979a5e
7
- data.tar.gz: f12e213e906cfb6d11450040a62265ca341c5e109ea6ba9db0593253e43903fddeeffab4f9a2557e7493f0309b88870f2e5561a874af78dd8b2bf86e0121f9f2
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
- DEFAULT_CONTENT_BLOCKS.each_with_index do |manifest_name, index|
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: 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
@@ -50,6 +50,7 @@ module Decidim
50
50
  reference_prefix: form.reference_prefix,
51
51
  available_locales: form.available_locales,
52
52
  available_authorizations: form.clean_available_authorizations,
53
+ badges_enabled: true,
53
54
  default_locale: form.default_locale
54
55
  )
55
56
  end
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-system version.
5
5
  module System
6
6
  def self.version
7
- "0.14.4"
7
+ "0.15.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-system
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.4
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-10-24 00:00:00.000000000 Z
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.14.4
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.14.4
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.14.4
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.14.4
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.7
255
+ rubygems_version: 2.7.6
256
256
  signing_key:
257
257
  specification_version: 4
258
258
  summary: Decidim system administration