minitest-holdify 1.3.3 → 1.3.4
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/holdify/feedback.rb +4 -1
- data/lib/holdify.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: 91ac2c93846bb953d73a2cee3f89f8985b5ed1596b13995423212e91020cf52f
|
|
4
|
+
data.tar.gz: c3d196b9a65791d40aa3255a2c11345bebecf989a7c154d0e7d93cb4b9302294
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 20007012180156142177f200c8874325e446638ab65fd87ecd6aa7f3377473fce0ff8dee1c88da698dc5aff77318cd66d6ad2bf3c419fabbc9c77170ff9b909d
|
|
7
|
+
data.tar.gz: aad5cb0fd0683f63fe3754c39745e87674e0df1c98b2babc4facc926d79bf1d0c9d3f643dd72d156acf29b18a159c0ea79e21b4e0e68ff384bc7c1402a2ae60e
|
data/lib/holdify/feedback.rb
CHANGED
|
@@ -149,7 +149,10 @@ module Holdify
|
|
|
149
149
|
|
|
150
150
|
# Methods enabling the git-diff ANSI feedback
|
|
151
151
|
module GitDiff
|
|
152
|
-
def git_command
|
|
152
|
+
def git_command
|
|
153
|
+
re = '[[:alnum:]:._-]+|[^[:alnum:]:._-]|[[:space:]]+' # YAML and HTML friendly: avoid long continuous tokens
|
|
154
|
+
"git diff --no-index --color-words='#{re}' --unified=1000 #{@exp_path} #{@act_path}"
|
|
155
|
+
end
|
|
153
156
|
|
|
154
157
|
def render_line(line, lineno, width)
|
|
155
158
|
clean = line.gsub(/\e\[(1|22|0)m/, '').lstrip
|
data/lib/holdify.rb
CHANGED