xcov 1.3.0 → 1.3.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: 0eb5cb1a9c18c7941ba1cf8f21202898a8e0c741
4
- data.tar.gz: f6df9408fdec967b5ffe3c513648a7cdde661483
3
+ metadata.gz: 9ed18ae1a5be5a19b73fd2c11b7a1d9aad102448
4
+ data.tar.gz: 8684ceb080f61e91b807cad3aa97314a03165b24
5
5
  SHA512:
6
- metadata.gz: e4eccd0361bf98ef176466b843e1b759aaea1b233f93abe26eaceca2b348f9eb8f8e7ad4f6c5df50b3900f7b8fd2b8e9c6a89718c93f46037857be3bf26f2490
7
- data.tar.gz: 631df2b5a060f47ab088a201d80837a52bb42c7144286d815e633413b3402f28078f1c41258c717718428f3e678f7b5b59ddbaac74823385a534e9603842eb10
6
+ metadata.gz: 62080188748d04ec2484018c2e4633491f4912ab604c360afb8cbf130ce6ea283aca1d40dc525d3f082ff0fef38559a9e4b2acbaf35c6cfc1056bf97fa25f6da
7
+ data.tar.gz: 11615d504dc3da20dfb3693e2a349f29491bc867a27a15d3f4d24259d052b0e4fbcf44c48bdacfbf97ffb73ac1b3be80b648ac87c4da610640dccbd3579121b7
data/README.md CHANGED
@@ -145,6 +145,7 @@ If you want to keep track of the coverage evolution and get some extra features,
145
145
  [![thelvis4](https://avatars1.githubusercontent.com/u/1589385?v=3&s=50)](https://github.com/thelvis4)
146
146
  [![KrauseFx](https://avatars1.githubusercontent.com/u/869950?v=3&s=50)](https://github.com/KrauseFx)
147
147
  [![BennX](https://avatars1.githubusercontent.com/u/4281635?v=3&s=50)](https://github.com/BennX)
148
+ [![initFabian](https://avatars1.githubusercontent.com/u/8469495?v=3&s=50)](https://github.com/initFabian)
148
149
 
149
150
 
150
151
  ## License
@@ -4,7 +4,7 @@ module Xcov
4
4
 
5
5
  def run(report)
6
6
  return if Xcov.config[:skip_slack]
7
- return if Xcov.config[:slack_url].nil?
7
+ return if Xcov.config[:slack_url].to_s.empty?
8
8
 
9
9
  require 'slack-notifier'
10
10
  notifier = Slack::Notifier.new(Xcov.config[:slack_url])
@@ -25,16 +25,17 @@ module Xcov
25
25
  }
26
26
  end
27
27
 
28
- result = notifier.ping(
29
- Xcov.config[:slack_message],
30
- icon_url: 'https://s3-eu-west-1.amazonaws.com/fastlane.tools/fastlane.png',
31
- attachments: attachments
32
- )
28
+ begin
29
+ result = notifier.ping(
30
+ Xcov.config[:slack_message],
31
+ icon_url: 'https://s3-eu-west-1.amazonaws.com/fastlane.tools/fastlane.png',
32
+ attachments: attachments
33
+ )
33
34
 
34
- if result.code.to_i == 200
35
35
  UI.message 'Successfully sent Slack notification'.green
36
- else
37
- UI.message result.to_s.red
36
+
37
+ rescue Exception => e
38
+ UI.error "xcov failed to upload results to slack. error: #{e.to_s}"
38
39
  end
39
40
  end
40
41
 
@@ -1,6 +1,6 @@
1
1
  module Xcov
2
2
 
3
- VERSION = "1.3.0"
3
+ VERSION = "1.3.1"
4
4
  DESCRIPTION = "xcov is a friendly visualizer for Xcode's code coverage files"
5
5
 
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcov
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Vidal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-15 00:00:00.000000000 Z
11
+ date: 2017-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane