scan 0.10.1 → 0.11.0

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: f8b6494eb5e51ff46c68d55d71a90d317aa71aaa
4
- data.tar.gz: 1eb5a77504ec53b79c0c8dcf01f8c9bab89bb9ca
3
+ metadata.gz: b0e8938836671adc4e423eaaf50ff9636ffc8b76
4
+ data.tar.gz: fda67a62cfbbb4182d3e973d501f462b711d5b7d
5
5
  SHA512:
6
- metadata.gz: 0f48b8de29ed9aa5dd2629cfe559701b78fac9330acdc7b202cc1fdfcf951fe64f1766007c3e99e7f8a13a601cdb81488e2fb51c2c194c32c63a677d9b0d273e
7
- data.tar.gz: 4ef6097d403dccc18e37c49cf33a17e85da7d7266d308bfe3280f69475b7b0b6eaf1ab489614e21417417d5cc0322cf9f7faae99d4da6419d75ec50b6d02f09a
6
+ metadata.gz: 11300410b66560a781e6d2044322c13ca42ebae09cd9231399e572c5ac46f5f8a8e1f080e2c8f96c6af95c21620dbae3c5a79341f258bd1d7eeac1afac5ef77e
7
+ data.tar.gz: 96a0783416192caf32f71987731bbc66d8ffd854faeeef3e4aac4cc4e3212456af99098d1ca8858eeadae105c1225c3a3bd072a60aacb6f30f08db07f349ed1f
@@ -24,9 +24,22 @@ module Scan
24
24
  default_device_tvos if Scan.project.tvos?
25
25
  detect_destination
26
26
 
27
+ default_derived_data
28
+
27
29
  return config
28
30
  end
29
31
 
32
+ def self.default_derived_data
33
+ return unless Scan.config[:derived_data_path].to_s.empty?
34
+ default_path = Scan.project.build_settings(key: "BUILT_PRODUCTS_DIR")
35
+ # => /Users/.../Library/Developer/Xcode/DerivedData/app-bqrfaojicpsqnoglloisfftjhksc/Build/Products/Release-iphoneos
36
+ # We need to go one folder up, since tests don't run inside 'Release-iphoneos'
37
+ # but in 'Debug-iphonesimulator'
38
+ default_path = File.join(File.dirname(default_path), "Debug-iphonesimulator")
39
+ UI.verbose("Detected derived data path '#{default_path}'")
40
+ Scan.config[:derived_data_path] = default_path
41
+ end
42
+
30
43
  def self.filter_simulators(simulators, deployment_target)
31
44
  # Filter out any simulators that are not the same major and minor version of our deployment target
32
45
  deployment_target_version = Gem::Version.new(deployment_target)
@@ -21,7 +21,7 @@ module Scan
21
21
  print "For more information visit this stackoverflow answer:"
22
22
  print "https://stackoverflow.com/a/17031697/445598"
23
23
  when /Testing failed/
24
- UI.user_error!("Error building the application - see the log above")
24
+ UI.user_error!("Error building the application - see the log above", show_github_issues: false)
25
25
  when /Executed/
26
26
  # this is *really* important:
27
27
  # we don't want to raise an exception here
data/lib/scan/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Scan
2
- VERSION = "0.10.1"
2
+ VERSION = "0.11.0"
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.10.1
4
+ version: 0.11.0
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-08-03 00:00:00.000000000 Z
11
+ date: 2016-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane_core
@@ -270,7 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
270
270
  version: '0'
271
271
  requirements: []
272
272
  rubyforge_project:
273
- rubygems_version: 2.4.5.1
273
+ rubygems_version: 2.6.6
274
274
  signing_key:
275
275
  specification_version: 4
276
276
  summary: The easiest way to run tests of your iOS and Mac app