fix github links in `brew cask info`

refs #294
This commit is contained in:
phinze 2013-05-11 14:02:53 -05:00
parent ce94c6de2a
commit a8b343b869
2 changed files with 3 additions and 3 deletions

View File

@ -34,6 +34,6 @@ class Cask::CLI::Info
tap = cask.class.all_titles.grep(/#{tap}$/).first unless tap =~ /\//
tap, name = tap.split "/"
user, repo = tap.split "-"
"https://github.com/#{user}/#{repo}/commits/master/Casks/#{name}.rb"
"https://github.com/#{user}/homebrew-#{repo}/commits/master/Casks/#{name}.rb"
end
end

View File

@ -8,7 +8,7 @@ describe Cask::CLI::Info do
local-caffeine: 1.2.3
http://example.com/local-caffeine
Not installed
https://github.com/phinze/testcasks/commits/master/Casks/local-caffeine.rb
https://github.com/phinze/homebrew-testcasks/commits/master/Casks/local-caffeine.rb
CLIOUTPUT
end
@ -23,7 +23,7 @@ describe Cask::CLI::Info do
local-transmission: 2.61
http://example.com/local-transmission
Not installed
https://github.com/phinze/testcasks/commits/master/Casks/local-transmission.rb
https://github.com/phinze/homebrew-testcasks/commits/master/Casks/local-transmission.rb
CLIOUTPUT
end
end