From de0b93f912f014155423ed9a679dcd99c40f2622 Mon Sep 17 00:00:00 2001 From: Maxim Belkin Date: Tue, 7 Nov 2017 14:18:25 -0600 Subject: pathname: improvements, cleanups, and new methods - atomic_write: close file before renaming to prevent error: 'Device or resource busy' - ensure_writable: preserve executable bit - new elf? and dynamic? methods --- Library/Homebrew/extend/os/mac/extend/pathname.rb | 5 +++++ Library/Homebrew/extend/os/mac/hardware/cpu.rb | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 Library/Homebrew/extend/os/mac/extend/pathname.rb (limited to 'Library/Homebrew/extend/os/mac') diff --git a/Library/Homebrew/extend/os/mac/extend/pathname.rb b/Library/Homebrew/extend/os/mac/extend/pathname.rb new file mode 100644 index 000000000..5fd59e1e7 --- /dev/null +++ b/Library/Homebrew/extend/os/mac/extend/pathname.rb @@ -0,0 +1,5 @@ +require "os/mac/mach" + +class Pathname + include MachOShim +end diff --git a/Library/Homebrew/extend/os/mac/hardware/cpu.rb b/Library/Homebrew/extend/os/mac/hardware/cpu.rb index b97c280cd..a216db6ae 100644 --- a/Library/Homebrew/extend/os/mac/hardware/cpu.rb +++ b/Library/Homebrew/extend/os/mac/hardware/cpu.rb @@ -1,5 +1,3 @@ -require "os/mac/pathname" - module Hardware class CPU class << self -- cgit v1.2.3