From 712e708c2d85f01b003d65fb0081b7b40e8a8271 Mon Sep 17 00:00:00 2001 From: joe-sharp Date: Thu, 29 Feb 2024 00:41:50 -0600 Subject: [PATCH] Fix extra new line when customising gemfiles When using `customize_gemfiles`, two new line characters end up being inserted after the block comment, but it should only be one. This trims out the output to remove it. Fixes #216. --- lib/appraisal/customize.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/appraisal/customize.rb b/lib/appraisal/customize.rb index a90ee431..a1aab51d 100644 --- a/lib/appraisal/customize.rb +++ b/lib/appraisal/customize.rb @@ -1,7 +1,7 @@ module Appraisal class Customize def initialize(heading: nil, single_quotes: false) - @@heading = heading + @@heading = heading&.chomp @@single_quotes = single_quotes end