scan 0.11.0 → 0.11.1

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: b0e8938836671adc4e423eaaf50ff9636ffc8b76
4
- data.tar.gz: fda67a62cfbbb4182d3e973d501f462b711d5b7d
3
+ metadata.gz: e26b80be1c434b281b11969bcf4689f5e90e6a2f
4
+ data.tar.gz: 876134ec08e88d8e3386ac98a483d81d17adb582
5
5
  SHA512:
6
- metadata.gz: 11300410b66560a781e6d2044322c13ca42ebae09cd9231399e572c5ac46f5f8a8e1f080e2c8f96c6af95c21620dbae3c5a79341f258bd1d7eeac1afac5ef77e
7
- data.tar.gz: 96a0783416192caf32f71987731bbc66d8ffd854faeeef3e4aac4cc4e3212456af99098d1ca8858eeadae105c1225c3a3bd072a60aacb6f30f08db07f349ed1f
6
+ metadata.gz: 41059b0d542f9e983d19b5ad7179e2f57c3b7c5beea6f20687a90aa00f0b80de97cbb9f3af4b2619542da8a016ddd40a0ba61afd9ff56676f42fba1197b00e64
7
+ data.tar.gz: 699a2d8e4648a2b227256fe3e5088a824b2f9a108c3a11569acae3c841996ab8648e713813accc034ac0d03c6e682fdf7b2ff93cb360125feaba6e164ad64137
@@ -52,11 +52,16 @@ module Scan
52
52
  def self.default_device_ios
53
53
  devices = Scan.config[:devices] || Array(Scan.config[:device]) # important to use Array(nil) for when the value is nil
54
54
  found_devices = []
55
+ xcode_target = Scan.project.build_settings(key: "IPHONEOS_DEPLOYMENT_TARGET")
55
56
 
56
57
  if devices.any?
57
58
  # Optionally, we only do this if the user specified a custom device or an array of devices
58
59
  devices.each do |device|
59
- lookup_device = device.to_s.strip.tr('()', '') # Remove parenthesis
60
+ lookup_device = device.to_s.strip
61
+ has_version = lookup_device.include?(xcode_target) || lookup_device.include?('(')
62
+ lookup_device = lookup_device.tr('()', '') # Remove parenthesis
63
+ # Default to Xcode target version if no device version is specified.
64
+ lookup_device = lookup_device + " " + xcode_target unless has_version
60
65
 
61
66
  found = FastlaneCore::Simulator.all.detect do |d|
62
67
  (d.name + " " + d.ios_version).include? lookup_device
@@ -78,7 +83,6 @@ module Scan
78
83
  end
79
84
 
80
85
  sims = FastlaneCore::Simulator.all
81
- xcode_target = Scan.project.build_settings(key: "IPHONEOS_DEPLOYMENT_TARGET")
82
86
  sims = filter_simulators(sims, xcode_target)
83
87
 
84
88
  # An iPhone 5s is reasonable small and useful for tests
@@ -1,4 +1,4 @@
1
1
  module Scan
2
- VERSION = "0.11.0"
2
+ VERSION = "0.11.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.11.0
4
+ version: 0.11.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-08-10 00:00:00.000000000 Z
11
+ date: 2016-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane_core