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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90dd13e4a35c65a3fbb420801e3eb9f26d820c15
4
- data.tar.gz: 19bf7e52e1ba4e83cb4efa1c89cb9df768859371
3
+ metadata.gz: 3c52031f45193afb5191f3d85b07ea64cc10d0fd
4
+ data.tar.gz: 6fe6b2d143dc535848b9bf8c6bfddbca76b20eec
5
5
  SHA512:
6
- metadata.gz: 64b4eec89c9dfbf7e79963d5c425a790a0a2608347bbbc038d942fd2772ab442afefbd431724d56cf104bfa07ada56f5fba1d7679e643ce7050f7ff157468dc2
7
- data.tar.gz: 89330bd2d1634a19cc95c0a2fd3d06d7d521724c75047ed4478d23576816b95455033dade2daf9a6cbaf23f6a695a878f00b9563cada8a061331ae838d8e4cec
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" />
@@ -8,15 +8,14 @@ module Xcov
8
8
 
9
9
  require 'slack-notifier'
10
10
 
11
- slack_options = {username: Xcov.config[:slack_username]}
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(Xcov.config[:slack_url], options: slack_options)
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
- result = notifier.ping(
33
- Xcov.config[:slack_message],
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
- UI.message 'Successfully sent Slack notification'.green
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}"
@@ -1,6 +1,6 @@
1
1
  module Xcov
2
2
 
3
- VERSION = "1.3.2"
3
+ VERSION = "1.3.3"
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.2
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-01-21 00:00:00.000000000 Z
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.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.19.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: 2.0.0
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: 2.0.0
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: '1.4'
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: '1.4'
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.4.8
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: