From 27c1cc1d7f44e31c6a41f00998697f70643ea920 Mon Sep 17 00:00:00 2001 From: commitay Date: Sun, 22 Oct 2017 04:11:55 +1000 Subject: [PATCH] squiggly heredocs (#4628) * squiggly heredocs * style: lilypond-dev --- Casks/java8.rb | 2 +- Casks/libreoffice-still.rb | 2 +- Casks/lilypond-dev.rb | 8 ++++---- Casks/tunnelblick-beta.rb | 2 +- Casks/virtualbox-extension-pack-beta.rb | 2 +- Casks/wine-devel.rb | 2 +- Casks/wine-staging.rb | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Casks/java8.rb b/Casks/java8.rb index a843c3175..9543a6fb1 100644 --- a/Casks/java8.rb +++ b/Casks/java8.rb @@ -84,7 +84,7 @@ cask 'java8' do ], rmdir: '~/Library/Application Support/Oracle/' - caveats <<-EOS.undent + caveats <<~EOS This Cask makes minor modifications to the JRE to prevent issues with packaged applications, as discussed here: diff --git a/Casks/libreoffice-still.rb b/Casks/libreoffice-still.rb index 4313eac75..bc44cd6bd 100644 --- a/Casks/libreoffice-still.rb +++ b/Casks/libreoffice-still.rb @@ -26,7 +26,7 @@ cask 'libreoffice-still' do binary shimscript, target: 'soffice' preflight do - IO.write shimscript, <<-EOS.undent + IO.write shimscript, <<~EOS #!/bin/sh '#{appdir}/LibreOffice.app/Contents/MacOS/soffice' "$@" EOS diff --git a/Casks/lilypond-dev.rb b/Casks/lilypond-dev.rb index 13752434b..1ae61a779 100644 --- a/Casks/lilypond-dev.rb +++ b/Casks/lilypond-dev.rb @@ -24,10 +24,10 @@ cask 'lilypond-dev' do preflight do binaries.each do |shimscript| # shim script (https://github.com/caskroom/homebrew-cask/issues/18809) - IO.write "#{staged_path}/#{shimscript}.wrapper.sh", <<-EOS.undent - #!/bin/sh - exec '#{appdir}/LilyPond.app/Contents/Resources/bin/#{shimscript}' "$@" - EOS + IO.write "#{staged_path}/#{shimscript}.wrapper.sh", <<~EOS + #!/bin/sh + exec '#{appdir}/LilyPond.app/Contents/Resources/bin/#{shimscript}' "$@" + EOS end end diff --git a/Casks/tunnelblick-beta.rb b/Casks/tunnelblick-beta.rb index 44feb82a3..c3f226f8f 100644 --- a/Casks/tunnelblick-beta.rb +++ b/Casks/tunnelblick-beta.rb @@ -31,7 +31,7 @@ cask 'tunnelblick-beta' do '~/Library/Preferences/net.tunnelblick.tunnelblick.plist', ] - caveats <<-EOS.undent + caveats <<~EOS For security reasons, #{token} must be installed to /Applications, and will request to be moved at launch. EOS diff --git a/Casks/virtualbox-extension-pack-beta.rb b/Casks/virtualbox-extension-pack-beta.rb index 470fca6bd..4320f359a 100644 --- a/Casks/virtualbox-extension-pack-beta.rb +++ b/Casks/virtualbox-extension-pack-beta.rb @@ -32,7 +32,7 @@ cask 'virtualbox-extension-pack-beta' do sudo: true end - caveats <<-EOS.undent + caveats <<~EOS Installing this Cask means you have AGREED to the VirtualBox Personal Use and Evaluation License at diff --git a/Casks/wine-devel.rb b/Casks/wine-devel.rb index ebcfb8e1f..11a1dc61e 100644 --- a/Casks/wine-devel.rb +++ b/Casks/wine-devel.rb @@ -26,7 +26,7 @@ cask 'wine-devel' do ], delete: '/Applications/Wine Devel.app' - caveats <<-EOS.undent + caveats <<~EOS #{token} installs support for running 64 bit applications in Wine, which is considered experimental. If you do not want 64 bit support, you should download and install the #{token} package manually. EOS diff --git a/Casks/wine-staging.rb b/Casks/wine-staging.rb index dc3258fb7..bd0cebbce 100644 --- a/Casks/wine-staging.rb +++ b/Casks/wine-staging.rb @@ -27,7 +27,7 @@ cask 'wine-staging' do ], delete: '/Applications/Wine Staging.app' - caveats <<-EOS.undent + caveats <<~EOS #{token} installs support for running 64 bit applications in Wine, which is considered experimental. If you do not want 64 bit support, you should download and install the #{token} package manually. EOS