From ec0e9052ab84c36d43474e5276ff57378f57a3e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Tue, 29 Sep 2020 18:03:19 +0200 Subject: [PATCH 1/2] Fix extra spacing in deploy.rb For some reason rubocop/hound didn't report it in previous versions. --- config/deploy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/deploy.rb b/config/deploy.rb index c37e3c378..febb23f50 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -54,7 +54,7 @@ namespace :deploy do after "deploy:migrate", "add_new_settings" - after :publishing, "setup_puma" + after :publishing, "setup_puma" after :published, "deploy:restart" before "deploy:restart", "puma:restart" From 6a1b12db4cadc3ab833a6cfffa83bb50b7afff1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Tue, 29 Sep 2020 18:06:16 +0200 Subject: [PATCH 2/2] Fix indentation in XLSX file I'm not sure why we didn't detect it before; either Hound does not iden- tify the file as a Ruby file, or an older version of Rubocop didn't. --- app/views/legislation/processes/summary.xlsx.axlsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/views/legislation/processes/summary.xlsx.axlsx b/app/views/legislation/processes/summary.xlsx.axlsx index 97baddc24..3aaf73e88 100644 --- a/app/views/legislation/processes/summary.xlsx.axlsx +++ b/app/views/legislation/processes/summary.xlsx.axlsx @@ -1,8 +1,7 @@ xlsx_package.workbook.add_worksheet(name: "Summary") do |sheet| - -styles = xlsx_package.workbook.styles -title = styles.add_style(b:true) -link = styles.add_style(fg_color: "0000FF", u: true) + styles = xlsx_package.workbook.styles + title = styles.add_style(b: true) + link = styles.add_style(fg_color: "0000FF", u: true) if @process.debate_phase.enabled? && @process.questions.any? sheet.add_row [t("legislation.summary.debate_phase"), t("legislation.summary.debates", count: @process.questions.count)], style: title