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 +4 -4
- data/lib/difftastic/differ.rb +2 -2
- data/lib/difftastic/version.rb +1 -1
- 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: 110235674874defa5154df7d122f649c56cbffcebdc418014fc4087544bf6e41
|
4
|
+
data.tar.gz: a209fd528999c12802222eeb4e9ffdc9b22e9dc3fab325740781cb1ec94fc697
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c734ba8d7c5a51835998a5c2d87e65b411ab61fac109ca493452ed36ae02312204c22199446eb52c319019042c03eb0764684d3300a5dae5e56d8e95e0104c9
|
7
|
+
data.tar.gz: dd1b05c469215b278ee9371fafcd54fefe43f8a4ba0ef35d783729cd1cdc130cd1895a24a5ddc291460b5e1adc59071e46b174e8e14b01aa018c523bc4e610ce
|
data/lib/difftastic/differ.rb
CHANGED
@@ -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 = "
|
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.
|
data/lib/difftastic/version.rb
CHANGED