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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d1cbf44af41b300b520376b5a926a694936ceb469340cd7a0de06efc0d0e7b8e
4
- data.tar.gz: 04eb0e742c15937f5b7edd6b5a0e3174e900e3a3777ce8f93a8527081e3f630e
3
+ metadata.gz: 30d838cb99f769868aad6b581e5bf2edf6b2685d46760f9853ef2f4d5381443e
4
+ data.tar.gz: a69dd95403a58e3ab5dc996cf290a4d1af6462ca1298ed5f40cd93e702264388
5
5
  SHA512:
6
- metadata.gz: a891c1fe7627631ecdf0d67f5c233aaab0b7f25cab395fc603db83d7f26e99f3ebeeadbbdf1263fe47004428ad4b2e74675bd722787f9a3b5d9adabc2478d737
7
- data.tar.gz: 6f46c114ea07714b695e6fae674a8711e069b0fc7960d156ce854e45a156fd08c79f14a6ea697073f5b87b3cb66f12abdada896a8dc4716b1d8833d2b732cb3c
6
+ metadata.gz: 362b1b60c1ae8642a7251df99e8d9b8357f202d33ebdf34fda2509807a9879343ca2a679db09cd7e922383f4a3c1992dc74d72f690e7f93e50a3660cada26829
7
+ data.tar.gz: 6bd048328666da62dd869aa05f72931b7bc1482c25dd6f202d907106a9eed1d3cae19faa22fb6cb646a420ebb3e539e507ec6c66b9f5d6abe960cd859543fd31
data/.gitignore CHANGED
@@ -2,3 +2,4 @@
2
2
  pkg
3
3
  .idea/
4
4
  .yardoc
5
+ *.gem
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']
@@ -1,3 +1,3 @@
1
1
  module Kover
2
- VERSION = "0.0.5".freeze
2
+ VERSION = "0.0.7".freeze
3
3
  end
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` by default.
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 ||= true
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 ||= true
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 ||= true
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.5
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
Binary file
Binary file
Binary file
Binary file