simctl 1.5.5 → 1.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 982dcd830c7b97287acf5de51b8483f8834a0fd7
4
- data.tar.gz: 2c77af9243abd1dd28580bddd7339a10fe9bbc3d
3
+ metadata.gz: d45eea49980474e53eb91dbc6714d1c30e66d920
4
+ data.tar.gz: 7898968d47b027a466403a0974beca530c6a92d7
5
5
  SHA512:
6
- metadata.gz: 36e4d4532ec8d6104c6738a5cc1b311762158428eb92735e287294b0208975ab93e4b561b42ead4eb709e783269ec05d53048c2238dc41b09d004b4ab626ed49
7
- data.tar.gz: fd8253aa2c5eee00a7e920fa21e4f2a5360fe9c957ce3c523258aa661d49259453b12ea221b9338cc01bd7fbc17d698c8a02cff374f53c7f19b47bd000497ae0
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.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.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.1
59
+ 1.13.6
@@ -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
@@ -1,3 +1,3 @@
1
1
  module SimCtl
2
- VERSION = '1.5.5'
2
+ VERSION = '1.5.6'
3
3
  end
data/test/test_helper.rb CHANGED
@@ -12,5 +12,5 @@ if ENV['TRAVIS']
12
12
  end
13
13
 
14
14
  unless ENV['CUSTOM_DEVICE_SET_PATH'] == 'false'
15
- SimCtl.device_set_path = Dir.mktmpdir
15
+ SimCtl.device_set_path = Dir.mktmpdir 'foo bar'
16
16
  end
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.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-24 00:00:00.000000000 Z
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.6.6
156
+ rubygems_version: 2.5.2
157
157
  signing_key:
158
158
  specification_version: 4
159
159
  summary: Ruby interface to xcrun simctl