Skip to content

Commit

Permalink
Not having the IP address package installed is no longer a blocker
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Wilson committed Jun 10, 2016
1 parent eaa971d commit b89268e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion device_api-ios.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'device_api-ios'
s.version = '1.0.5'
s.version = '1.0.6'
s.date = Time.now.strftime("%Y-%m-%d")
s.summary = 'IOS Device Management API'
s.description = 'iOS implementation of DeviceAPI'
Expand Down
4 changes: 2 additions & 2 deletions lib/device_api/ios/ipaddress.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ def self.installed?(serial)
if DeviceAPI::IOS::IDeviceInstaller.package_installed?( serial: serial, package: ipaddress_bundle_id )
return true
else
raise IPAddressError.new('IP Address package not installed: Please see https://github.com/bbc/ios-test-helper')
warn IPAddressError.new('IP Address package not installed: Please see https://github.com/bbc/ios-test-helper')
end
end

# Get the IP Address from the installed app
# @param [String] serial serial of the target device
# @return [String] IP Address if found
def self.address(serial)
installed?(serial)
return nil unless installed?(serial)
result = IDeviceDebug.run(serial: serial, bundle_id: ipaddress_bundle_id )

ip_address = nil
Expand Down

0 comments on commit b89268e

Please sign in to comment.