circleci-coverage_reporter 0.1.1 → 0.1.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27d4c9b0082fd4b0d64fe44a189c3de5264df6d9
|
4
|
+
data.tar.gz: 9913f567b1631f239340409dd5dafc6b120c6892
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8eb86412bcf79cdb7582697158b9866492ab895cfd11ceb09380eb323583273b16cc4114160e6e28043bc54d4537478532bb7f383e1b94e7e8cb4633854873f6
|
7
|
+
data.tar.gz: 0123ffcd0dbaa933b133e9d5c38acd0abdf55be4bb5512184184d56f858a33583b33ca9a8af5f759e18c67477faba227984a8d9c6165dbd98c6c0e42ae8c16b8
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
6
6
|
|
7
|
+
## [0.1.2] - 2017-03-12
|
8
|
+
### Fixed
|
9
|
+
|
10
|
+
- Set `nil` to previous_build_number if CIRCLE_PREVIOUS_BUILD_NUM environment variable is empty
|
11
|
+
|
7
12
|
## [0.1.1] - 2017-03-12
|
8
13
|
### Fixed
|
9
14
|
|
@@ -14,4 +19,5 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
14
19
|
|
15
20
|
- Initial release
|
16
21
|
|
22
|
+
[0.1.2]: https://github.com/increments/circleci-coverage_reporter/compare/v0.1.1...v0.1.2
|
17
23
|
[0.1.1]: https://github.com/increments/circleci-coverage_reporter/compare/v0.1.0...v0.1.1
|
@@ -45,9 +45,9 @@ module CircleCI
|
|
45
45
|
@current_revision ||= ENV['CIRCLE_SHA1']
|
46
46
|
end
|
47
47
|
|
48
|
-
# @return [Integer]
|
48
|
+
# @return [Integer, nil]
|
49
49
|
def previous_build_number
|
50
|
-
@previous_build_number ||= ENV['CIRCLE_PREVIOUS_BUILD_NUM'].to_i
|
50
|
+
@previous_build_number ||= ENV['CIRCLE_PREVIOUS_BUILD_NUM'] && ENV['CIRCLE_PREVIOUS_BUILD_NUM'].to_i
|
51
51
|
end
|
52
52
|
|
53
53
|
# @return [String]
|