diff options
| author | Mike McQuaid | 2015-12-07 13:11:34 +0000 | 
|---|---|---|
| committer | Mike McQuaid | 2015-12-07 14:56:30 +0000 | 
| commit | bf2315b1f4ae0cb7c9bb80b651ef6389f66020b2 (patch) | |
| tree | 5e155d3b7869721b2ce260c2d8229154745ce5a8 /Library/Homebrew/cmd/info.rb | |
| parent | d603c03aa3dac553124d09e1e2b78dff8f408284 (diff) | |
| download | brew-bf2315b1f4ae0cb7c9bb80b651ef6389f66020b2.tar.bz2 | |
Use `(installed)` and emoji ticks consistently.
Across info, search and update.
Closes Homebrew/homebrew#45131.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Homebrew/cmd/info.rb')
| -rw-r--r-- | Library/Homebrew/cmd/info.rb | 18 | 
1 files changed, 1 insertions, 17 deletions
| diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb index 68e4c5425..a11044d5c 100644 --- a/Library/Homebrew/cmd/info.rb +++ b/Library/Homebrew/cmd/info.rb @@ -147,24 +147,8 @@ module Homebrew    end    def decorate_dependencies(dependencies) -    # necessary for 1.8.7 unicode handling since many installs are on 1.8.7 -    tick = ["2714".hex].pack("U*") -    cross = ["2718".hex].pack("U*") -      deps_status = dependencies.collect do |dep| -      if dep.installed? -        color = Tty.green -        symbol = tick -      else -        color = Tty.red -        symbol = cross -      end -      if ENV["HOMEBREW_NO_EMOJI"] -        colored_dep = "#{color}#{dep}" -      else -        colored_dep = "#{dep} #{color}#{symbol}" -      end -      "#{colored_dep}#{Tty.reset}" +      dep.installed? ? pretty_installed(dep) : pretty_uninstalled(dep)      end      deps_status * ", "    end | 
