lib/run_loop/device.rb in run_loop-2.1.2 vs lib/run_loop/device.rb in run_loop-2.1.3
- old
+ new
@@ -561,13 +561,20 @@
detect_state_from_line(matched_line)
end
# @!visibility private
- CORE_SIMULATOR_DEVICE_DIR = File.expand_path('~/Library/Developer/CoreSimulator/Devices')
+ CORE_SIMULATOR_DEVICE_DIR = File.join(RunLoop::Environment.user_home_directory,
+ "Library",
+ "Developer",
+ "CoreSimulator",
+ "Devices")
# @!visibility private
- CORE_SIMULATOR_LOGS_DIR = File.expand_path('~/Library/Logs/CoreSimulator')
+ CORE_SIMULATOR_LOGS_DIR = File.join(RunLoop::Environment.user_home_directory,
+ "Library",
+ "Logs",
+ "CoreSimulator")
# @!visibility private
def self.device_from_options(options)
options[:device] || options[:device_target] || options[:udid]
end