danger-kover 0.0.1 → 0.0.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
  SHA256:
3
- metadata.gz: df912d1ae056b291d3f6fea996bb8d61879ce0b9aa26abd50aa46cdc40a8b60e
4
- data.tar.gz: 6942d6c7bad3e008f8b961b53d1fff3b85ad31a00f40279436b2c586f238e298
3
+ metadata.gz: ccb8421deaaee07d3de9b03a92feff5b4214781fecf0d939e353af609323b280
4
+ data.tar.gz: 6e88342df62df29ea4127b038019daa12b82710a56d696534b69cde2e2ebd794
5
5
  SHA512:
6
- metadata.gz: 88312125ea11e7d9f22776eb8707c08c909fbe0a5c325f44ef89a5daeef7cf364fcf44f3dffdebeab21d030916374545f117f391554f1c7c8728d2913b3be337
7
- data.tar.gz: fa0415298f378a97d57274d49a8a2b96af759f590c6efcd19618678dbb01ee6f9c2058e4bf8b6d20495864c594aa5034b7a46a2d9b9df393c595d48e7525aa13
6
+ metadata.gz: b67f4cdff93b1671aa2cff55e1e7106e049407fe3b64a87b7cfedce29105ab21335e57d4d41c9df2f964eada48dc8aeb5e622b7b1fc36d6218d77a0acb3b999c
7
+ data.tar.gz: 739c45b3591cd6e4f9a17e0981d69c9e7de485002078ccc17e01de79b0bad036e1bf2017f77d62cf1b8a4dc2aed4afc4e673f9485b5006d35ecba646cff3410c
data/README.md CHANGED
@@ -40,9 +40,13 @@ kover.report 'Module Name', 'path/to/kover/report.xml'
40
40
  Optional attribute to only warn instead of failing if below thresholds:
41
41
 
42
42
  ```ruby
43
- kover.fail_if_under_threshold false
43
+ kover.fail_if_under_threshold = false
44
44
  ```
45
45
 
46
+ ## Credits
47
+
48
+ This is a fork, based on [Shroud](https://github.com/livefront/danger-shroud).
49
+
46
50
  ## Development
47
51
 
48
52
  1. Clone this repo
@@ -50,3 +54,17 @@ kover.fail_if_under_threshold false
50
54
  3. Run `bundle exec rake spec` to run the tests.
51
55
  4. Use `bundle exec guard` to automatically have tests run as you make changes.
52
56
  5. Make your changes.
57
+
58
+ ## Publishing
59
+
60
+ How to build a gem (make sure to update the version):
61
+
62
+ ```
63
+ gem build danger-kover.gemspec
64
+ ```
65
+
66
+ How to publish a gem:
67
+
68
+ ```
69
+ gem push danger-kover-VERSION.gem
70
+ ```
Binary file
Binary file
@@ -1,3 +1,3 @@
1
1
  module Kover
2
- VERSION = "0.0.1".freeze
2
+ VERSION = "0.0.3".freeze
3
3
  end
data/lib/kover/plugin.rb CHANGED
@@ -115,7 +115,7 @@ module Danger
115
115
  output = "## 🎯 #{moduleName} Code Coverage: **`#{'%.2f' % coveragePercent}%`**\n"
116
116
 
117
117
  if touchedFilesHash.empty?
118
- output << "The new and modified files are not part of the coverage report."
118
+ output << "The new and modified files are not part of the Kover coverage report 👀.\n"
119
119
  else
120
120
  output << "### Coverage of Modified Files:\n"
121
121
  output << "File | Coverage\n"
@@ -138,15 +138,15 @@ module Danger
138
138
  end
139
139
 
140
140
  output << "\n"
141
- output << "Number of files not found in coverage report: #{fileNamesNotInReport.size}"
142
- output << "\n"
141
+ output << "Number of files not found in coverage report: #{fileNamesNotInReport.size}."
142
+ output << "\n\n"
143
143
 
144
- output << 'Code coverage generated by [danger-kover](https://github.com/JCarlosR/danger-kover), based on [Shroud](https://github.com/livefront/danger-shroud)'
144
+ output << 'Code coverage by [danger-kover](https://github.com/JCarlosR/danger-kover).'
145
145
  markdown output
146
146
 
147
147
  # warn or fail if total coverage is under specified threshold
148
148
  if (coveragePercent < total_threshold)
149
- totalCoverageWarning = "Oops! The project codebase is under #{total_threshold}% coverage."
149
+ totalCoverageWarning = "Oops! The module #{moduleName} codebase is under #{total_threshold}% coverage."
150
150
 
151
151
  if (fail_if_under_threshold)
152
152
  fail totalCoverageWarning
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger-kover
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - andrewhaisting
@@ -182,6 +182,8 @@ files:
182
182
  - LICENSE
183
183
  - README.md
184
184
  - Rakefile
185
+ - danger-kover-0.0.1.gem
186
+ - danger-kover-0.0.2.gem
185
187
  - danger-kover.gemspec
186
188
  - images/bannerImage.png
187
189
  - lib/danger_plugin.rb