diff options
| author | Mike McQuaid | 2016-09-18 13:28:15 +0100 |
|---|---|---|
| committer | GitHub | 2016-09-18 13:28:15 +0100 |
| commit | 59b7f16bfd9c1968aae0a2f1cd9a43d3d160d99f (patch) | |
| tree | 17d2adec882cdeef36a8fd40d891fe7fe4021572 /Library/Homebrew/os/mac | |
| parent | 56541001a45ea58c54096bc42584c17d72b1415a (diff) | |
| parent | 1bdbb0f462e4c3557bbcba0b203696bdcf025bb4 (diff) | |
| download | brew-59b7f16bfd9c1968aae0a2f1cd9a43d3d160d99f.tar.bz2 | |
Merge pull request #989 from MikeMcQuaid/rubocop-final
Rubocop: apply auto-corrections and don't use hash-rockets
Diffstat (limited to 'Library/Homebrew/os/mac')
| -rw-r--r-- | Library/Homebrew/os/mac/cctools_mach.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/os/mac/ruby_keg.rb | 4 | ||||
| -rw-r--r-- | Library/Homebrew/os/mac/ruby_mach.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/os/mac/version.rb | 18 |
4 files changed, 13 insertions, 13 deletions
diff --git a/Library/Homebrew/os/mac/cctools_mach.rb b/Library/Homebrew/os/mac/cctools_mach.rb index 7e8f9a4d3..7e8b96b83 100644 --- a/Library/Homebrew/os/mac/cctools_mach.rb +++ b/Library/Homebrew/os/mac/cctools_mach.rb @@ -44,7 +44,7 @@ module CctoolsMachO else :dunno end - mach_data << { :arch => arch, :type => type } + mach_data << { arch: arch, type: type } end mach_data rescue diff --git a/Library/Homebrew/os/mac/ruby_keg.rb b/Library/Homebrew/os/mac/ruby_keg.rb index 8f7b37419..e476b174f 100644 --- a/Library/Homebrew/os/mac/ruby_keg.rb +++ b/Library/Homebrew/os/mac/ruby_keg.rb @@ -4,7 +4,7 @@ module RubyKeg def change_dylib_id(id, file) @require_install_name_tool = true puts "Changing dylib ID of #{file}\n from #{file.dylib_id}\n to #{id}" if ARGV.debug? - MachO::Tools.change_dylib_id(file, id, :strict => false) + MachO::Tools.change_dylib_id(file, id, strict: false) rescue MachO::MachOError onoe <<-EOS.undent Failed changing dylib ID of #{file} @@ -17,7 +17,7 @@ module RubyKeg def change_install_name(old, new, file) @require_install_name_tool = true puts "Changing install name in #{file}\n from #{old}\n to #{new}" if ARGV.debug? - MachO::Tools.change_install_name(file, old, new, :strict => false) + MachO::Tools.change_install_name(file, old, new, strict: false) rescue MachO::MachOError onoe <<-EOS.undent Failed changing install name in #{file} diff --git a/Library/Homebrew/os/mac/ruby_mach.rb b/Library/Homebrew/os/mac/ruby_mach.rb index 0a1565f4f..5d0e75c31 100644 --- a/Library/Homebrew/os/mac/ruby_mach.rb +++ b/Library/Homebrew/os/mac/ruby_mach.rb @@ -33,7 +33,7 @@ module RubyMachO else :dunno end - mach_data << { :arch => arch, :type => type } + mach_data << { arch: arch, type: type } end mach_data diff --git a/Library/Homebrew/os/mac/version.rb b/Library/Homebrew/os/mac/version.rb index 8d96bd3b9..802ec3035 100644 --- a/Library/Homebrew/os/mac/version.rb +++ b/Library/Homebrew/os/mac/version.rb @@ -4,15 +4,15 @@ module OS module Mac class Version < ::Version SYMBOLS = { - :sierra => "10.12", - :el_capitan => "10.11", - :yosemite => "10.10", - :mavericks => "10.9", - :mountain_lion => "10.8", - :lion => "10.7", - :snow_leopard => "10.6", - :leopard => "10.5", - :tiger => "10.4", + sierra: "10.12", + el_capitan: "10.11", + yosemite: "10.10", + mavericks: "10.9", + mountain_lion: "10.8", + lion: "10.7", + snow_leopard: "10.6", + leopard: "10.5", + tiger: "10.4", }.freeze def self.from_symbol(sym) |
