danger-rcov 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rcov/gem_version.rb +1 -1
- data/lib/rcov/plugin.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1f292ff13f27b987c01784c87234eb7183a7cb11eec0565e328cd5bda6abf58
|
4
|
+
data.tar.gz: 55933912c655422873054e9c505b0606726f6eb70a10672a48dc52c4b11a598e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64aefe5439ab1d15ddc2b2b8556d74166227ee66fd20b4753c8a617296c1ae93d73720f148296cef6d626b1a05f0a4993b4526a8104f99599aa702bc7bc840d4
|
7
|
+
data.tar.gz: 92d9d20383714cadfced85334ef46fd3dbdfd819f3f6816bb16ea0ae3c1de576f4e02e5c82a48688fb834f6743220946e98910f23335490bbd79c989ce138ac9
|
data/lib/rcov/gem_version.rb
CHANGED
data/lib/rcov/plugin.rb
CHANGED
@@ -53,11 +53,11 @@ module Danger
|
|
53
53
|
|
54
54
|
private
|
55
55
|
|
56
|
-
def
|
56
|
+
def separator_line
|
57
57
|
"========================================\n"
|
58
58
|
end
|
59
59
|
|
60
|
-
def
|
60
|
+
def new_line(title, current, master, symbol=nil)
|
61
61
|
formatter = symbol ? '%+.2f' : '%+d'
|
62
62
|
currrent_formatted = current.to_s + symbol.to_s
|
63
63
|
master_formatted = master ? master.to_s + symbol.to_s : '-'
|
@@ -69,11 +69,11 @@ module Danger
|
|
69
69
|
line
|
70
70
|
end
|
71
71
|
|
72
|
-
def
|
72
|
+
def justify_text(string, adjust, position='right')
|
73
73
|
string.send(position == 'right' ? :rjust : :ljust, adjust)
|
74
74
|
end
|
75
75
|
|
76
|
-
def
|
76
|
+
def data_string(title, master, current, prep)
|
77
77
|
"#{prep}#{justify_text(title, 9, 'left')} #{justify_text(master, 7)}#{justify_text(current, 9)}"
|
78
78
|
end
|
79
79
|
end
|