Skip to content

Commit

Permalink
Merge pull request #25 from bbc/list_installed_packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Asimk21 authored Mar 27, 2017
2 parents e47c6b9 + 0b8f488 commit 9d4fb5b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 23 deletions.
9 changes: 1 addition & 8 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
source 'https://rubygems.org'

gem 'device_api', '>=1.0.0'
gem 'ios-devices'
gem 'ox'

group :test do
gem 'rspec'
gem 'pry'
end
gemspec
27 changes: 14 additions & 13 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
PATH
remote: .
specs:
device_api-ios (1.0.6)
device_api (>= 1.0, < 2.0)
ios-devices (>= 0.2)
ox (>= 2.1.0)

GEM
remote: https://rubygems.org/
specs:
coderay (1.1.0)
device_api (1.0.1)
device_api (1.0.2)
diff-lcs (1.2.5)
ios-devices (0.2.1)
method_source (0.8.2)
ox (2.2.1)
pry (0.10.2)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
ox (2.4.9)
rspec (3.3.0)
rspec-core (~> 3.3.0)
rspec-expectations (~> 3.3.0)
Expand All @@ -24,14 +26,13 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.3.0)
rspec-support (3.3.0)
slop (3.6.0)

PLATFORMS
ruby

DEPENDENCIES
device_api (>= 1.0.0)
ios-devices
ox
pry
device_api-ios!
rspec

BUNDLED WITH
1.14.3
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.6'
s.version = '1.0.7'
s.date = Time.now.strftime("%Y-%m-%d")
s.summary = 'IOS Device Management API'
s.description = 'iOS implementation of DeviceAPI'
Expand Down
6 changes: 5 additions & 1 deletion lib/device_api/ios/device.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ def type
end
end

def list_installed_packages
IDeviceInstaller.list_installed_packages(serial)
end

private

def get_prop(key)
Expand All @@ -123,4 +127,4 @@ def uninstall_package(package_name)
end
end
end
end
end

0 comments on commit 9d4fb5b

Please sign in to comment.