scan 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/scan/detect_values.rb +6 -2
- data/lib/scan/options.rb +2 -3
- data/lib/scan/slack_poster.rb +1 -0
- data/lib/scan/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb65ecfb01d6ede971c8bcaf15e27f8a1a2910bf
|
4
|
+
data.tar.gz: 4bc6ba1ebb3ded8fedd82bd3914ce04fa142da13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c29be906bccc1c9dd46fe5ccdc6e41e76b61c4251b239c3dbe40c7a46d7b7e0e760129e12653f5343cec5880b6ea093799ea2992dae6ff9f78672e9db2350df
|
7
|
+
data.tar.gz: 47ea278c3427b7da402869c6fa96cfafb8a2582cf65288699b6e2cd919d06d95272d71f4054dad83b8d1b3758071b27e1147e8ef4600b4b9ee4d3b28093017c1
|
data/README.md
CHANGED
@@ -102,7 +102,7 @@ scan
|
|
102
102
|
| scan Features
|
103
103
|
--------------------------|------------------------------------------------------------
|
104
104
|
:checkered_flag: | Beautiful inline build output while running the tests
|
105
|
-
:mountain_cableway: | Sensible defaults: Automatically detect the project,
|
105
|
+
:mountain_cableway: | Sensible defaults: Automatically detect the project, schemes and more
|
106
106
|
:bar_chart: | Support for HTML, JSON and JUnit reports
|
107
107
|
:mag: | Xcode duplicated your simulators again? `scan` will handle this for you
|
108
108
|
:link: | Works perfectly with [fastlane](https://fastlane.tools) and other tools
|
data/lib/scan/detect_values.rb
CHANGED
@@ -26,8 +26,12 @@ module Scan
|
|
26
26
|
config = Scan.config
|
27
27
|
|
28
28
|
if config[:device] # make sure it actually exists
|
29
|
-
|
30
|
-
|
29
|
+
found = FastlaneCore::Simulator.all.find { |d| d.name == config[:device].to_s.strip }
|
30
|
+
if found
|
31
|
+
config[:device] = found
|
32
|
+
else
|
33
|
+
Helper.log.error "Couldn't find simulator '#{config[:device]}' - falling back to default simulator".red
|
34
|
+
end
|
31
35
|
end
|
32
36
|
|
33
37
|
# An iPhone 5s is reasonable small and useful for tests
|
data/lib/scan/options.rb
CHANGED
@@ -32,9 +32,7 @@ module Scan
|
|
32
32
|
optional: true,
|
33
33
|
is_string: false,
|
34
34
|
env_name: "SCAN_DEVICE",
|
35
|
-
description: "The name of the simulator type you want to run tests on",
|
36
|
-
verify_block: proc do |value|
|
37
|
-
end),
|
35
|
+
description: "The name of the simulator type you want to run tests on"),
|
38
36
|
FastlaneCore::ConfigItem.new(key: :scheme,
|
39
37
|
short_option: "-s",
|
40
38
|
optional: true,
|
@@ -98,6 +96,7 @@ module Scan
|
|
98
96
|
FastlaneCore::ConfigItem.new(key: :slack_url,
|
99
97
|
env_name: "SLACK_URL",
|
100
98
|
description: "Create an Incoming WebHook for your Slack group to post results there",
|
99
|
+
optional: true,
|
101
100
|
verify_block: proc do |value|
|
102
101
|
raise "Invalid URL, must start with https://" unless value.start_with? "https://"
|
103
102
|
end),
|
data/lib/scan/slack_poster.rb
CHANGED
@@ -3,6 +3,7 @@ module Scan
|
|
3
3
|
def run(results)
|
4
4
|
return if Scan.config[:skip_slack]
|
5
5
|
return if Scan.config[:slack_only_on_failure] && results[:failures] == 0
|
6
|
+
return if Scan.config[:slack_url].nil?
|
6
7
|
|
7
8
|
require 'slack-notifier'
|
8
9
|
notifier = Slack::Notifier.new(Scan.config[:slack_url])
|
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.1.
|
4
|
+
version: 0.1.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: 2015-10-
|
11
|
+
date: 2015-10-22 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.25.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.25.3
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 1.0.0
|