Merge pull request #2932 from rolandwalker/alfred_2_only

make clear that only Alfred 2.x is supported
This commit is contained in:
Roland Walker 2014-02-14 21:28:20 -05:00
commit 97f8141308
3 changed files with 6 additions and 6 deletions

View File

@ -224,8 +224,8 @@ You can add Casks to your existing (or new) Taps: just create a directory named
## Alfred Integration
I've been using Casks along with Alfred to great effect. Just add
`/opt/homebrew-cask/Caskroom` as a Search Scope in Alfred's preferences or
I've been using Casks along with Alfred 2 to great effect. Just add
manage the scope addition via `brew cask alfred`. Then applications become
available in Alfred immediately after a `brew cask install`. Your fingertips
will thank you.

View File

@ -36,7 +36,7 @@ class Cask::CLI::Alfred
def self.assert_installed
if !alfred_installed?
opoo "Could not find Alfred preferences, Alfred is probably not installed."
opoo "Could not find Alfred 2 preferences, Alfred 2 is probably not installed."
end
alfred_installed?
end
@ -80,7 +80,7 @@ class Cask::CLI::Alfred
end
def self.alfred_installed?
alfred_preference('version') =~ /^[0-9]\.[0-9]/
alfred_preference('version') =~ /^2\.[0-9]/
end
def self.linked?

View File

@ -22,7 +22,7 @@ describe Cask::CLI::Alfred do
TestHelper.must_output(self, lambda {
Cask::CLI::Alfred.run('status', Cask::FakeSystemCommand)
}, "Warning: Could not find Alfred preferences, Alfred is probably not installed.")
}, "Warning: Could not find Alfred 2 preferences, Alfred 2 is probably not installed.")
end
it "properly reports when alfred is installed but unlinked" do
@ -48,7 +48,7 @@ describe Cask::CLI::Alfred do
TestHelper.must_output(self, lambda {
Cask::CLI::Alfred.run('link', Cask::FakeSystemCommand)
}, "Warning: Could not find Alfred preferences, Alfred is probably not installed.")
}, "Warning: Could not find Alfred 2 preferences, Alfred 2 is probably not installed.")
end
it "warns when alfred is already linked" do
@ -110,7 +110,7 @@ describe Cask::CLI::Alfred do
TestHelper.must_output(self, lambda {
Cask::CLI::Alfred.run('unlink', Cask::FakeSystemCommand)
}, "Warning: Could not find Alfred preferences, Alfred is probably not installed.")
}, "Warning: Could not find Alfred 2 preferences, Alfred 2 is probably not installed.")
end
it "warns when alfred is already unlinked" do