circleci-coverage_reporter 0.3.0 → 0.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: e70ba98da0da373e2022747216c6ebb4f383b9cb
4
- data.tar.gz: 379e075fd8a0a361ce4ec08ec3aa74d65d84c024
3
+ metadata.gz: 2b4cdc92e39f53cc9d6feca7e80de243b47f373d
4
+ data.tar.gz: 0d7a2a515139c2d88821453c9452df4b6b5a6abf
5
5
  SHA512:
6
- metadata.gz: 42b3e6d604b30c7df6fc950464ed002857f859076b5a8b4fba9319f97eb51e4655014d00087a4f91963c2a02622f682787811759cfc8ad1512b9325887b20b46
7
- data.tar.gz: d711d87cc5ca74dff09051b3eddaed3b2ccead6c3e77dad3e3016103acd64c2f12c0fd8b0dd567460c1a1a6e526ce2ff49cf88145701396764c91cef52ccbf74
6
+ metadata.gz: 985c37b0a460c358fc0f7d3b4e4af999a04654bdef2b45d024c659d927c3d9da827cf403c38ea1096eb35968913db93b8627581008480490018fafd4a0dc2d61
7
+ data.tar.gz: 820d20ebb038e4c2200dd487508cd990a032ee26bcc615d81544b655c25f87c90c58f0d29eb5785fbc332dbd77852ea7c3e1eaa95bd507d6682cc99ef5b98935
data/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.3.1] - 2017-03-17
10
+ ### Fixed
11
+ - Suppress emoji if base diff is NaN or zero
12
+
9
13
  ## [0.3.0] - 2017-03-16
10
14
  ### Added
11
15
  - Add template configuration
@@ -41,7 +45,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
41
45
  ### Added
42
46
  - Initial release
43
47
 
44
- [Unreleased]: https://github.com/increments/circleci-coverage_reporter/compare/v0.3.0...HEAD
48
+ [Unreleased]: https://github.com/increments/circleci-coverage_reporter/compare/v0.3.1...HEAD
49
+ [0.3.1]: https://github.com/increments/circleci-coverage_reporter/compare/v0.3.0...v0.3.1
45
50
  [0.3.0]: https://github.com/increments/circleci-coverage_reporter/compare/v0.2.0...v0.3.0
46
51
  [0.2.0]: https://github.com/increments/circleci-coverage_reporter/compare/v0.1.3...v0.2.0
47
52
  [0.1.3]: https://github.com/increments/circleci-coverage_reporter/compare/v0.1.2...v0.1.3
data/README.md CHANGED
@@ -1,7 +1,9 @@
1
1
  # CircleCI::CoverageReporter
2
2
 
3
- [![CircleCI](https://circleci.com/gh/increments/circleci-coverage_reporter.svg?style=svg)](https://circleci.com/gh/increments/circleci-coverage_reporter)
4
3
  [![Gem](https://img.shields.io/gem/v/circleci-coverage_reporter.svg)](https://rubygems.org/gems/circleci-coverage_reporter)
4
+ [![CircleCI](https://img.shields.io/circleci/project/github/increments/circleci-coverage_reporter.svg)](https://circleci.com/gh/increments/circleci-coverage_reporter)
5
+ [![Gemnasium](https://img.shields.io/gemnasium/increments/circleci-coverage_reporter.svg)](https://gemnasium.com/github.com/increments/circleci-coverage_reporter)
6
+ [![Code Climate](https://img.shields.io/codeclimate/github/increments/circleci-coverage_reporter.svg)](https://codeclimate.com/github/increments/circleci-coverage_reporter)
5
7
 
6
8
  **CircleCI::CoverageReporter** reports test coverage to your GitHub repository.
7
9
 
@@ -12,7 +12,7 @@ module CircleCI
12
12
  <%- reports.each do |report| -%>
13
13
  <%
14
14
  link = "[#{report.reporter.name}](#{report.current_result.url})"
15
- emoji = report.base_diff.nil? ? nil : report.base_diff.positive? ? ' :chart_with_upwards_trend:' : ' :chart_with_downwards_trend:'
15
+ emoji = report.base_diff.nil? || report.base_diff.nan? || report.base_diff.round(2).zero? ? nil : report.base_diff.positive? ? ' :chart_with_upwards_trend:' : ' :chart_with_downwards_trend:'
16
16
  base_progress = report.base_diff ? "[master](#{report.base_result.url}): #{report.pretty_base_diff}" : nil
17
17
  branch_progress = report.branch_diff ? "[previous](#{report.previous_result.url}): #{report.pretty_branch_diff}" : nil
18
18
  progresses = [base_progress, branch_progress].compact
@@ -3,7 +3,7 @@ module CircleCI
3
3
  module Version
4
4
  MAJOR = 0
5
5
  MINOR = 3
6
- PATCH = 0
6
+ PATCH = 1
7
7
 
8
8
  def self.to_s
9
9
  [MAJOR, MINOR, PATCH].join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: circleci-coverage_reporter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuku Takahashi