difftastic 0.3.0-arm64-linux → 0.4.0-arm64-linux

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b417791c10125ffd8626f8c8bb068cb71576190bf5e8bd314378fda4a6e84ed4
4
- data.tar.gz: af6277b6456026983fbb0f55ce328feea536c12affcf8984c214ad8a9986ffd0
3
+ metadata.gz: 110235674874defa5154df7d122f649c56cbffcebdc418014fc4087544bf6e41
4
+ data.tar.gz: a209fd528999c12802222eeb4e9ffdc9b22e9dc3fab325740781cb1ec94fc697
5
5
  SHA512:
6
- metadata.gz: b6c93293b33ede5f620e339c5e98ecef184d2779172537ed9de0c2de75bb6c1b0666be036e84f6806858ae527e932719c33f665a1d75b0d1cf15c7e6ed9f8f22
7
- data.tar.gz: 7cb643d1b4bc1553bac9a75fd2a71b2de11d373996d6f660e54858fd7fea031a7357be41fcb9900a10e2bfac8a86c04618a9013801ed666a94fb0493511e0e34
6
+ metadata.gz: 1c734ba8d7c5a51835998a5c2d87e65b411ab61fac109ca493452ed36ae02312204c22199446eb52c319019042c03eb0764684d3300a5dae5e56d8e95e0104c9
7
+ data.tar.gz: dd1b05c469215b278ee9371fafcd54fefe43f8a4ba0ef35d783729cd1cdc130cd1895a24a5ddc291460b5e1adc59071e46b174e8e14b01aa018c523bc4e610ce
@@ -300,7 +300,7 @@ class Difftastic::Differ
300
300
  ("--width=#{@width}" if @width),
301
301
  ].compact!
302
302
 
303
- result = Difftastic.execute(options.join(" "))
303
+ result = Difftastic.execute(options.join(" ")).lstrip.sub(/\n{2}\z/, "")
304
304
 
305
305
  unless @show_paths
306
306
  new_line_index = result.index("\n") + 1
@@ -328,7 +328,7 @@ class Difftastic::Differ
328
328
  end
329
329
 
330
330
  # Insert formatted labels at the top
331
- result = "\n#{left_part}#{right_part}#{Difftastic::ANSI.reset}\n#{result}"
331
+ result = "#{left_part}#{right_part}#{Difftastic::ANSI.reset}\n#{result}"
332
332
  end
333
333
 
334
334
  # Removed due to inconsistencies in the original output. Need to improve the pattern matching.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Difftastic
4
- VERSION = "0.3.0"
4
+ VERSION = "0.4.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: difftastic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: arm64-linux
6
6
  authors:
7
7
  - Joel Drapper