danger 8.5.0 → 8.6.0

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: c8d6272f0ed9095d67e585d262669d8d11705a8a5cce460c02122a9b826d5cd7
4
- data.tar.gz: 42699026115d900c5e32f057e206697472be7ba80d6d1686e7eb07d5262100c6
3
+ metadata.gz: 3b2a439e378d52312f7b772f1df4ee246d61aaede6b725578e9328e50a6d3a13
4
+ data.tar.gz: 1728ce2347569a956fe415ae3d9553f3606fd4272054e359947f11aff280ccd5
5
5
  SHA512:
6
- metadata.gz: 3981a24f19fb7b63737b80435d8d2685fa187630aeb82edb28042c8d0db74f23412e588daf16732f045563cc52f9d85432682c76fe1913c4cde57d671b99cb8b
7
- data.tar.gz: 4b7f3f4fb90975da2faa9cbdff6e5cb95e27ea06447fa95a749df6df77bec14de7c47c6e52fc2d98949e160cb4dd12a96d9babefec2798be8cdcd1cde77f0ebd
6
+ metadata.gz: 81094ad713b156bb548ce7e132ca31e6a01c9a280c8a5ac7faa6a6f79575750a23fde0d0331c9e3a98f049e4dfd32c08cda886faf01ccd09dcfdf68101fa1765
7
+ data.tar.gz: ac33a566081b19995683e314a47d47513a4b4446634250e3526db681aa5d955f2228d87a989a81c24cb907570ce1c2b8eddf794c7e5cf4f33c641ba04c8db5e0
@@ -128,7 +128,7 @@ module Danger
128
128
  # @return [Git::Diff::DiffFile] from the gem `git`
129
129
  #
130
130
  def diff_for_file(file)
131
- (added_files + modified_files).include?(file) ? @git.diff[file] : nil
131
+ (added_files + modified_files + deleted_files).include?(file) ? @git.diff[file] : nil
132
132
  end
133
133
 
134
134
  # @!group Git Metadata
@@ -55,7 +55,8 @@ module Danger
55
55
  def exec(string)
56
56
  require "open3"
57
57
  Dir.chdir(self.folder || ".") do
58
- Open3.popen2(default_env, "git #{string}") do |_stdin, stdout, _wait_thr|
58
+ git_command = string.split(" ").dup.unshift("git")
59
+ Open3.popen2(default_env, *git_command) do |_stdin, stdout, _wait_thr|
59
60
  stdout.read.rstrip
60
61
  end
61
62
  end
@@ -1,4 +1,4 @@
1
1
  module Danger
2
- VERSION = "8.5.0".freeze
2
+ VERSION = "8.6.0".freeze
3
3
  DESCRIPTION = "Like Unit Tests, but for your Team Culture.".freeze
4
4
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.5.0
4
+ version: 8.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orta Therox
8
8
  - Juanito Fatas
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-03-17 00:00:00.000000000 Z
12
+ date: 2022-04-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: claide
@@ -328,7 +328,7 @@ homepage: https://github.com/danger/danger
328
328
  licenses:
329
329
  - MIT
330
330
  metadata: {}
331
- post_install_message:
331
+ post_install_message:
332
332
  rdoc_options: []
333
333
  require_paths:
334
334
  - lib
@@ -343,8 +343,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
343
343
  - !ruby/object:Gem::Version
344
344
  version: '0'
345
345
  requirements: []
346
- rubygems_version: 3.1.4
347
- signing_key:
346
+ rubyforge_project:
347
+ rubygems_version: 2.7.6.2
348
+ signing_key:
348
349
  specification_version: 4
349
350
  summary: Like Unit Tests, but for your Team Culture.
350
351
  test_files: []