From 0e192cc830a2239fc2b42c4cfcda336c2dd297bb Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Tue, 6 Nov 2018 09:33:18 +0100 Subject: [PATCH] Ensure that temporary report is always deleted [SCI-2834] --- Dockerfile | 2 +- Dockerfile.production | 2 +- Gemfile | 2 +- app/models/project.rb | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 47d677a69..2fa0a78d8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ruby:2.4.3 +FROM ruby:2.4.4 MAINTAINER BioSistemika # additional dependecies diff --git a/Dockerfile.production b/Dockerfile.production index f4c51a94f..f95743e4b 100644 --- a/Dockerfile.production +++ b/Dockerfile.production @@ -1,4 +1,4 @@ -FROM ruby:2.4.3 +FROM ruby:2.4.4 MAINTAINER BioSistemika # additional dependecies diff --git a/Gemfile b/Gemfile index dfd12a3d4..02f2b5800 100644 --- a/Gemfile +++ b/Gemfile @@ -1,6 +1,6 @@ source 'http://rubygems.org' -ruby '2.4.3' +ruby '2.4.4' gem 'rails', '5.1.6' gem 'webpacker', '~> 2.0' diff --git a/app/models/project.rb b/app/models/project.rb index bcfe98e9c..4566b1708 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -286,5 +286,7 @@ class Project < ApplicationRecord current_team: team, extra: '--keep-relative-links' ) + ensure + report.destroy if report.present? end end