scan 0.3.1 → 0.3.2
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 +4 -4
- data/lib/scan/detect_values.rb +11 -3
- data/lib/scan/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a99291096a26140f60868ca0178f2f659bc83e5
|
4
|
+
data.tar.gz: fc9f940cbb11e15c5a4a06b0622b012f532fc17f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52879d6f6620af24434ce58623f28d7fa120aae7d9316937560ecf1906636db1a3f2aca201f424f7c0a40bf387fcc3666252f650616a53989c4fd9ed99a5ac6a
|
7
|
+
data.tar.gz: 8effc4d3ae8c9fb31a4f53ecb8bfd13ac3b815d56081303f007746c89867bae2c7b8f6addb2964d92d1e857ade9e8831f1115c058bd8dda9e58e557589e749cc
|
data/lib/scan/detect_values.rb
CHANGED
@@ -26,7 +26,6 @@ module Scan
|
|
26
26
|
config = Scan.config
|
27
27
|
|
28
28
|
if config[:device] # make sure it actually exists
|
29
|
-
|
30
29
|
device = config[:device].to_s.strip.tr('()', '') # Remove parenthesis
|
31
30
|
|
32
31
|
found = FastlaneCore::Simulator.all.find { |d| (d.name + " " + d.ios_version).include? device }
|
@@ -39,9 +38,18 @@ module Scan
|
|
39
38
|
end
|
40
39
|
end
|
41
40
|
|
41
|
+
sims = FastlaneCore::Simulator.all
|
42
|
+
xcode_target = Scan.project.build_settings(key: "IPHONEOS_DEPLOYMENT_TARGET")
|
43
|
+
|
44
|
+
# Filter out any simulators that are not the same major version of our deployment target
|
45
|
+
if xcode_target.to_s.length > 0
|
46
|
+
min_target = xcode_target.split(".").first.to_i
|
47
|
+
sims = sims.select { |s| s.ios_version.to_i >= min_target }
|
48
|
+
end
|
49
|
+
|
42
50
|
# An iPhone 5s is reasonable small and useful for tests
|
43
|
-
found =
|
44
|
-
found ||=
|
51
|
+
found = sims.find { |d| d.name == "iPhone 5s" }
|
52
|
+
found ||= sims.first # anything is better than nothing
|
45
53
|
|
46
54
|
Scan.device = found
|
47
55
|
|
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.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastlane_core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.26.6
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 1.0.0
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.26.6
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 1.0.0
|
@@ -256,7 +256,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
256
256
|
version: '0'
|
257
257
|
requirements: []
|
258
258
|
rubyforge_project:
|
259
|
-
rubygems_version: 2.4.
|
259
|
+
rubygems_version: 2.4.0
|
260
260
|
signing_key:
|
261
261
|
specification_version: 4
|
262
262
|
summary: Making sure no bad code gets on board
|