scan 0.6.0 → 0.6.1

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: 7e3a58da282847da8eefa3e93ca6d62e8e3792fe
4
- data.tar.gz: 270b1fff06f780483705fcadd5c1de5e45226052
3
+ metadata.gz: 5cc2fe474c347a129830537ffce88fe76b0a2d4c
4
+ data.tar.gz: 135a4581ccad9231202c43f4338dcb5fbea1eb82
5
5
  SHA512:
6
- metadata.gz: e90d79dbf59e8c027d88d1b6608bf8f205875ec40f7acc1b358ffd043679702d9367fef38a8b2ca244285d054701cf1144a8784708f59ae37b7ddfe9c1c85c44
7
- data.tar.gz: 0a4cc906623c4eecbff1550be6beb86b4d1cc52f3885e63f6a64cc5f0a061345c9264dfd6f7ecdac08f325b1e55b829250fdf6e6352038217fba6bb1f2a33a20
6
+ metadata.gz: 819d84e29eb6c03e34edec3514f5a5bf8aa2b9e0f38e3a5bff2e6a1d4075b1178aef94f2c11e798cbb50e2f17b79b58a3c94adaad6491c2dd5b6647bde93494b
7
+ data.tar.gz: bcf9bfe6456c0f8d8ed50d48760ab60aacf12e4e0e02dd88e15e63af85a722952007db9bd561bbbd560445c35b010f16a4778d7789c23d4d1c41c51174a0b1cc
data/lib/scan/runner.rb CHANGED
@@ -10,6 +10,8 @@ module Scan
10
10
  end
11
11
 
12
12
  def test_app
13
+ open_simulator_for_device(Scan.device)
14
+
13
15
  command = TestCommandGenerator.generate
14
16
  prefix_hash = [
15
17
  {
@@ -76,5 +78,15 @@ module Scan
76
78
  UI.user_error!("Test execution failed. Exit status: #{tests_exit_status}") unless tests_exit_status == 0
77
79
  UI.user_error!("Tests failed") unless result[:failures] == 0
78
80
  end
81
+
82
+ def open_simulator_for_device(device)
83
+ return unless ENV['FASTLANE_EXPLICIT_OPEN_SIMULATOR']
84
+
85
+ UI.message("Killing all running simulators")
86
+ `killall Simulator &> /dev/null`
87
+
88
+ UI.message("Explicitly opening simulator for device: #{device.name}")
89
+ `open -a Simulator --args -CurrentDeviceUDID #{device.udid}`
90
+ end
79
91
  end
80
92
  end
data/lib/scan/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Scan
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  DESCRIPTION = "The easiest way to run tests of your iOS and Mac app"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-03 00:00:00.000000000 Z
11
+ date: 2016-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane_core