aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-10-16 17:08:11 +0800
committerXu Cheng2015-10-18 22:57:42 +0800
commit646f94adfef333c9ec5451fca55078de06ada3c0 (patch)
tree01e56f025f13c5819384aed9c2ae0a634699ccb1 /Library
parent06806f860d12aa5a4cfd077b67cae62071755864 (diff)
downloadbrew-646f94adfef333c9ec5451fca55078de06ada3c0.tar.bz2
move mach.rb to os/mac/mach.rb
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/pathname.rb3
-rw-r--r--Library/Homebrew/os/mac.rb1
-rw-r--r--Library/Homebrew/os/mac/hardware.rb2
-rw-r--r--Library/Homebrew/os/mac/mach.rb (renamed from Library/Homebrew/mach.rb)0
-rw-r--r--Library/Homebrew/os/mac/pathname.rb5
5 files changed, 7 insertions, 4 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index 95002d20f..9708879e9 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -1,13 +1,10 @@
require "pathname"
-require "mach"
require "resource"
require "metafiles"
# Homebrew extends Ruby's `Pathname` to make our code more readable.
# @see http://ruby-doc.org/stdlib-1.8.7/libdoc/pathname/rdoc/Pathname.html Ruby's Pathname API
class Pathname
- include MachO
-
# @private
BOTTLE_EXTNAME_RX = /(\.[a-z0-9_]+\.bottle\.(\d+\.)?tar\.gz)$/
diff --git a/Library/Homebrew/os/mac.rb b/Library/Homebrew/os/mac.rb
index 691f92b51..3568f7158 100644
--- a/Library/Homebrew/os/mac.rb
+++ b/Library/Homebrew/os/mac.rb
@@ -2,6 +2,7 @@ require "hardware"
require "os/mac/version"
require "os/mac/xcode"
require "os/mac/xquartz"
+require "os/mac/pathname"
module OS
module Mac
diff --git a/Library/Homebrew/os/mac/hardware.rb b/Library/Homebrew/os/mac/hardware.rb
index db4fe5875..5643416c8 100644
--- a/Library/Homebrew/os/mac/hardware.rb
+++ b/Library/Homebrew/os/mac/hardware.rb
@@ -1,4 +1,4 @@
-require "mach"
+require "os/mac/mach"
module MacCPUs
OPTIMIZATION_FLAGS = {
diff --git a/Library/Homebrew/mach.rb b/Library/Homebrew/os/mac/mach.rb
index 49382291c..49382291c 100644
--- a/Library/Homebrew/mach.rb
+++ b/Library/Homebrew/os/mac/mach.rb
diff --git a/Library/Homebrew/os/mac/pathname.rb b/Library/Homebrew/os/mac/pathname.rb
new file mode 100644
index 000000000..9b65d7ac0
--- /dev/null
+++ b/Library/Homebrew/os/mac/pathname.rb
@@ -0,0 +1,5 @@
+require "os/mac/mach"
+
+class Pathname
+ include MachO
+end