diff options
| author | Adam Vandenberg | 2013-06-14 11:56:33 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-06-14 13:36:20 -0700 |
| commit | 8739eeab7d953e89a8c3e1fde16bd0b13563b01d (patch) | |
| tree | cd4a3ca6bd753b4daf7f57b6da4cf97308925c76 /Library/Homebrew | |
| parent | 5539c97191aa499d2e1fc78fe97d534bd744076a (diff) | |
| download | brew-8739eeab7d953e89a8c3e1fde16bd0b13563b01d.tar.bz2 | |
Move pretty_name into MacOS::Version
Closes Homebrew/homebrew#20507.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/macos.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/os/mac/version.rb | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/macos.rb b/Library/Homebrew/macos.rb index 06215114c..91c2050e8 100644 --- a/Library/Homebrew/macos.rb +++ b/Library/Homebrew/macos.rb @@ -20,7 +20,7 @@ module MacOS extend self end def pretty_name - cat.to_s.split('_').map(&:capitalize).join(' ') + MacOS.version.pretty_name end def locate tool diff --git a/Library/Homebrew/os/mac/version.rb b/Library/Homebrew/os/mac/version.rb index c86974d76..c48b07eb6 100644 --- a/Library/Homebrew/os/mac/version.rb +++ b/Library/Homebrew/os/mac/version.rb @@ -13,5 +13,9 @@ module MacOS end super(Version.new(v)) end + + def pretty_name + @version.split('_').map(&:capitalize).join(' ') + end end end |
