danger-kover 0.0.5 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/danger-kover.gemspec +1 -1
- data/lib/kover/gem_version.rb +1 -1
- data/lib/kover/plugin.rb +19 -4
- metadata +1 -5
- data/danger-kover-0.0.1.gem +0 -0
- data/danger-kover-0.0.2.gem +0 -0
- data/danger-kover-0.0.3.gem +0 -0
- data/danger-kover-0.0.4.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30d838cb99f769868aad6b581e5bf2edf6b2685d46760f9853ef2f4d5381443e
|
4
|
+
data.tar.gz: a69dd95403a58e3ab5dc996cf290a4d1af6462ca1298ed5f40cd93e702264388
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 362b1b60c1ae8642a7251df99e8d9b8357f202d33ebdf34fda2509807a9879343ca2a679db09cd7e922383f4a3c1992dc74d72f690e7f93e50a3660cada26829
|
7
|
+
data.tar.gz: 6bd048328666da62dd869aa05f72931b7bc1482c25dd6f202d907106a9eed1d3cae19faa22fb6cb646a420ebb3e539e507ec6c66b9f5d6abe960cd859543fd31
|
data/.gitignore
CHANGED
data/danger-kover.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.homepage = 'https://github.com/JCarlosR/danger-kover'
|
14
14
|
spec.license = 'MIT'
|
15
15
|
|
16
|
-
spec.files = `git ls-files`.split($/)
|
16
|
+
spec.files = `git ls-files`.split($/).reject { |f| f.match(/\.gem$/) }
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ['lib']
|
data/lib/kover/gem_version.rb
CHANGED
data/lib/kover/plugin.rb
CHANGED
@@ -54,10 +54,14 @@ module Danger
|
|
54
54
|
# @return [Boolean]
|
55
55
|
attr_accessor :fail_if_under_threshold
|
56
56
|
|
57
|
-
# A getter for `fail_if_under_threshold`, returning `true`
|
57
|
+
# A getter for `fail_if_under_threshold`, returning `true` if not defined.
|
58
58
|
# @return [Boolean]
|
59
59
|
def fail_if_under_threshold
|
60
|
-
@fail_if_under_threshold
|
60
|
+
if defined?(@fail_if_under_threshold)
|
61
|
+
@fail_if_under_threshold
|
62
|
+
else
|
63
|
+
true
|
64
|
+
end
|
61
65
|
end
|
62
66
|
|
63
67
|
# Show plugin repository link.
|
@@ -67,7 +71,11 @@ module Danger
|
|
67
71
|
# A getter for `link_repository`, returning `true` by default.
|
68
72
|
# @return [Boolean]
|
69
73
|
def link_repository
|
70
|
-
@link_repository
|
74
|
+
if defined?(@link_repository)
|
75
|
+
@link_repository
|
76
|
+
else
|
77
|
+
true
|
78
|
+
end
|
71
79
|
end
|
72
80
|
|
73
81
|
# Show not found files in report count.
|
@@ -77,7 +85,11 @@ module Danger
|
|
77
85
|
# A getter for `count_not_found`, returning `true` by default.
|
78
86
|
# @return [Boolean]
|
79
87
|
def count_not_found
|
80
|
-
@count_not_found
|
88
|
+
if defined?(@count_not_found)
|
89
|
+
@count_not_found
|
90
|
+
else
|
91
|
+
true
|
92
|
+
end
|
81
93
|
end
|
82
94
|
|
83
95
|
# Report coverage on diffed files, as well as overall coverage.
|
@@ -155,6 +167,9 @@ module Danger
|
|
155
167
|
end
|
156
168
|
end
|
157
169
|
|
170
|
+
puts "Value of count_not_found: #{count_not_found}"
|
171
|
+
puts "Value of link_repository: #{link_repository}"
|
172
|
+
|
158
173
|
if (count_not_found)
|
159
174
|
output << "\n\n"
|
160
175
|
output << "Number of files not found in coverage report: #{fileNamesNotInReport.size}."
|
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.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- andrewhaisting
|
@@ -182,10 +182,6 @@ 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
|
187
|
-
- danger-kover-0.0.3.gem
|
188
|
-
- danger-kover-0.0.4.gem
|
189
185
|
- danger-kover.gemspec
|
190
186
|
- images/bannerImage.png
|
191
187
|
- lib/danger_plugin.rb
|
data/danger-kover-0.0.1.gem
DELETED
Binary file
|
data/danger-kover-0.0.2.gem
DELETED
Binary file
|
data/danger-kover-0.0.3.gem
DELETED
Binary file
|
data/danger-kover-0.0.4.gem
DELETED
Binary file
|