diff options
| author | Mike McQuaid | 2016-09-18 19:57:19 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-09-18 19:57:19 +0100 |
| commit | 3f9cce0a03e967d2e7bcb7cd16bbc898c1a35708 (patch) | |
| tree | 609a33441201227f7a6a81bcb61d8a3d17e2c8a3 /Library/Homebrew/software_spec.rb | |
| parent | f4a8d28819f1fee73fcc63d08e70cb36eecdfb20 (diff) | |
| download | brew-3f9cce0a03e967d2e7bcb7cd16bbc898c1a35708.tar.bz2 | |
Use new "macOS" naming where appropriate.
Not quite a mass replacement as I've used OS X and Mac OS X where
describing specific older versions and added compatibility methods
for things in the DSL.
Diffstat (limited to 'Library/Homebrew/software_spec.rb')
| -rw-r--r-- | Library/Homebrew/software_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Homebrew/software_spec.rb b/Library/Homebrew/software_spec.rb index f935d9a13..986dc5354 100644 --- a/Library/Homebrew/software_spec.rb +++ b/Library/Homebrew/software_spec.rb @@ -337,18 +337,18 @@ class BottleSpecification def checksums checksums = {} os_versions = collector.keys - os_versions.map! do |osx| + os_versions.map! do |macos| begin - MacOS::Version.from_symbol osx + MacOS::Version.from_symbol macos rescue nil end end.compact! os_versions.sort.reverse_each do |os_version| - osx = os_version.to_sym - checksum = collector[osx] + macos = os_version.to_sym + checksum = collector[macos] checksums[checksum.hash_type] ||= [] - checksums[checksum.hash_type] << { checksum => osx } + checksums[checksum.hash_type] << { checksum => macos } end checksums end |
