Skip to content

Commit 054c106

Browse files
Piotr Stachyra64kramsystem
authored andcommitted
More ends_with? => end_with?
1 parent 3fefd9a commit 054c106

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/compiler.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -678,14 +678,14 @@ def patch_win32_makefile_sub
678678
target_content.each_line do |line|
679679
if found.zero? && (line =~ /^CFLAGS = (.*)$/)
680680
found = 1
681-
if Regexp.last_match(1).ends_with?(" #{@cflags}")
681+
if Regexp.last_match(1).end_with?(" #{@cflags}")
682682
f.puts line
683683
else
684684
f.puts "CFLAGS = #{Regexp.last_match(1)} #{@cflags}"
685685
end
686686
elsif found == 1 && (line =~ /^LDFLAGS = (.*)$/)
687687
found = 2
688-
if Regexp.last_match(1).ends_with?(" #{@ldflags}")
688+
if Regexp.last_match(1).end_with?(" #{@ldflags}")
689689
f.puts line
690690
else
691691
f.puts "LDFLAGS = #{Regexp.last_match(1)} #{@ldflags}"
@@ -709,7 +709,7 @@ def patch_common_mk
709709
target_content.each_line do |line|
710710
if !found && (line =~ /^INCFLAGS = (.*)$/)
711711
found = true
712-
if Regexp.last_match(1).ends_with?(" #{@cflags}")
712+
if Regexp.last_match(1).end_with?(" #{@cflags}")
713713
f.puts line
714714
else
715715
f.puts "INCFLAGS = #{Regexp.last_match(1)} #{@cflags}"

0 commit comments

Comments
 (0)