Skip to content

Commit

Permalink
Fix wicked_pdf version to 2.7.0 and more (#34)
Browse files Browse the repository at this point in the history
* Fix wicked_pdf version to 2.7.0

* Add webpacker initializer

* Add missing translations of surveys
  • Loading branch information
laurajaime authored Apr 17, 2024
1 parent d0e7ec1 commit 167ded1
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ gem "decidim-idcat_mobil", "~> 0.3.0"
gem "decidim-cdtb"

gem "bootsnap", "~> 1.3"
gem "wicked_pdf", "~> 2.1"
gem "wicked_pdf", "~> 2.7.0"

# Blob storage in the cloud
gem "azure-storage-blob"
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ GEM
websocket-extensions (0.1.5)
wicked (1.4.0)
railties (>= 3.0.7)
wicked_pdf (2.8.0)
wicked_pdf (2.7.0)
activesupport
wisper (2.0.1)
wisper-rspec (1.1.0)
Expand Down Expand Up @@ -953,7 +953,7 @@ DEPENDENCIES
spring (~> 2.0)
spring-watcher-listen (~> 2.0)
web-console (~> 4.0)
wicked_pdf (~> 2.1)
wicked_pdf (~> 2.7.0)

RUBY VERSION
ruby 3.0.2p107
Expand Down
4 changes: 4 additions & 0 deletions config/initializers/webpacker.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

# This is a fix when sending the customized survey answer confirmation email
require "webpacker/version"
10 changes: 10 additions & 0 deletions config/locales/ca.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
ca:
# Remove when create the translations in Decidim
decidim:
surveys:
survey_confirmation_mailer:
confirmation:
body: Has respost correctament el qüestionari %{questionnaire_title} dins de %{participatory_space}
subject: Confirmació de resposta al qüestionari %{questionnaire_title}
export_name: Repostes del qüestionari
10 changes: 10 additions & 0 deletions config/locales/es.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
es:
# Remove when create the translations in Decidim
decidim:
surveys:
survey_confirmation_mailer:
confirmation:
body: Has contestado correctamente al cuestionario %{questionnaire_title} dentro de %{participatory_space}
subject: Confirmación de respuesta al cuestionario %{questionnaire_title}
export_name: Respuestas del cuestionario
1 change: 1 addition & 0 deletions spec/features/remove_overrides_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
RSpec.describe "Overrides" do
it "remove overrides after upgrading to v0.28" do
# - Check header and application overrides views to set Google Tag Manager (see #22 and "Add Google Tag Manager to admin backoffice" in the README)
# - Remove `survey_confirmation_mailer` translations when Decidim has them
expect(Decidim.version).to be < "0.28"
end
end

0 comments on commit 167ded1

Please sign in to comment.