difftastic 0.3.0-x86_64-darwin → 0.4.0-x86_64-darwin
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 +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: 5b6b22dcb48e7f29f00d7fe435493e13145a65989dea17ecbc5d4188320a4ab0
|
4
|
+
data.tar.gz: 0a54987478d0d608705d1504b97a40cd401cf46a4fa027be3baa0e1e2e6f3f31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f675df88ff0abc745570204b24e3f430019d2c08aa875c0ff43b1637ef689fe48d35eb6c633736998da19ef00888d7be8da7354c225055cb77354cc15ed2a25
|
7
|
+
data.tar.gz: 3fc7bddcfdb674eb288a7866569a563a31ef07da7af3f921eda04368c0e1a4c7a511444ad1740a3a7d364f5a21369c8753dd818b524573bca13c74c04ec59df3
|
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