difftastic 0.3.0 → 0.4.0

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: 207e850cc699486c73de8d32b74bd42cb3d13f2a67027038bef770483d24b0e7
4
- data.tar.gz: 43ade182f9cedb9203a02afaab34f814ea4f38f6c38f3bbadefca756a23674d6
3
+ metadata.gz: e55421a2fc6e072b6529d9e2f8b9f93115fef615bd7affb124c38dc19ace0f10
4
+ data.tar.gz: a979a69d9153aaf5555486307d972dd11202eb0c9196a7e88e27c7ae26a03052
5
5
  SHA512:
6
- metadata.gz: 786f0f2ad6ca34147d93a21d12df4bcf084f8468b82052ea047206cbe3be69c6814f3c7911aabba1d8b17b27fc2b9b5e8f3e6a9a3f0c60d359c60eb0e4f2b624
7
- data.tar.gz: bae8870b2892c9398eca3a196446c208fe581f65c0ef58e1f271f41bb1a46aa87279ad96b2ead45d4b97093ae8865d878fa766a2830f2bdc6b5a51bebec37446
6
+ metadata.gz: 4e56b9b93973d6b106611a10fb9674eceb874c2329adae8236fa04e0cdc61dedc922c75f6f08757a06dc3abcd69b7b5969485d5cb97a4aa698808a44998da178
7
+ data.tar.gz: 969f73eaf19dafcca3138ad032cbd73f2736b775b5690085d9a880e4772f951a03b5d50705f3de220c7c11af7e5226b7b097fc0df395329b254d14ad4bb642d2
@@ -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: ruby
6
6
  authors:
7
7
  - Joel Drapper