danger 6.0.5 → 6.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/danger/request_sources/gitlab.rb +9 -2
- data/lib/danger/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6399c2198aa30f430f23acac0880e17511981dc2ff30aea5870621cb85e9e65
|
4
|
+
data.tar.gz: 81efc6836e4664d805360368f3ede80ec2c758f6327e622ed9875e7dca53ea65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4042bc459386e5873c0468e1579ab5cd5512229be5743a75fc17573e1e7ce67bfab2569dbe9986db8d5dd0554ee927d31b8fbf6e6d6cadf027b4543d26b5dc9a
|
7
|
+
data.tar.gz: ef91e279bc7889fa61a3f4cb6c370fe6d186d3a25607252f2bb0250c26347ceadf0a8aa1ae556eb41ce95ec59b9e5f3f807562ca867a53fe28f25d16a6b31399
|
@@ -94,8 +94,15 @@ module Danger
|
|
94
94
|
|
95
95
|
def mr_diff
|
96
96
|
@mr_diff ||= begin
|
97
|
-
mr_changes
|
98
|
-
|
97
|
+
diffs = mr_changes.changes.map do |change|
|
98
|
+
diff = change["diff"]
|
99
|
+
if diff.start_with?('--- a/')
|
100
|
+
diff
|
101
|
+
else
|
102
|
+
"--- a/#{change["old_path"]}\n+++ b/#{change["new_path"]}\n#{diff}"
|
103
|
+
end
|
104
|
+
end
|
105
|
+
diffs.join("\n")
|
99
106
|
end
|
100
107
|
end
|
101
108
|
|
data/lib/danger/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: danger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.
|
4
|
+
version: 6.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Orta Therox
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-04-
|
12
|
+
date: 2019-04-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: claide
|