difftastic 0.3.0-x86_64-linux → 0.4.0-x86_64-linux

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c2ed87a18ce040c8242e11953eb245c60e86bd0536b78afaf8861eed22032656
4
- data.tar.gz: f8d7d2778862806c77234427036f1d46a419b04862e2e4b17345cb4dd4412e94
3
+ metadata.gz: 66b497bfbb096cf5d06e775a77a8a5c0fca7fa62d853abeeb483903b5b631c27
4
+ data.tar.gz: 1d0ef9bf1ffa72badc6b1af459105674ab4a2730db6c9c83a7bfdfedd225cbe4
5
5
  SHA512:
6
- metadata.gz: af46c40e117706a660360c11d3f3d1ad6ebe67f4cfe8e5fbcb0da43d61cd7f30e1a51d0c0d7ca24a8092d065de0cc8fddedacaa019e3c567b85ab234ffa39b8c
7
- data.tar.gz: 11f4e80d4c369cb0f68f5b09287715322b8311d0b1d50349dce0a03a03875128b30c2018828ab6ec4f141dcc089a323daec9d6b1a53acd81a1f5729a5defee78
6
+ metadata.gz: 2eb7bcdab1578a0d4c7f42e392150596a01dbdd0bbfc940e97cf53a5c75c8cd63743dbb19e67292aeaaa3d62f77d837b23bae4194d0225e362eee6ecea286d07
7
+ data.tar.gz: 210196fa6707d524f62f4fd3ff233fcda0be3e201ce1031c6e7c18013e645a453b2981919c0960b8f5efca918a06de68066f893dc5ee1682aefdcf9305d5115f
@@ -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: x86_64-linux
6
6
  authors:
7
7
  - Joel Drapper