aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/os/mac/version.rb
AgeCommit message (Collapse)Author
2017-06-05mac/version: add High Sierra symbolDominyk Tiller
2016-09-17rubocop --auto-correct all hash-rocket usage.Mike McQuaid
2016-09-11os/mac/version: fix Rubocop warnings.Mike McQuaid
2016-06-13os/mac/version: add macOS Sierra. (#353)Mike McQuaid
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-06-14os: initial El Capitan supportDominyk Tiller
2014-07-16Raise ArgumentError when a symbol can't be mapped to a versionJack Nagel
The fact that this is implemented as a hash lookup is an implementation detail, so don't let the KeyError bubble up.
2014-06-03Add yosemite to mac versionsAndy Blyler
Closes Homebrew/homebrew#29823. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-06-03Simplify MacOS.version.to_symJack Nagel
2014-06-03Don't coerce value to string unnecessarilyJack Nagel
2014-04-02Cache MacOS.version comparison resultsJack Nagel
MacOS.version#<=> is called many, many times during formula loading with the same half dozen or so arguments. A typical call to this method involves: * a hash lookup to convert a symbol argument to a string * creation of a throw-away Version object wrapping the argument * the actual version comparison, which is not cheap This makes it a prime candidate to be memoized.
2013-10-18Move MacOS modules under OS::Mac namespaceJack Nagel
Closes Homebrew/homebrew#23138.
2013-06-15Push MacOS.cat logic down into MacOS::VersionJack Nagel
2013-06-15Add MacOS::Version.from_symbolJack Nagel
2013-06-14Pass these as strings, they get converted anywayJack Nagel
2013-06-14Fix pretty namesAdam Vandenberg
2013-06-14Move pretty_name into MacOS::VersionAdam Vandenberg
Closes Homebrew/homebrew#20507. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-05-20MacOS::Version: add :tigerMisty De Meo
2013-03-11Portability fixes to run Homebrew on Linux systemsShaun Jackman
Closes Homebrew/homebrew#16344. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>