hutils 0.2.2 → 0.2.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/hutils/text_visualizer.rb +13 -11
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cce1164732539de64e3af8286782deba68a4000f
4
- data.tar.gz: 8d39268b6c9b3ac517e0542d8461179952f0cd7f
3
+ metadata.gz: d6377c61f4cb6224f93e56cb1c0c0a3a2ebec5ec
4
+ data.tar.gz: 2f92ed9f0c685c64604dca8f3c9a924e3ab12f50
5
5
  SHA512:
6
- metadata.gz: e1e8014222a936ef851654a27bcbd0907ad4f9cbc13b562c09bceb0004dfbd2e052371119c54b08598af0574640b0f9d1dd3f1d074decd4a7aff0391e3edd3de
7
- data.tar.gz: cb35102da8dd25fb9cf98a6e22fd54cab23a5dab1d60757969ee7c3d353d426887490c11c60fa5ef40c85f96a522fc7ed8a08fb91555cdd1f3a8901ed204b46d
6
+ metadata.gz: 7e2e50000c379d0d51d45984ac8fb86f83bccfb175c49858d83dcc636c9bcfcbd4f8afb923178ba1acf1a28ff34b2e691d8750cbd5c486b5081a55b134a5534a
7
+ data.tar.gz: b7494f90c22b8ae2856804b273450bed52cc7bdda0a5534a40f195526adf4793cee8dd4df21684e20bb47622766d255ff4e23f5f2d0c6467220162e3a64106d7
@@ -17,17 +17,19 @@ module Hutils
17
17
  if time
18
18
  @out.print "#{colorize(:cyan, time.iso8601)} "
19
19
  end
20
- message.to_a.sort_by { |k, v| k }.map { |k, v|
21
- pair_to_string(k, v)
22
- }.each_with_index { |display, i|
23
- if @compact
24
- @out.print(indent) if i == 0
25
- @out.print("#{display} ")
26
- else
27
- marker = i == 0 ? "+ " : " "
28
- @out.puts "#{indent}#{marker}#{display}"
29
- end
30
- }
20
+ message.to_a.reject { |k, v| k == nil }.
21
+ sort_by { |k, v| k }.
22
+ map { |k, v|
23
+ pair_to_string(k, v)
24
+ }.each_with_index { |display, i|
25
+ if @compact
26
+ @out.print(indent) if i == 0
27
+ @out.print("#{display} ")
28
+ else
29
+ marker = i == 0 ? "+ " : " "
30
+ @out.puts "#{indent}#{marker}#{display}"
31
+ end
32
+ }
31
33
  @out.puts ""
32
34
  end
33
35
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hutils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandur
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-18 00:00:00.000000000 Z
11
+ date: 2014-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon