xcov 1.3.0 → 1.3.1
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 +1 -0
- data/lib/xcov/slack_poster.rb +10 -9
- data/lib/xcov/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9ed18ae1a5be5a19b73fd2c11b7a1d9aad102448
|
|
4
|
+
data.tar.gz: 8684ceb080f61e91b807cad3aa97314a03165b24
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
[](https://github.com/thelvis4)
|
|
146
146
|
[](https://github.com/KrauseFx)
|
|
147
147
|
[](https://github.com/BennX)
|
|
148
|
+
[](https://github.com/initFabian)
|
|
148
149
|
|
|
149
150
|
|
|
150
151
|
## License
|
data/lib/xcov/slack_poster.rb
CHANGED
|
@@ -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].
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
37
|
-
|
|
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
|
|
data/lib/xcov/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2017-12-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: fastlane
|