Skip to content

Commit 7f66111

Browse files
authored
Merge pull request #199907 from Homebrew/language-heredocs-m
m*: use language-specific heredoc delimiters
2 parents abaa5af + e90f729 commit 7f66111

31 files changed

+64
-64
lines changed

Formula/m/macvim.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ def install
9393
# Simple test to check if MacVim was linked to Homebrew's Python 3
9494
py3_exec_prefix = shell_output(Formula["[email protected]"].opt_libexec/"bin/python-config --exec-prefix")
9595
assert_match py3_exec_prefix.chomp, output
96-
(testpath/"commands.vim").write <<~EOS
96+
(testpath/"commands.vim").write <<~VIM
9797
:python3 import vim; vim.current.buffer[0] = 'hello python3'
9898
:wq
99-
EOS
99+
VIM
100100
system bin/"mvim", "-v", "-T", "dumb", "-s", "commands.vim", "test.txt"
101101
assert_equal "hello python3", (testpath/"test.txt").read.chomp
102102
end

Formula/m/mailcatcher.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def install
184184
smtp_port = free_port
185185
http_port = free_port
186186
system bin/"mailcatcher", "--smtp-port", smtp_port.to_s, "--http-port", http_port.to_s
187-
(testpath/"mailcatcher.exp").write <<~EOS
187+
(testpath/"mailcatcher.exp").write <<~EXPECT
188188
#!/usr/bin/env expect
189189
190190
set timeout 3
@@ -235,7 +235,7 @@ def install
235235
"221 *" { }
236236
eof { exit }
237237
}
238-
EOS
238+
EXPECT
239239

240240
system "expect", "-f", "mailcatcher.exp"
241241
assert_match "[email protected]", shell_output("curl --silent http://localhost:#{http_port}/messages")

Formula/m/makeself.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ def install
2525
source = testpath/"source"
2626
source.mkdir
2727
(source/"foo").write "bar"
28-
(source/"script.sh").write <<~EOS
28+
(source/"script.sh").write <<~SH
2929
#!/bin/sh
3030
echo 'Hello Homebrew!'
31-
EOS
31+
SH
3232
chmod 0755, source/"script.sh"
3333
system bin/"makeself", source, "testfile.run", "'A test file'", "./script.sh"
3434
assert_match "Hello Homebrew!", shell_output("./testfile.run --target output")

Formula/m/[email protected]

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@ def install
123123
end
124124

125125
# Install my.cnf that binds to 127.0.0.1 by default
126-
(buildpath/"my.cnf").write <<~EOS
126+
(buildpath/"my.cnf").write <<~INI
127127
# Default Homebrew MySQL server config
128128
[mysqld]
129129
# Only allow connections from localhost
130130
bind-address = 127.0.0.1
131-
EOS
131+
INI
132132
etc.install "my.cnf"
133133
end
134134

Formula/m/[email protected]

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,12 @@ def install
137137
end
138138

139139
# Install my.cnf that binds to 127.0.0.1 by default
140-
(buildpath/"my.cnf").write <<~EOS
140+
(buildpath/"my.cnf").write <<~INI
141141
# Default Homebrew MySQL server config
142142
[mysqld]
143143
# Only allow connections from localhost
144144
bind-address = 127.0.0.1
145-
EOS
145+
INI
146146
etc.install "my.cnf"
147147
end
148148

Formula/m/[email protected]

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,12 @@ def install
122122
end
123123

124124
# Install my.cnf that binds to 127.0.0.1 by default
125-
(buildpath/"my.cnf").write <<~EOS
125+
(buildpath/"my.cnf").write <<~INI
126126
# Default Homebrew MySQL server config
127127
[mysqld]
128128
# Only allow connections from localhost
129129
bind-address = 127.0.0.1
130-
EOS
130+
INI
131131
etc.install "my.cnf"
132132
end
133133

Formula/m/[email protected]

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,12 @@ def install
122122
end
123123

124124
# Install my.cnf that binds to 127.0.0.1 by default
125-
(buildpath/"my.cnf").write <<~EOS
125+
(buildpath/"my.cnf").write <<~INI
126126
# Default Homebrew MySQL server config
127127
[mysqld]
128128
# Only allow connections from localhost
129129
bind-address = 127.0.0.1
130-
EOS
130+
INI
131131
etc.install "my.cnf"
132132
end
133133

Formula/m/[email protected]

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,12 @@ def install
137137
end
138138

139139
# Install my.cnf that binds to 127.0.0.1 by default
140-
(buildpath/"my.cnf").write <<~EOS
140+
(buildpath/"my.cnf").write <<~INI
141141
# Default Homebrew MySQL server config
142142
[mysqld]
143143
# Only allow connections from localhost
144144
bind-address = 127.0.0.1
145-
EOS
145+
INI
146146
etc.install "my.cnf"
147147
end
148148

Formula/m/[email protected]

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,12 @@ def install
121121
end
122122

123123
# Install my.cnf that binds to 127.0.0.1 by default
124-
(buildpath/"my.cnf").write <<~EOS
124+
(buildpath/"my.cnf").write <<~INI
125125
# Default Homebrew MySQL server config
126126
[mysqld]
127127
# Only allow connections from localhost
128128
bind-address = 127.0.0.1
129-
EOS
129+
INI
130130
etc.install "my.cnf"
131131
end
132132

Formula/m/[email protected]

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,12 @@ def install
136136
end
137137

138138
# Install my.cnf that binds to 127.0.0.1 by default
139-
(buildpath/"my.cnf").write <<~EOS
139+
(buildpath/"my.cnf").write <<~INI
140140
# Default Homebrew MySQL server config
141141
[mysqld]
142142
# Only allow connections from localhost
143143
bind-address = 127.0.0.1
144-
EOS
144+
INI
145145
etc.install "my.cnf"
146146
end
147147

0 commit comments

Comments
 (0)