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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4004dbb1205aad12f66f5278fcf5baa4a5e052c0a93c2c3aff2192294fcd5912
4
- data.tar.gz: f9efeacd037a59d541a6e948acbd3041793387e93ecf52a7368f2a7c0080dac1
3
+ metadata.gz: e6399c2198aa30f430f23acac0880e17511981dc2ff30aea5870621cb85e9e65
4
+ data.tar.gz: 81efc6836e4664d805360368f3ede80ec2c758f6327e622ed9875e7dca53ea65
5
5
  SHA512:
6
- metadata.gz: 796525af00e43eb89f3226108effe5bb41560cc8afe6c9b19e4680066eaf09e70eb517e406225a6bc2a1961f3d1b2216df66afc1f1f137fe5ed5fa61c44421e4
7
- data.tar.gz: 2dc38dcfd71cfacf44eccc0640ddb11295b53e0bb5d43aeb447ceeb884174fb069b4d218fd0f3590134d0395f73a3529f5f8e0575084375d6b32cd85287dba7a
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
- .changes.map { |change| change["diff"] }.join("\n")
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
 
@@ -1,4 +1,4 @@
1
1
  module Danger
2
- VERSION = "6.0.5".freeze
2
+ VERSION = "6.0.6".freeze
3
3
  DESCRIPTION = "Like Unit Tests, but for your Team Culture.".freeze
4
4
  end
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.5
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-17 00:00:00.000000000 Z
12
+ date: 2019-04-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: claide