xprint 0.9.4 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/version.rb +1 -1
  3. data/lib/xprint.rb +4 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18c9cf643712db2a4ea35df4719149c8d768c38405112414dde3340145b7b06f
4
- data.tar.gz: 1d7a04da4c419a33d4c913e5b55bda84505fa49470684d40faff7f6db4e4afbd
3
+ metadata.gz: 22338ca33f15d9dedc61c673da48fe9ca2393ec2f3da632371bae995eeac2c11
4
+ data.tar.gz: e8ec4ae742f88be96a58841d550d870866f871454fe1f178f20c0ceaa130ad61
5
5
  SHA512:
6
- metadata.gz: d3a7d4aa21c08354ca7435cdca38cc7aa44ae45a3090664328195b47dc6b7b7ad86016974ee1901a653b0d02339f52f103b0990a919f73e9192cafb06e2666a1
7
- data.tar.gz: f29a49b31589be8642d0c43742612a40c5a3ab324195e06c4000b43c9a7275adfcac0dfdb3752b5f1f3834ab0562a752e11852e5a4f50a03585dfe3d3f19a8f2
6
+ metadata.gz: 144471fa158be54e4fdb2c7e8ab7b5696dae11824ba9944f3bd5c2138c138ebe575a27abcefb3cf25ade46bb09fc48e588d4baca1c2cb5b2f1cb3bed05c12689
7
+ data.tar.gz: c6d3de4b9333e7edc0304eb2a31ecc4aebe8f536bd6bbc59d124122261ff9762da3901bb52e22762f2f17d315bfa9fce6b827e5b731319ef6304cb9dc7f84d89
@@ -1,3 +1,3 @@
1
1
  module XPrint
2
- VERSION = '0.9.4'
2
+ VERSION = '0.9.5'
3
3
  end
@@ -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}\n"
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}\n"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xprint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - JCabr