simctl 1.5.5 → 1.5.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/Gemfile.lock +3 -3
- data/lib/simctl/command.rb +6 -1
- data/lib/simctl/command/launch.rb +1 -1
- data/lib/simctl/version.rb +1 -1
- data/test/test_helper.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d45eea49980474e53eb91dbc6714d1c30e66d920
|
4
|
+
data.tar.gz: 7898968d47b027a466403a0974beca530c6a92d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5770f23f1283d56438a0c79588c867488e62d5ee7fb90fa14df315c7b034aa5b79b9a82fc6794d5a165b71b3abd56b70547a1c8258c37a102f847ccfa05db626
|
7
|
+
data.tar.gz: cc8d4464da6566f76f81f4752ec24619dd25a2f9f70ec31124a3208f21345d47e30fc15ceb83403ca825fbed9836cbb26ecdd473e09fc404b929ab5a6f449cf3
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
# 1.5.6
|
2
|
+
|
3
|
+
* Fix custom device set path with spaces
|
4
|
+
|
5
|
+
# 1.5.5
|
6
|
+
|
7
|
+
* Support updating the hardware keyboard setting
|
8
|
+
|
9
|
+
# 1.5.4
|
10
|
+
|
11
|
+
* Support uninstall command
|
12
|
+
|
13
|
+
# 1.5.3
|
14
|
+
|
15
|
+
* Support openurl command
|
16
|
+
|
1
17
|
# 1.5.2
|
2
18
|
|
3
19
|
* Support custom device set path
|
data/Gemfile.lock
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
simctl (1.5.
|
4
|
+
simctl (1.5.6)
|
5
5
|
CFPropertyList
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
CFPropertyList (2.3.
|
10
|
+
CFPropertyList (2.3.4)
|
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.13.
|
59
|
+
1.13.6
|
data/lib/simctl/command.rb
CHANGED
@@ -12,6 +12,7 @@ require 'simctl/command/reset'
|
|
12
12
|
require 'simctl/command/shutdown'
|
13
13
|
require 'simctl/command/openurl'
|
14
14
|
require 'simctl/executor'
|
15
|
+
require 'shellwords'
|
15
16
|
|
16
17
|
module SimCtl
|
17
18
|
class Command
|
@@ -31,9 +32,13 @@ module SimCtl
|
|
31
32
|
include SimCtl::Command::Shutdown
|
32
33
|
include SimCtl::Command::OpenUrl
|
33
34
|
|
35
|
+
def device_set_path=(device_set_path)
|
36
|
+
@device_set_path = File.expand_path(device_set_path)
|
37
|
+
end
|
38
|
+
|
34
39
|
def command_for(*arguments)
|
35
40
|
command = %w[xcrun simctl]
|
36
|
-
command += ['--set', device_set_path] unless device_set_path.nil?
|
41
|
+
command += ['--set', Shellwords.shellescape(device_set_path)] unless device_set_path.nil?
|
37
42
|
command += arguments
|
38
43
|
command
|
39
44
|
end
|
@@ -21,7 +21,7 @@ module SimCtl
|
|
21
21
|
'-CurrentDeviceUDID' => device.udid,
|
22
22
|
"-SimulatorWindowLastScale-#{device.devicetype.identifier}" => scale,
|
23
23
|
}
|
24
|
-
args.merge!({ '-DeviceSetPath' => SimCtl.device_set_path }) unless SimCtl.device_set_path.nil?
|
24
|
+
args.merge!({ '-DeviceSetPath' => Shellwords.shellescape(SimCtl.device_set_path) }) unless SimCtl.device_set_path.nil?
|
25
25
|
args = args.merge(opts).zip.flatten.join(' ')
|
26
26
|
command = "open -Fgn #{XCODE_HOME}/Applications/Simulator.app --args #{args}"
|
27
27
|
system command
|
data/lib/simctl/version.rb
CHANGED
data/test/test_helper.rb
CHANGED
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.
|
4
|
+
version: 1.5.6
|
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-
|
11
|
+
date: 2016-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
153
|
version: '0'
|
154
154
|
requirements: []
|
155
155
|
rubyforge_project:
|
156
|
-
rubygems_version: 2.
|
156
|
+
rubygems_version: 2.5.2
|
157
157
|
signing_key:
|
158
158
|
specification_version: 4
|
159
159
|
summary: Ruby interface to xcrun simctl
|