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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b7020eb2cd9811e364f4918945c656c55aa87f8
4
- data.tar.gz: 40f0f4a684fe83652412765417da73d3c61510c2
3
+ metadata.gz: fb65ecfb01d6ede971c8bcaf15e27f8a1a2910bf
4
+ data.tar.gz: 4bc6ba1ebb3ded8fedd82bd3914ce04fa142da13
5
5
  SHA512:
6
- metadata.gz: cf86b5d405eb812df5543e6f97b9e39aa0abc130c6b5db0f25aaf6f530c7f89e30467044a1f9cfbbaaaaa89e4d58372b660b20091c860e47b2d9ec924f4195b0
7
- data.tar.gz: 9c0a526c4cd24fc5a4093ac3216ed0e779284ebb319c637b94460e29c0f4727f85b1f18122dcc747af585c287ee1c694536fc9f64e02185cc4b39b5d1a26e66d
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, its schemes and more
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
@@ -26,8 +26,12 @@ module Scan
26
26
  config = Scan.config
27
27
 
28
28
  if config[:device] # make sure it actually exists
29
- return if FastlaneCore::Simulator.all.find { |d| d.name == config[:device].strip }
30
- Helper.log.error "Couldn't find simulator '#{config[:device]}' - falling back to default simulator".red
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
@@ -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),
@@ -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])
@@ -1,4 +1,4 @@
1
1
  module Scan
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
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.1.0
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-21 00:00:00.000000000 Z
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.21.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.21.0
29
+ version: 0.25.3
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 1.0.0