aidir 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aidir/formatter.rb +6 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7eaf6330320e4fdf216523d062548d9aacd04b1
|
4
|
+
data.tar.gz: 860bb28473a75a9af18664b4129e58e926126685
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4e6b55264d0286d1c20f2dd2af865e794fbb99794115467c0449bbc94041231a62227866a940cf0cbb7dc0cad0bcb8e956028f2c0954aa8c6bcc1071d85b47f
|
7
|
+
data.tar.gz: ed4ccf478e8f37fa85c458f1891359fd6bf9d5c27b769cd73be38f115f1ba4caf3d8b1ed9cb76befad8ebc1ff83df7470f112f0680e9698bb840ecd8c364e31f
|
data/lib/aidir/formatter.rb
CHANGED
@@ -9,8 +9,9 @@ class Formatter
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def method_row(method, info)
|
12
|
+
return deleted_method_row(method) if info[:flag] == :deleted
|
12
13
|
current = info[:current]
|
13
|
-
if info[:flag]
|
14
|
+
if info[:flag] == :new
|
14
15
|
contents = preformat_flag(info[:flag])
|
15
16
|
else
|
16
17
|
contents = preformat_delta(info[:delta])
|
@@ -18,6 +19,10 @@ class Formatter
|
|
18
19
|
sprintf(format[:method_row], contents, preformat_current(current), method)
|
19
20
|
end
|
20
21
|
|
22
|
+
def deleted_method_row(method)
|
23
|
+
sprintf(format[:header], 'deleted', '-', method)
|
24
|
+
end
|
25
|
+
|
21
26
|
def file_row(metric, info)
|
22
27
|
filename = info[:file]
|
23
28
|
delta = info[:delta]
|