xprint 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/version.rb +1 -1
- data/lib/xprint.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22338ca33f15d9dedc61c673da48fe9ca2393ec2f3da632371bae995eeac2c11
|
4
|
+
data.tar.gz: e8ec4ae742f88be96a58841d550d870866f871454fe1f178f20c0ceaa130ad61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 144471fa158be54e4fdb2c7e8ab7b5696dae11824ba9944f3bd5c2138c138ebe575a27abcefb3cf25ade46bb09fc48e588d4baca1c2cb5b2f1cb3bed05c12689
|
7
|
+
data.tar.gz: c6d3de4b9333e7edc0304eb2a31ecc4aebe8f536bd6bbc59d124122261ff9762da3901bb52e22762f2f17d315bfa9fce6b827e5b731319ef6304cb9dc7f84d89
|
data/lib/version.rb
CHANGED
data/lib/xprint.rb
CHANGED
@@ -336,7 +336,8 @@ module XPrint
|
|
336
336
|
attr_name = colorize(name.to_s.ljust(longest_item), :attribute)
|
337
337
|
attr_data = xpand(value, indent: _indent, tab: tab)
|
338
338
|
|
339
|
-
result += "#{_indent}#{attr_name} #{eq_sign} #{attr_data}
|
339
|
+
result += "#{_indent}#{attr_name} #{eq_sign} #{attr_data}"
|
340
|
+
result += "\n" unless result.end_with? "\n"
|
340
341
|
end
|
341
342
|
|
342
343
|
result += "#{indent}#{p2}" if @braces
|
@@ -366,7 +367,8 @@ module XPrint
|
|
366
367
|
tab: tab
|
367
368
|
)
|
368
369
|
|
369
|
-
result += "#{_indent}#{attr_name} #{eq_sign} #{attr_data}
|
370
|
+
result += "#{_indent}#{attr_name} #{eq_sign} #{attr_data}"
|
371
|
+
result += "\n" unless result.end_with? "\n"
|
370
372
|
end
|
371
373
|
|
372
374
|
result += "#{ivars.length > 0 ? indent: ''}#{p2}" if @braces
|