danger 4.3.1 → 4.3.2

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
  SHA1:
3
- metadata.gz: d77c9d65a92cf78a691b3733ab33238daa75b25d
4
- data.tar.gz: 0c689375145b93acc3c788b0690226d67b0152f5
3
+ metadata.gz: b7941b0c0f6d0d18603265ce8daed01d8075ea11
4
+ data.tar.gz: eeaea8c0c7947c8f0cdbd3e90415c93dc5510999
5
5
  SHA512:
6
- metadata.gz: da8c5e3e41d0f585def7c3fe2662a14987e38537305e73d570061de4af90a09f07587befd829f52d1e665b5c5de3c252c67341dd00bd4dbd60b9e89c74b3b81c
7
- data.tar.gz: 5725e767aa421a772fa8b69c5f50f50c204f78cacef211b3cace46c6a040f2c4d67dde6a02eb356122bc08f876f7a655fea7946418d119c4d9a19ad3de0e29f8
6
+ metadata.gz: bde2e5f4bdcbb18fdc5840175407c00b42929637e7de95cacd695c2ec6b440b174434d7205a995900de08543f23071dfd24f3c94c371f62daae34572eb4be26f
7
+ data.tar.gz: 29f6a0d0e9dd882ca98f31d53aff9c777f7e859e0078c7a89fe7702d5974ec6f6b1b779740df9212fdba6b747c7c7bb879fed5a9b2d26f6c4de4f57489dbfcdd
@@ -212,7 +212,7 @@ module Danger
212
212
  return if (violations[:errors] + violations[:warnings] + violations[:messages] + status[:markdowns]).count.zero?
213
213
 
214
214
  ui.section("Results:") do
215
- [:errors, :warnings, :messages].each do |key|
215
+ %i(errors warnings messages).each do |key|
216
216
  formatted = key.to_s.capitalize + ":"
217
217
  title = case key
218
218
  when :errors
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+
2
3
  require "danger/plugin_support/plugin"
3
4
 
4
5
  module Danger
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+
2
3
  require "danger/plugin_support/plugin"
3
4
 
4
5
  module Danger
@@ -234,7 +234,7 @@ module Danger
234
234
  @github.dismiss_out_of_range_messages = dismiss == true
235
235
  end
236
236
 
237
- [:title, :body, :author, :labels, :json].each do |suffix|
237
+ %i(title body author labels json).each do |suffix|
238
238
  alias_method "mr_#{suffix}".to_sym, "pr_#{suffix}".to_sym
239
239
  end
240
240
 
@@ -207,7 +207,7 @@ module Danger
207
207
  paths.first(paths.count - 1).join(", ") + " & " + paths.last
208
208
  end
209
209
 
210
- [:title, :body, :author, :labels, :json, :diff].each do |suffix|
210
+ %i(title body author labels json diff).each do |suffix|
211
211
  alias_method "pr_#{suffix}".to_sym, "mr_#{suffix}".to_sym
212
212
  end
213
213
 
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+
2
3
  require "danger/helpers/comments_helper"
3
4
  require "danger/request_sources/bitbucket_cloud_api"
4
5
 
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+
2
3
  require "danger/helpers/comments_helper"
3
4
 
4
5
  module Danger
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+
2
3
  require "danger/helpers/comments_helper"
3
4
  require "danger/request_sources/bitbucket_server_api"
4
5
 
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+
2
3
  require "danger/helpers/comments_helper"
3
4
 
4
5
  module Danger
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+
2
3
  require "octokit"
3
4
  require "danger/helpers/comments_helper"
4
5
  require "danger/helpers/comment"
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+
2
3
  require "octokit"
3
4
  require "danger/ci_source/ci_source"
4
5
  require "danger/request_sources/github/octokit_pr_review"
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+
2
3
  require "danger/request_sources/github/github_review"
3
4
 
4
5
  module Danger
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+
2
3
  module Danger
3
4
  module RequestSources
4
5
  module GitHubSource
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+
2
3
  require "octokit"
3
4
 
4
5
  module Octokit
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+
2
3
  require "danger/helpers/comments_helper"
3
4
  require "danger/helpers/comment"
4
5
 
@@ -36,7 +37,6 @@ module Danger
36
37
  params[:endpoint] = endpoint
37
38
 
38
39
  @client ||= Gitlab.client(params)
39
-
40
40
  rescue LoadError
41
41
  puts "The GitLab gem was not installed, you will need to change your Gem from `danger` to `danger-gitlab`.".red
42
42
  puts "\n - See https://github.com/danger/danger/blob/master/CHANGELOG.md#400"
@@ -37,7 +37,7 @@ module Danger
37
37
  end
38
38
 
39
39
  def ensure_commitish_exists!(commitish)
40
- git_shallow_fetch if commit_not_exists?(commitish)
40
+ git_in_depth_fetch if commit_not_exists?(commitish)
41
41
 
42
42
  if commit_not_exists?(commitish)
43
43
  raise_if_we_cannot_find_the_commit(commitish)
@@ -46,8 +46,8 @@ module Danger
46
46
 
47
47
  private
48
48
 
49
- def git_shallow_fetch
50
- exec("fetch --unshallow")
49
+ def git_in_depth_fetch
50
+ exec("fetch --depth 1000000")
51
51
  end
52
52
 
53
53
  def default_env
@@ -70,7 +70,7 @@ module Danger
70
70
  possible_merge_base = possible_merge_base(repo, from, to)
71
71
 
72
72
  unless possible_merge_base
73
- git_shallow_fetch
73
+ git_in_depth_fetch
74
74
  possible_merge_base = possible_merge_base(repo, from, to)
75
75
  end
76
76
 
@@ -1,4 +1,4 @@
1
1
  module Danger
2
- VERSION = "4.3.1".freeze
2
+ VERSION = "4.3.2".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: 4.3.1
4
+ version: 4.3.2
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: 2017-03-19 00:00:00.000000000 Z
12
+ date: 2017-03-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: claide