hutils 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hutils/text_visualizer.rb +13 -11
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6377c61f4cb6224f93e56cb1c0c0a3a2ebec5ec
|
4
|
+
data.tar.gz: 2f92ed9f0c685c64604dca8f3c9a924e3ab12f50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
@
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
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.
|
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-
|
11
|
+
date: 2014-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|