From 29393f469ea423a787bf9cad31886a9b68e18fad Mon Sep 17 00:00:00 2001 From: Piotr Stachyra Date: Tue, 27 Oct 2020 01:07:13 +0100 Subject: [PATCH] More ends_with? => end_with? --- lib/compiler.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/compiler.rb b/lib/compiler.rb index ba77a97dd..1839f95ff 100644 --- a/lib/compiler.rb +++ b/lib/compiler.rb @@ -678,14 +678,14 @@ def patch_win32_makefile_sub target_content.each_line do |line| if found.zero? && (line =~ /^CFLAGS = (.*)$/) found = 1 - if Regexp.last_match(1).ends_with?(" #{@cflags}") + if Regexp.last_match(1).end_with?(" #{@cflags}") f.puts line else f.puts "CFLAGS = #{Regexp.last_match(1)} #{@cflags}" end elsif found == 1 && (line =~ /^LDFLAGS = (.*)$/) found = 2 - if Regexp.last_match(1).ends_with?(" #{@ldflags}") + if Regexp.last_match(1).end_with?(" #{@ldflags}") f.puts line else f.puts "LDFLAGS = #{Regexp.last_match(1)} #{@ldflags}" @@ -709,7 +709,7 @@ def patch_common_mk target_content.each_line do |line| if !found && (line =~ /^INCFLAGS = (.*)$/) found = true - if Regexp.last_match(1).ends_with?(" #{@cflags}") + if Regexp.last_match(1).end_with?(" #{@cflags}") f.puts line else f.puts "INCFLAGS = #{Regexp.last_match(1)} #{@cflags}"