diff options
| author | Markus Reiter | 2016-09-24 20:11:54 +0200 |
|---|---|---|
| committer | Markus Reiter | 2016-09-25 00:16:31 +0200 |
| commit | 00b3dde0b2a5fc66ccd276ee83619ef678c82cc7 (patch) | |
| tree | 583bca9733ae944de20b989c864f8eb18f706834 /Library/Homebrew/os | |
| parent | 162bfee90f760a4a473894f6f3013d1b0665b3e9 (diff) | |
| download | brew-00b3dde0b2a5fc66ccd276ee83619ef678c82cc7.tar.bz2 | |
RuboCop: MacOS
Diffstat (limited to 'Library/Homebrew/os')
| -rw-r--r-- | Library/Homebrew/os/mac.rb | 4 | ||||
| -rw-r--r-- | Library/Homebrew/os/mac/xcode.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/os/mac/xquartz.rb | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/os/mac.rb b/Library/Homebrew/os/mac.rb index 029c761f7..0b0147825 100644 --- a/Library/Homebrew/os/mac.rb +++ b/Library/Homebrew/os/mac.rb @@ -9,9 +9,9 @@ require "os/mac/keg" module OS module Mac - extend self + module_function - ::MacOS = self # compatibility + ::MacOS = self # rubocop:disable Style/ConstantName raise "Loaded OS::Mac on generic OS!" if ENV["HOMEBREW_TEST_GENERIC_OS"] diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb index 0f78e4412..8ec0b91de 100644 --- a/Library/Homebrew/os/mac/xcode.rb +++ b/Library/Homebrew/os/mac/xcode.rb @@ -1,7 +1,7 @@ module OS module Mac module Xcode - extend self + module_function V4_BUNDLE_ID = "com.apple.dt.Xcode".freeze V3_BUNDLE_ID = "com.apple.Xcode".freeze diff --git a/Library/Homebrew/os/mac/xquartz.rb b/Library/Homebrew/os/mac/xquartz.rb index 9a610e29f..674e50c50 100644 --- a/Library/Homebrew/os/mac/xquartz.rb +++ b/Library/Homebrew/os/mac/xquartz.rb @@ -3,7 +3,7 @@ module OS X11 = XQuartz = Module.new module XQuartz - extend self + module_function FORGE_BUNDLE_ID = "org.macosforge.xquartz.X11".freeze APPLE_BUNDLE_ID = "org.x.X11".freeze |
