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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stdout_print.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6be83b994a14633f88870cd7bdf7677dab514727
4
- data.tar.gz: 80b106e49d827541f30ddbeca81ae6cb9451871c
3
+ metadata.gz: be78edcf2b9beb6ad299773972913f002e316455
4
+ data.tar.gz: be88a6b6df8e0e999111ae9d1b8d92e37d5b4533
5
5
  SHA512:
6
- metadata.gz: 8f759a729c023f936a87ddbfef4b568ba0ab6e947f48db37c9ed0e676519cd6bc483669022a6b0fe07f9e24a276feb33e69b488a1edb5dd8fdee145badaada1e
7
- data.tar.gz: 30b09f4f5ef3eeadcec3f9484ee08ca482350ec120691b76a31639ca054a4783a8434c82a9346a30ec39f53b0c53620eebe864b4cf34c831dfc1a8d28fa7eb80
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'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: to_bar_graph
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Sykes