xcov 1.3.2 → 1.3.3
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/xcov/slack_poster.rb +11 -7
- data/lib/xcov/version.rb +1 -1
- metadata +11 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c52031f45193afb5191f3d85b07ea64cc10d0fd
|
4
|
+
data.tar.gz: 6fe6b2d143dc535848b9bf8c6bfddbca76b20eec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 265c6efa019449d2a76051ca7aa3d0b56021ce2f7fc8e3b49c32ab614a0c9cb91466d2820ea541536461ff42a1bef76070a58b91397a4653f0db896c32d2597e
|
7
|
+
data.tar.gz: cac538b019a3f6131123b18d0dab6a67bb90734a1be0a43aa048ba98710fcb4cac164f7a584d4bca02149b2fa1403bcc706471dc53322c8bfd964afc7e9bae46
|
data/README.md
CHANGED
@@ -21,7 +21,7 @@ sudo gem install xcov
|
|
21
21
|
* Blacklisting of those files which coverage you want to ignore.
|
22
22
|
* Minimum acceptable coverage percentage.
|
23
23
|
* Compatible with [Coveralls](https://coveralls.io).
|
24
|
-
* Nice HTML reports.
|
24
|
+
* Nice HTML, JSON and Markdown reports.
|
25
25
|
|
26
26
|
<h3 align="center">
|
27
27
|
<img src="/assets_readme/report.png" />
|
data/lib/xcov/slack_poster.rb
CHANGED
@@ -8,15 +8,14 @@ module Xcov
|
|
8
8
|
|
9
9
|
require 'slack-notifier'
|
10
10
|
|
11
|
-
|
12
|
-
|
11
|
+
url = Xcov.config[:slack_url]
|
12
|
+
username = Xcov.config[:slack_username]
|
13
13
|
channel = Xcov.config[:slack_channel]
|
14
14
|
if channel.to_s.length > 0
|
15
15
|
channel = ('#' + channel) unless ['#', '@'].include?(channel[0])
|
16
|
-
slack_options[:channel] = channel
|
17
16
|
end
|
18
17
|
|
19
|
-
notifier = Slack::Notifier.new(
|
18
|
+
notifier = Slack::Notifier.new(url, channel: channel, username: username)
|
20
19
|
|
21
20
|
attachments = []
|
22
21
|
|
@@ -29,13 +28,18 @@ module Xcov
|
|
29
28
|
end
|
30
29
|
|
31
30
|
begin
|
32
|
-
|
33
|
-
|
31
|
+
message = Slack::Notifier::Util::LinkFormatter.format(Xcov.config[:slack_message])
|
32
|
+
results = notifier.ping(
|
33
|
+
message,
|
34
34
|
icon_url: 'https://s3-eu-west-1.amazonaws.com/fastlane.tools/fastlane.png',
|
35
35
|
attachments: attachments
|
36
36
|
)
|
37
37
|
|
38
|
-
|
38
|
+
if !results.first.nil? && results.first.code.to_i == 200
|
39
|
+
UI.message 'Successfully sent Slack notification'.green
|
40
|
+
else
|
41
|
+
UI.error "xcov failed to upload results to slack"
|
42
|
+
end
|
39
43
|
|
40
44
|
rescue Exception => e
|
41
45
|
UI.error "xcov failed to upload results to slack. error: #{e.to_s}"
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carlos Vidal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastlane
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.
|
19
|
+
version: 2.82.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 3.0.0
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 2.
|
29
|
+
version: 2.82.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 3.0.0
|
@@ -36,34 +36,28 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
40
|
-
- - "<"
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: 3.0.0
|
39
|
+
version: '0'
|
43
40
|
type: :runtime
|
44
41
|
prerelease: false
|
45
42
|
version_requirements: !ruby/object:Gem::Requirement
|
46
43
|
requirements:
|
47
44
|
- - ">="
|
48
45
|
- !ruby/object:Gem::Version
|
49
|
-
version:
|
50
|
-
- - "<"
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: 3.0.0
|
46
|
+
version: '0'
|
53
47
|
- !ruby/object:Gem::Dependency
|
54
48
|
name: xcodeproj
|
55
49
|
requirement: !ruby/object:Gem::Requirement
|
56
50
|
requirements:
|
57
|
-
- - "
|
51
|
+
- - ">="
|
58
52
|
- !ruby/object:Gem::Version
|
59
|
-
version: '
|
53
|
+
version: '0'
|
60
54
|
type: :runtime
|
61
55
|
prerelease: false
|
62
56
|
version_requirements: !ruby/object:Gem::Requirement
|
63
57
|
requirements:
|
64
|
-
- - "
|
58
|
+
- - ">="
|
65
59
|
- !ruby/object:Gem::Version
|
66
|
-
version: '
|
60
|
+
version: '0'
|
67
61
|
- !ruby/object:Gem::Dependency
|
68
62
|
name: terminal-table
|
69
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -201,9 +195,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
201
195
|
version: '0'
|
202
196
|
requirements: []
|
203
197
|
rubyforge_project:
|
204
|
-
rubygems_version: 2.
|
198
|
+
rubygems_version: 2.6.12
|
205
199
|
signing_key:
|
206
200
|
specification_version: 4
|
207
201
|
summary: xcov is a friendly visualizer for Xcode's code coverage files
|
208
202
|
test_files: []
|
209
|
-
has_rdoc:
|