diff options
| author | Adam Vandenberg | 2013-06-14 11:56:33 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-06-14 13:36:20 -0700 |
| commit | fd3c09705b37c9a60fdce82339cc60e9888e4179 (patch) | |
| tree | c06fd7f7479828a6897d62b7720db0f89216efad /Library/Homebrew | |
| parent | 77decd3ae799e2a415c7202aaadaf5bae1535a55 (diff) | |
| download | homebrew-fd3c09705b37c9a60fdce82339cc60e9888e4179.tar.bz2 | |
Move pretty_name into MacOS::Version
Closes #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 |
