Add indentation in here documents
@@ -128,11 +128,13 @@ module RMagick
# Test for a specific value in an enum type
def have_enum_value(enum, value, headers = nil, &b)
checking_for "#{enum}.#{value}" do
- if try_compile(<<"SRC", &b)
+ source = <<~"SRC"
#{COMMON_HEADERS}
#{cpp_include(headers)}
int main() { #{enum} t = #{value}; t = t; return 0; }
SRC
+
+ if try_compile(source, &b)
$defs.push(format('-DHAVE_ENUM_%s', value.upcase))
true
else
@@ -292,7 +294,7 @@ SRC
return dir_paths if found_lib
- exit_failure <<END_MINGW
+ exit_failure <<~END_MINGW
Can't install RMagick #{RMAGICK_VERS}.
Can't find the ImageMagick library.
Retry with '--with-opt-dir' option.
@@ -383,7 +385,7 @@ END_MINGW
end
def print_summary
- summary = <<"END_SUMMARY"
+ summary = <<~"END_SUMMARY"
#{'=' * 70}
