scan 0.8.0 → 0.9.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 +4 -4
- data/README.md +3 -3
- data/lib/assets/ScanfileTemplate +1 -1
- data/lib/scan/detect_values.rb +7 -3
- data/lib/scan/options.rb +1 -1
- 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: 11f8d0680942ba412fe247d209493888ac0c9868
|
|
4
|
+
data.tar.gz: e3ce9fd962ebc2c14cf5977a2bf04bfee8f8026b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2dc4b9d09f65ea313123be7fabe18abbb22ec03c835a903dd7755edc1352bbbc2dfe8298f7d47486110703cf5fb46a8c27cb15f586b5a0dde43cadea4f0821e9
|
|
7
|
+
data.tar.gz: 216f8c6a424c7141b4b756b97a57c9abd64888bcb26eb8951faac78a4975120b4f9dbfb1b9e30f5e03a9106e932a344d1f8ab2a24d1311a90d298bc1158176da
|
data/README.md
CHANGED
|
@@ -36,6 +36,8 @@ scan
|
|
|
36
36
|
|
|
37
37
|
###### The easiest way to run tests of your iOS and Mac app
|
|
38
38
|
|
|
39
|
+
`scan` makes it easy to run tests of your iOS and Mac app on a simulator or connected device.
|
|
40
|
+
|
|
39
41
|
Get in contact with the developer on Twitter: [@FastlaneTools](https://twitter.com/FastlaneTools)
|
|
40
42
|
|
|
41
43
|
-------
|
|
@@ -53,8 +55,6 @@ Get in contact with the developer on Twitter: [@FastlaneTools](https://twitter.c
|
|
|
53
55
|
|
|
54
56
|
# What's scan?
|
|
55
57
|
|
|
56
|
-
`scan` makes it super easy to run tests of your iOS and Mac app. It does all the heavy lifting for you to run your tests... the easy way.
|
|
57
|
-
|
|
58
58
|

|
|
59
59
|
|
|
60
60
|
### Before `scan`
|
|
@@ -168,7 +168,7 @@ Run `scan init` to create a new configuration file. Example:
|
|
|
168
168
|
|
|
169
169
|
```ruby
|
|
170
170
|
scheme "Example"
|
|
171
|
-
devices
|
|
171
|
+
devices ["iPhone 6s", "iPad Air"]
|
|
172
172
|
|
|
173
173
|
clean true
|
|
174
174
|
|
data/lib/assets/ScanfileTemplate
CHANGED
data/lib/scan/detect_values.rb
CHANGED
|
@@ -89,7 +89,7 @@ module Scan
|
|
|
89
89
|
lookup_device = device.to_s.strip.tr('()', '') # Remove parenthesis
|
|
90
90
|
|
|
91
91
|
found = FastlaneCore::SimulatorTV.all.detect do |d|
|
|
92
|
-
(d.name + " " + d.
|
|
92
|
+
(d.name + " " + d.os_version).include? lookup_device
|
|
93
93
|
end
|
|
94
94
|
|
|
95
95
|
if found
|
|
@@ -122,7 +122,11 @@ module Scan
|
|
|
122
122
|
end
|
|
123
123
|
end
|
|
124
124
|
|
|
125
|
-
|
|
125
|
+
def self.min_xcode8?
|
|
126
|
+
Helper.xcode_version.split(".").first.to_i >= 8
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Is it an iOS, a tvOS or a macOS device?
|
|
126
130
|
def self.detect_destination
|
|
127
131
|
if Scan.config[:destination]
|
|
128
132
|
UI.important("It's not recommended to set the `destination` value directly")
|
|
@@ -138,7 +142,7 @@ module Scan
|
|
|
138
142
|
elsif Scan.project.tvos?
|
|
139
143
|
Scan.config[:destination] = Scan.devices.map { |d| "platform=tvOS Simulator,id=#{d.udid}" }
|
|
140
144
|
else
|
|
141
|
-
Scan.config[:destination] = ["platform=OS X"]
|
|
145
|
+
Scan.config[:destination] = min_xcode8? ? ["platform=macOS"] : ["platform=OS X"]
|
|
142
146
|
end
|
|
143
147
|
end
|
|
144
148
|
end
|
data/lib/scan/options.rb
CHANGED
|
@@ -121,7 +121,7 @@ module Scan
|
|
|
121
121
|
FastlaneCore::ConfigItem.new(key: :open_report,
|
|
122
122
|
short_option: "-g",
|
|
123
123
|
env_name: "SCAN_OPEN_REPORT",
|
|
124
|
-
description: "
|
|
124
|
+
description: "Should the HTML report be opened when tests are completed",
|
|
125
125
|
is_string: false,
|
|
126
126
|
default_value: false),
|
|
127
127
|
FastlaneCore::ConfigItem.new(key: :configuration,
|
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.
|
|
4
|
+
version: 0.9.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-
|
|
11
|
+
date: 2016-07-27 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.43.3
|
|
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.43.3
|
|
30
30
|
- - "<"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: 1.0.0
|
|
@@ -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.
|
|
273
|
+
rubygems_version: 2.2.2
|
|
274
274
|
signing_key:
|
|
275
275
|
specification_version: 4
|
|
276
276
|
summary: The easiest way to run tests of your iOS and Mac app
|