aidir 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aidir/formatter.rb +6 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c2de8e8218ddccab613724408ddc4ecd97fcefb
4
- data.tar.gz: cbaedbc1e39afd759eb67dd1d03226b633ea91d7
3
+ metadata.gz: a7eaf6330320e4fdf216523d062548d9aacd04b1
4
+ data.tar.gz: 860bb28473a75a9af18664b4129e58e926126685
5
5
  SHA512:
6
- metadata.gz: 85e838414ca0856f4edc386fc3be3a006a7a5d1f40d32f70fe93c062939882a33ab91fbf27265b70c94e116d6590a5b704558b33b38e4c77fa5cd9f86b723ed4
7
- data.tar.gz: b9c8f0cf400e9d4f2d1a1cc52fadb9b131576e692b2a1a9f0f90d0e8587547f480b0d6eee25dfbd0da4f7bd4d0aae3598f7bb61f8cb6b4eb07ad75698c2ef4f0
6
+ metadata.gz: c4e6b55264d0286d1c20f2dd2af865e794fbb99794115467c0449bbc94041231a62227866a940cf0cbb7dc0cad0bcb8e956028f2c0954aa8c6bcc1071d85b47f
7
+ data.tar.gz: ed4ccf478e8f37fa85c458f1891359fd6bf9d5c27b769cd73be38f115f1ba4caf3d8b1ed9cb76befad8ebc1ff83df7470f112f0680e9698bb840ecd8c364e31f
@@ -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]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aidir
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adomas Sliužinskas