Skip to content

Commit 68a7c1c

Browse files
committed
Fix after review
1 parent cac3abd commit 68a7c1c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/run_loop/detect_aut/xcode.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
require 'etc'
21

32
module RunLoop
43
# @!visibility private
54
module DetectAUT
65
# @!visibility private
76
module Xcode
7+
require "etc"
88

99
# @!visibility private
1010
def xcode_project?
@@ -166,8 +166,8 @@ def pbuddy
166166
# @!visibility private
167167
def self.detect_selected_device
168168
file_name = find_user_state_file
169-
pbuddy ||= RunLoop::PlistBuddy.new
170-
selected_device = pbuddy.plist_find_device(file_name)
169+
@pbuddy ||= RunLoop::PlistBuddy.new
170+
selected_device = @pbuddy.plist_find_device(file_name)
171171
if selected_device != '' && !selected_device.nil?
172172
udid = selected_device.split(':')[1]
173173
selected_device = RunLoop::Device.device_with_identifier(udid)

lib/run_loop/plist_buddy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def plist_read(key, file, opts={})
2626
end
2727
end
2828

29-
# !!Experimental!! find device in xcuserstate file.
29+
# @!visibility private
3030
# @param [String] file the plist to read
3131
# @return [String] the UDID of device
3232
def plist_find_device(file)

0 commit comments

Comments
 (0)