simctl 1.5.3 → 1.5.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d1152b46c74ba32ea81c6ee9cb6456b60b5bfc77
4
- data.tar.gz: 1b8cf3d87911c4b63893df266de1615f3da20c8b
3
+ metadata.gz: eb957bf7098ff568f8454e596f0bc7464350b7ec
4
+ data.tar.gz: 478ef69f20353e775fd9560269131a68eb6ea869
5
5
  SHA512:
6
- metadata.gz: 53c4af61982746fd962d893613d11add9af87a7e8511775ebc3ffcf397d138358ee70c6532eec1d89ad79c06fd8e5dc4926660a1c6c1db262bf856aca4d90440
7
- data.tar.gz: 590b41f4834d9ce8596acedc2f28f221538adef24cb33a4cdba542bbec299adea158e4b9f7a4dadfa98091136f6b4b19c535e287c42a0760c6d192c50eb5b2ef
6
+ metadata.gz: 0517103570f3d1ef212f8db4f931de4f39f0bd7a8cfd08dc78d433b942c93e31afc0dacb51dae004e5824674da9c58f0b31f6265e3cdecb834a64f528ee6fec1
7
+ data.tar.gz: 67625c23ace0ffef9ea3115860db2ff74ebb1171b0543c91fbaaaea54660b766e5d13f5e60ce5cd6256bd29db88f1e2acaa7335129696cb5c93b2ceb901e0180
data/.gitignore CHANGED
@@ -2,3 +2,4 @@ coverage/
2
2
  doc/
3
3
  pkg/
4
4
  .yardoc/
5
+ .idea
data/Gemfile.lock CHANGED
@@ -1,13 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simctl (1.5.3)
4
+ simctl (1.5.4)
5
5
  CFPropertyList
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- CFPropertyList (2.3.2)
10
+ CFPropertyList (2.3.3)
11
11
  coveralls (0.8.10)
12
12
  json (~> 1.8)
13
13
  rest-client (>= 1.6.8, < 2)
@@ -56,4 +56,4 @@ DEPENDENCIES
56
56
  simctl!
57
57
 
58
58
  BUNDLED WITH
59
- 1.12.5
59
+ 1.13.1
@@ -3,6 +3,7 @@ require 'simctl/command/create'
3
3
  require 'simctl/command/delete'
4
4
  require 'simctl/command/erase'
5
5
  require 'simctl/command/install'
6
+ require 'simctl/command/uninstall'
6
7
  require 'simctl/command/kill'
7
8
  require 'simctl/command/launch'
8
9
  require 'simctl/command/list'
@@ -21,6 +22,7 @@ module SimCtl
21
22
  include SimCtl::Command::Delete
22
23
  include SimCtl::Command::Erase
23
24
  include SimCtl::Command::Install
25
+ include SimCtl::Command::Uninstall
24
26
  include SimCtl::Command::Kill
25
27
  include SimCtl::Command::Launch
26
28
  include SimCtl::Command::List
@@ -0,0 +1,14 @@
1
+ module SimCtl
2
+ class Command
3
+ module Uninstall
4
+ # Uninstall an app on a device
5
+ #
6
+ # @param device [SimCtl::Device] the device the app should be uninstalled from
7
+ # @param app_id App identifier of the app that should be uninstalled
8
+ # @return [void]
9
+ def uninstall_app(device, app_id)
10
+ Executor.execute(command_for('uninstall', device.udid, app_id))
11
+ end
12
+ end
13
+ end
14
+ end
data/lib/simctl/device.rb CHANGED
@@ -53,6 +53,14 @@ module SimCtl
53
53
  SimCtl.install_app(self, path)
54
54
  end
55
55
 
56
+ # Uninstall an app from a device
57
+ #
58
+ # @param app_id App identifier of the app that should be uninstalled
59
+ # @return [void]
60
+ def uninstall!(app_id)
61
+ SimCtl.uninstall_app(self, app_id)
62
+ end
63
+
56
64
  # Kills the device
57
65
  #
58
66
  # @return [void]
@@ -1,3 +1,3 @@
1
1
  module SimCtl
2
- VERSION = '1.5.3'
2
+ VERSION = '1.5.4'
3
3
  end
@@ -82,6 +82,13 @@ class SimCtl::CRUDTest < Minitest::Test
82
82
  device.open_url!('https://www.github.com')
83
83
  end
84
84
 
85
+ should '0850. uninstall SampleApp' do
86
+ system 'cd test/SampleApp && xcodebuild -sdk iphonesimulator >/dev/null 2>&1'
87
+ device = SimCtl.device(udid: udid)
88
+ device.install!('test/SampleApp/build/Release-iphonesimulator/SampleApp.app')
89
+ device.uninstall!('com.github.plu.simctl.SampleApp')
90
+ end
91
+
85
92
  should '0900. kill the device' do
86
93
  device = SimCtl.device(udid: udid)
87
94
  assert device.kill!
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simctl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.3
4
+ version: 1.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johannes Plunien
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-20 00:00:00.000000000 Z
11
+ date: 2016-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -110,6 +110,7 @@ files:
110
110
  - lib/simctl/command/rename.rb
111
111
  - lib/simctl/command/reset.rb
112
112
  - lib/simctl/command/shutdown.rb
113
+ - lib/simctl/command/uninstall.rb
113
114
  - lib/simctl/device.rb
114
115
  - lib/simctl/device_path.rb
115
116
  - lib/simctl/device_settings.rb
@@ -152,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
153
  version: '0'
153
154
  requirements: []
154
155
  rubyforge_project:
155
- rubygems_version: 2.6.6
156
+ rubygems_version: 2.5.1
156
157
  signing_key:
157
158
  specification_version: 4
158
159
  summary: Ruby interface to xcrun simctl