to_bar_graph 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stdout_print.rb +1 -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: be78edcf2b9beb6ad299773972913f002e316455
|
4
|
+
data.tar.gz: be88a6b6df8e0e999111ae9d1b8d92e37d5b4533
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c675698c2d24a01b94815147b6c577ea27f12e5079023e01cd6544dccfb77eb10467afcd561b0864c1c6ed2fc2fbf982201f5e7923503808cf2946f9aa7245d
|
7
|
+
data.tar.gz: 8d8a000bc7a25ed8819db746ba8a11b138f6576d493bfe5e0ab7c57edf753c722011a9814d2a9fc861e783a3a240c1f4f267105eb70706838179b1e9f67ac402
|
data/lib/stdout_print.rb
CHANGED
@@ -38,7 +38,7 @@ module ToBarGraph
|
|
38
38
|
star = '%-20s'
|
39
39
|
cata_sig = '%.20s'
|
40
40
|
|
41
|
-
longest_category_name = @bar_graph.longest_category_name.length
|
41
|
+
longest_category_name = begin @bar_graph.longest_category_name.length; rescue; return 10; end
|
42
42
|
if longest_category_name >= 50
|
43
43
|
cata = '%-100s'
|
44
44
|
cata_sig = '%.100s'
|