Claudia 5be80a78f6
Use Homebrew-controlled domain for Cask dummy URLs
In a number of Cask specs, the value of the `homepage` stanza is currently set
to https://example.com. As of 2018-11-28, the TLS certificate served by
example.com seems to be expired, possibly due to an oversight on ICANN’s side.

While the certificate is certainly going to be renewed soon, it would be
desirable for Homebrew’s test result to be less dependent on ICANN’s actions.
This commit changes the homepages of all test Casks to http://brew.sh, whose
domain and TLS certificate are both controlled by Homebrew.
2018-11-28 20:51:55 +01:00

24 lines
606 B
Ruby

cask 'with-caveats' do
version '1.2.3'
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
homepage 'https://brew.sh'
app 'Caffeine.app'
# simple string is evaluated at compile-time
caveats <<~EOS
Here are some things you might want to know.
EOS
# do block is evaluated at install-time
caveats do
"Cask token: #{token}"
end
# a do block may print and use a DSL
caveats do
puts 'Custom text via puts followed by DSL-generated text:'
path_environment_variable('/custom/path/bin')
end
end