diff options
author | Teddy Wing | 2022-08-05 01:34:46 +0200 |
---|---|---|
committer | Teddy Wing | 2022-08-05 01:34:46 +0200 |
commit | e1a8e86748c55ae6a143d1471d493e79eab001d5 (patch) | |
tree | 4f07ab466d95a32f900ebd2e2357884b7185dd4f | |
parent | 2c2e4991eb69edb2afada72f98919cce0c8082fc (diff) | |
download | homebrew-formulae-e1a8e86748c55ae6a143d1471d493e79eab001d5.tar.bz2 |
dome-key: Remove minimum OS version message
New taps were no longer possible with recent versions of Homebrew, as
their internal version APIs changed. On attempting to tap the
repository, the following error would prevent it:
$ brew audit --tap teddywing/formulae
Error: teddywing/formulae/dome-key: uninitialized constant OS::Mac::Version::SYMBOLS
Homebrew no longer has that identifier, and moved version numbers and
keys to a different class.
Remove the version check so that we don't depend on internal Homebrew
APIs which are liable to change at any time. Actually, knowing the
project, even the public APIs are liable to change at any time. And
since the `:lion` key hasn't existed in Homebrew for quite some time
now, it doesn't really make sense to have a programmatic check for Lion
since we have no way to check for it, and Homebrew doesn't support it
regardless.
-rw-r--r-- | HomebrewFormula/dome-key.rb | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/HomebrewFormula/dome-key.rb b/HomebrewFormula/dome-key.rb index 488171e..6b82ca0 100644 --- a/HomebrewFormula/dome-key.rb +++ b/HomebrewFormula/dome-key.rb @@ -9,18 +9,6 @@ class DomeKey < Formula url "https://domekey.teddywing.com/downloads/dome-key_1.0.tar.bz2" sha256 "03fd038e1ae67ce1fce949d2d5fcafb50bbee2f4344b71c16577929c557718a1" - # Rust code requires at least 10.7 - depends_on :macos => :lion if MacOS::Version::SYMBOLS.has_key?(:lion) - - def minimum_os - return "" if MacOS::Version::SYMBOLS.has_key?(:lion) - - <<~EOS - DomeKey requires Mac OS X 10.7 Lion or later. - - EOS - end - def install bin.install "dome-key" man1.install "dome-key.1" @@ -32,7 +20,9 @@ class DomeKey < Formula end def caveats; <<~EOS - #{minimum_os}To get started with a set of mappings, try running the these commands: + DomeKey requires Mac OS X 10.7 Lion or later. + + To get started with a set of mappings, try running the these commands: mkdir -p $HOME/.config/dome-key cat <<EOM > $HOME/.config/dome-key/mappings.dkmap |