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 +4 -4
- data/lib/scan/detect_values.rb +6 -2
- data/lib/scan/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e26b80be1c434b281b11969bcf4689f5e90e6a2f
|
4
|
+
data.tar.gz: 876134ec08e88d8e3386ac98a483d81d17adb582
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41059b0d542f9e983d19b5ad7179e2f57c3b7c5beea6f20687a90aa00f0b80de97cbb9f3af4b2619542da8a016ddd40a0ba61afd9ff56676f42fba1197b00e64
|
7
|
+
data.tar.gz: 699a2d8e4648a2b227256fe3e5088a824b2f9a108c3a11569acae3c841996ab8648e713813accc034ac0d03c6e682fdf7b2ff93cb360125feaba6e164ad64137
|
data/lib/scan/detect_values.rb
CHANGED
@@ -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
|
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
|
data/lib/scan/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastlane_core
|