scan 0.8.0 → 0.9.0

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: eec2213c46a081df5c77523a5420fad6e1657dd0
4
- data.tar.gz: cfaa604fbc551830125f5fb30b14dac79e1e3c0f
3
+ metadata.gz: 11f8d0680942ba412fe247d209493888ac0c9868
4
+ data.tar.gz: e3ce9fd962ebc2c14cf5977a2bf04bfee8f8026b
5
5
  SHA512:
6
- metadata.gz: 25ea53495dd7cea8c11126834a66bc71a05d6d91f8f034d08d07549ce97dc72be767bd7f2bfdd60d4d7299010e4e5102a8ed605db9ed62030562281750ac86bc
7
- data.tar.gz: 22e901e83e544d8407d0b6a4a21d580df59190f9a3eaee5d6ef282b37f5b5ef3dbea9ac882943f1925bff8863bfc5cad6cf415636a977fb05acf2d2724e812c6
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
  ![https://pbs.twimg.com/media/CURcEpuWoAArE3d.png:large](https://pbs.twimg.com/media/CURcEpuWoAArE3d.png:large)
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: ["iPhone 6s", "iPad Air"]
171
+ devices ["iPhone 6s", "iPad Air"]
172
172
 
173
173
  clean true
174
174
 
@@ -1,5 +1,5 @@
1
1
  # For more information about this configuration visit
2
- # https://github.com/fastlane/scan#scanfile
2
+ # https://github.com/fastlane/fastlane/tree/master/scan#scanfile
3
3
 
4
4
  # In general, you can use the options available
5
5
  # scan --help
@@ -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.tvos_version).include? lookup_device
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
- # Is it an iOS, a tvOS or a MacOS device?
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: "Don't open the HTML report when tests are completed",
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
@@ -1,4 +1,4 @@
1
1
  module Scan
2
- VERSION = "0.8.0"
2
+ VERSION = "0.9.0"
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.8.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-06-03 00:00:00.000000000 Z
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.36.1
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.36.1
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.4.5.1
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