decidim-initiatives 0.29.0.rc2 → 0.29.0.rc4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d2ff257bdf1757d1c71db9ba132ceb522ea557b19e3f1b877db03d280927f6a0
4
- data.tar.gz: 54bd0f5b8a64147c12b719d25256f3673791c3c230072bacb010ecc79328e803
3
+ metadata.gz: 82010b6df3f1ce5068602b9e09b0067e82c4e51ce28cc22dce6520a2d3ae805e
4
+ data.tar.gz: 26c6986c7dfa6f0463294534d9eb649fc47231ed6cdac165f9ae112f5e7aa722
5
5
  SHA512:
6
- metadata.gz: 73c50ffd2e831c135dd3eb7281578845496075de4573a2eb8fac27d75cc5815f95eb2bee8c703ec9dc6688e1aa62a52e34493aca1302bd5f6a0fbf53399bf556
7
- data.tar.gz: 9b306583e4758026745a123fe0b7877e361503d87d9b41c9959ffd61dd61ae5b21efb0e4e1bd68c8d79afcfe3b5e204e54bb51539ac78401a53af16f91c0e7ba
6
+ metadata.gz: aa5fe6f3c9931ccb90407786f76ed185052889624204e8414cdf619c6386e01a02c563aae98806d8952bb77d5a69d7b33c9a08fb1572c9723793f730854797c4
7
+ data.tar.gz: d2a5a99d82223842f55d84623463068c5ec16a405138264602cb925837ca082dabf378dcff0d035e6ca341a5280907e189f050acf491cc0c15d5857994363368
@@ -11,16 +11,14 @@ module Decidim
11
11
  Decidim::Initiatives::Engine.routes.url_helpers.initiative_path(model)
12
12
  end
13
13
 
14
- def has_image?
15
- image.present?
16
- end
17
-
18
14
  def image
19
15
  @image ||= model.attachments.find(&:image?)
20
16
  end
21
17
 
22
- def resource_image_path
23
- image.url if has_image?
18
+ def resource_image_url
19
+ return if image.blank?
20
+
21
+ image.url
24
22
  end
25
23
 
26
24
  def metadata_cell
@@ -15,11 +15,11 @@
15
15
  data-close-on-click="true">
16
16
  <ul class="vertical menu add-components">
17
17
  <% %w(CSV JSON).each do |format| %>
18
- <li class="exports--format--<%= format.downcase %> exports--initiatives">
19
- <%= link_to t("decidim.admin.exports.export_as", name: t("decidim.initiatives.admin.exports.initiatives"),
20
- export_format: format.upcase),
21
- export_initiatives_path(format:, collection_ids:) %>
22
- </li>
18
+ <%= link_to export_initiatives_path(format:, collection_ids:) do %>
19
+ <li class="exports--format--<%= format.downcase %> exports--initiatives">
20
+ <%= t("decidim.admin.exports.export_as", name: t("decidim.initiatives.admin.exports.initiatives"), export_format: format.upcase) %>
21
+ </li>
22
+ <% end %>
23
23
  <% end %>
24
24
  </ul>
25
25
  </div>
@@ -1,12 +1,12 @@
1
1
  <% add_decidim_meta_tags({
2
- image_url: current_initiative.type.attached_uploader(:banner_image).path,
2
+ image_url: current_initiative.type.attached_uploader(:banner_image).url,
3
3
  description: translated_attribute(current_initiative.description),
4
4
  title: translated_attribute(current_initiative.title),
5
5
  url: initiative_url(current_initiative.id)
6
6
  }) %>
7
7
 
8
8
  <% add_decidim_page_title(translated_attribute(current_initiative.title)) %>
9
- <% provide :meta_image_url, current_initiative.type.attached_uploader(:banner_image).path %>
9
+ <% provide :meta_image_url, current_initiative.type.attached_uploader(:banner_image).url %>
10
10
 
11
11
  <%= render layout: "layouts/decidim/shared/layout_center" do %>
12
12
  <div class="text-center py-10">
@@ -2,7 +2,7 @@
2
2
  <div class="pt-10">
3
3
  <div class="initiative-letterhead">
4
4
  <% if current_organization.logo.present? %>
5
- <%= image_tag current_organization.attached_uploader(:logo).path(variant: :medium), title: current_organization_name %>
5
+ <%= image_tag current_organization.attached_uploader(:logo).variant_url(:medium), title: current_organization_name %>
6
6
  <% end %>
7
7
 
8
8
  <%= current_organization_name %>
@@ -1,5 +1,5 @@
1
1
  <% add_decidim_meta_tags({
2
- image_url: current_initiative.type.attached_uploader(:banner_image).path,
2
+ image_url: current_initiative.type.attached_uploader(:banner_image).url,
3
3
  description: translated_attribute(current_initiative.description),
4
4
  title: translated_attribute(current_initiative.title),
5
5
  url: initiative_url(current_initiative.id)
@@ -1,7 +1,7 @@
1
1
  <div class="process-header">
2
2
  <div>
3
3
  <div class="row column"
4
- style="background-image:url('<%= current_participatory_space.type.attached_uploader(:banner_image).path %>');">
4
+ style="background-image:url('<%= current_participatory_space.type.attached_uploader(:banner_image).url %>');">
5
5
  </div>
6
6
  <div class="row collapse column">
7
7
  <div class="columns">
@@ -1,7 +1,7 @@
1
1
  <%= append_javascript_pack_tag "decidim_initiatives" %>
2
2
  <%= append_stylesheet_pack_tag "decidim_initiatives", media: "all" %>
3
3
 
4
- <% provide :meta_image_url, current_participatory_space.type.attached_uploader(:banner_image).path %>
4
+ <% provide :meta_image_url, current_participatory_space.type.attached_uploader(:banner_image).url %>
5
5
 
6
6
  <%= render "layouts/decidim/application" do %>
7
7
  <%= render layout: "layouts/decidim/shared/layout_center" do %>
@@ -1,7 +1,7 @@
1
1
  <%= append_javascript_pack_tag "decidim_initiatives" %>
2
2
  <%= append_stylesheet_pack_tag "decidim_initiatives", media: "all" %>
3
3
 
4
- <% provide :meta_image_url, current_initiative.type.attached_uploader(:banner_image).path %>
4
+ <% provide :meta_image_url, current_initiative.type.attached_uploader(:banner_image).url %>
5
5
 
6
6
  <%= render partial: "layouts/decidim/header/follow_space_menu_bar_button", locals: { participatory_space: current_participatory_space } %>
7
7
 
@@ -36,7 +36,10 @@ Gem::Specification.new do |s|
36
36
  s.add_dependency "decidim-verifications", Decidim::Initiatives.version
37
37
  s.add_dependency "hexapdf", "~> 0.32.0"
38
38
  s.add_dependency "wicked_pdf", "~> 2.1"
39
- s.add_dependency "wkhtmltopdf-binary", "~> 0.12"
39
+ # Latest version of wkhtmltopdf-binary downloads more versions of the binary
40
+ # This brings problems with deployment in certain environments, as Heroku
41
+ # Hopefully they will fix this situation soon
42
+ s.add_dependency "wkhtmltopdf-binary", "= 0.12.6.6"
40
43
 
41
44
  s.add_development_dependency "decidim-dev", Decidim::Initiatives.version
42
45
  s.add_development_dependency "decidim-meetings", Decidim::Initiatives.version
@@ -23,7 +23,7 @@ module Decidim
23
23
  field :initiatives, [Decidim::Initiatives::InitiativeType, { null: true }], "The initiatives that have this type", null: false
24
24
 
25
25
  def banner_image
26
- object.attached_uploader(:banner_image).path
26
+ object.attached_uploader(:banner_image).url
27
27
  end
28
28
  end
29
29
  end
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-initiatives version.
5
5
  module Initiatives
6
6
  def self.version
7
- "0.29.0.rc2"
7
+ "0.29.0.rc4"
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-initiatives
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.29.0.rc2
4
+ version: 0.29.0.rc4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Salvador Perez Garcia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-16 00:00:00.000000000 Z
11
+ date: 2024-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: decidim-admin
@@ -16,56 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.29.0.rc2
19
+ version: 0.29.0.rc4
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.29.0.rc2
26
+ version: 0.29.0.rc4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: decidim-comments
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.29.0.rc2
33
+ version: 0.29.0.rc4
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.29.0.rc2
40
+ version: 0.29.0.rc4
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: decidim-core
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 0.29.0.rc2
47
+ version: 0.29.0.rc4
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.29.0.rc2
54
+ version: 0.29.0.rc4
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: decidim-verifications
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 0.29.0.rc2
61
+ version: 0.29.0.rc4
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 0.29.0.rc2
68
+ version: 0.29.0.rc4
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: hexapdf
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -98,44 +98,44 @@ dependencies:
98
98
  name: wkhtmltopdf-binary
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - '='
102
102
  - !ruby/object:Gem::Version
103
- version: '0.12'
103
+ version: 0.12.6.6
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - '='
109
109
  - !ruby/object:Gem::Version
110
- version: '0.12'
110
+ version: 0.12.6.6
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: decidim-dev
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - '='
116
116
  - !ruby/object:Gem::Version
117
- version: 0.29.0.rc2
117
+ version: 0.29.0.rc4
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - '='
123
123
  - !ruby/object:Gem::Version
124
- version: 0.29.0.rc2
124
+ version: 0.29.0.rc4
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: decidim-meetings
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - '='
130
130
  - !ruby/object:Gem::Version
131
- version: 0.29.0.rc2
131
+ version: 0.29.0.rc4
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - '='
137
137
  - !ruby/object:Gem::Version
138
- version: 0.29.0.rc2
138
+ version: 0.29.0.rc4
139
139
  description: Participants initiatives plugin for decidim.
140
140
  email:
141
141
  - jsperezg@gmail.com