daddy 0.0.17 → 0.0.18
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 +8 -8
- data/lib/daddy/cucumber/diff.rb +14 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODU2YzdmNDk5ZWFhYzlmZWIzODgzY2I5YzM4NjgyM2QyYTlhMmI3OQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDRkYmE3M2YzOWQ5NTBkNzYzYzBlMDE3ZTZlYzgzMmYxOGI3YTNmMw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDdhYWE2NWZkZTc3ZWQxOThiOWZiM2VlMTA1MTM3OThlM2Q4MjFhZmI1NmU4
|
10
|
+
ZjM5YjliZTdjZTU2ZDg0NWViMGU1NWE0ZTM2ZTViMDZiYjRlYTlkZDk2M2Zi
|
11
|
+
ODIyMzQzYWQ1Y2FhYWJiZTgwNjUzOWUzN2QzNDE0MmZhZDg0ZWQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTc4YTg3MDc4NmMwOTRkMDczMzA3MzUwMjZiYzVmYTFmZTc5Mzg5YzJkY2Jl
|
14
|
+
YWEzNjQwYWQ2Mzg3OTlhYTEyYWVhMjhhZGNjODBhNmVlNmQ5NzA5ZjIwNmVl
|
15
|
+
YWEwNWMwYTgyZDUxNzNjYjRlMjBiNjRiMjA1ODdjZjVhNzczYzE=
|
data/lib/daddy/cucumber/diff.rb
CHANGED
@@ -10,8 +10,21 @@ module Daddy
|
|
10
10
|
b = git.show_previous(git_path, true).gsub(/[<>]/, '<' => '<', '>' => '>')
|
11
11
|
diff = Differ.diff(a, b)
|
12
12
|
|
13
|
+
diff_lines = diff.to_s.split("\n")
|
14
|
+
lines = []
|
15
|
+
puts diff_lines.size
|
16
|
+
diff_lines.each_with_index do |line, i|
|
17
|
+
if line.index('<ins ') and line.index('<del ')
|
18
|
+
split = line.split('<ins ')
|
19
|
+
lines << split[0]
|
20
|
+
lines << '<ins ' + split[1]
|
21
|
+
else
|
22
|
+
lines << line
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
13
26
|
puts local_file
|
14
|
-
puts "<pre>#{
|
27
|
+
puts "<pre>#{lines.join("\n")}</pre>"
|
15
28
|
end
|
16
29
|
|
17
30
|
def show(file)
|