diff options
| author | Alyssa Ross | 2017-01-20 12:27:49 +0000 |
|---|---|---|
| committer | Alyssa Ross | 2017-01-23 17:56:33 +0000 |
| commit | 13488183bd3fe9d0f8e84d66075c9c7d4cdc931d (patch) | |
| tree | efe4447f3dcfbbd3500de9a518939e31b7a25aab /Library/Homebrew/emoji.rb | |
| parent | 2c1fbe16931bd366d33d4419c59fcc8ada9cfe7d (diff) | |
| download | brew-13488183bd3fe9d0f8e84d66075c9c7d4cdc931d.tar.bz2 | |
emoji: remove hack required for Ruby 1.8.7
Since this hack is no longer required, and `Emoji.tick` and `.cross` are
only called in one place, I think it's better to just inline them there
rather than having methods on `Emoji` that just return a one-character
String.
Diffstat (limited to 'Library/Homebrew/emoji.rb')
| -rw-r--r-- | Library/Homebrew/emoji.rb | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/Library/Homebrew/emoji.rb b/Library/Homebrew/emoji.rb index 8c58ca895..43fa781e6 100644 --- a/Library/Homebrew/emoji.rb +++ b/Library/Homebrew/emoji.rb @@ -1,17 +1,7 @@ module Emoji class << self - def tick - # necessary for 1.8.7 unicode handling since many installs are on 1.8.7 - @tick ||= ["2714".hex].pack("U*") - end - - def cross - # necessary for 1.8.7 unicode handling since many installs are on 1.8.7 - @cross ||= ["2718".hex].pack("U*") - end - def install_badge - ENV["HOMEBREW_INSTALL_BADGE"] || "\xf0\x9f\x8d\xba" + ENV["HOMEBREW_INSTALL_BADGE"] || "🍺" end def enabled? |
