scan 0.3.1 → 0.3.2

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: f5616dc61b8a0b901d8a05e27e4bdd3612d64008
4
- data.tar.gz: 3e38ff49d269d45bfa29e96073e33b6b6fcddad8
3
+ metadata.gz: 3a99291096a26140f60868ca0178f2f659bc83e5
4
+ data.tar.gz: fc9f940cbb11e15c5a4a06b0622b012f532fc17f
5
5
  SHA512:
6
- metadata.gz: 1b600134df3ba89e70d0b9e9cbf82ea8c12e59d1180e2185ef2cdb572a528e0955e131c3765d15970cbc6e30e913e54f952c74987280fda86ff8b38fe86803ac
7
- data.tar.gz: b4548920ee1f0e86a5283cb9c1f88ca274c4ea1f64feebb67c5ef0897d7daf4546ac9b8fa28a178bf8ff8a4cae29c756d7c51cb3b97fbe3f4add3027b603f972
6
+ metadata.gz: 52879d6f6620af24434ce58623f28d7fa120aae7d9316937560ecf1906636db1a3f2aca201f424f7c0a40bf387fcc3666252f650616a53989c4fd9ed99a5ac6a
7
+ data.tar.gz: 8effc4d3ae8c9fb31a4f53ecb8bfd13ac3b815d56081303f007746c89867bae2c7b8f6addb2964d92d1e857ade9e8831f1115c058bd8dda9e58e557589e749cc
@@ -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 = FastlaneCore::Simulator.all.find { |d| d.name == "iPhone 5s" }
44
- found ||= FastlaneCore::Simulator.all.first # anything is better than nothing
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
 
@@ -1,4 +1,4 @@
1
1
  module Scan
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  DESCRIPTION = "Making sure no bad code gets on board"
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.3.1
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-20 00:00:00.000000000 Z
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.25.3
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.25.3
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.6
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