danger 3.4.1 → 3.4.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: de42011bfb76e71cb7b4a3307648b54695b9b725
4
- data.tar.gz: 06eb74831ab383be09312427e072f9d49096089d
3
+ metadata.gz: 44b2fc8e9ba271755b5995d03991b6039535ef80
4
+ data.tar.gz: 20de81281c3a7291570bf4d0cabef7b995806cca
5
5
  SHA512:
6
- metadata.gz: c8ce21aa3ad48d64b7ac92623ec924220f05a98ff3a80dd8a41fa5354d92296625f00ab0796396d7c06882cbff5147cd62af5f802499c1a192ca04a796c64f29
7
- data.tar.gz: 907dd19d7d3c044fe7f6c6e30dfbec053864de5b412e92bdbe7ebd05d29726d87c67f2de0c448f6c4e77bb6dfaf9a146a801adc4d03aefb3b09c9325b6dbb78c
6
+ metadata.gz: 86f4f302fdf25c27e572f08c2ec7424f52d24c87f8e125cb511e88572645e2f04a507a8aafcb82642acc73f74466695267662262cad34fc6964e9a131964dd4d
7
+ data.tar.gz: 35606932eacff700e806a9cb68d629e2f0eff6d27752248f6b6c1c348772d3d7c568c3f2345c2302b112fbfb4b33b624f47ba5ec404c027262e9faac2f1a64e2
@@ -53,7 +53,7 @@ module Danger
53
53
  end
54
54
 
55
55
  def initialize(env)
56
- self.repo_url = env["GIT_URL"]
56
+ self.repo_url = env.fetch("GIT_URL_1") { env["GIT_URL"] }
57
57
  self.pull_request_id = self.class.pull_request_id(env)
58
58
 
59
59
  repo_matches = self.repo_url.match(%r{([\/:])([^\/]+\/[^\/.]+)(?:.git)?$})
@@ -68,10 +68,11 @@ module Danger
68
68
  super
69
69
  end
70
70
 
71
- def initialize(env_manager, cork_board)
71
+ # cork_board not being set comes from plugins #585
72
+ def initialize(env_manager, cork_board = nil)
72
73
  @plugins = {}
73
74
  @core_plugins = []
74
- @ui = cork_board
75
+ @ui = cork_board || Cork::Board.new(silent: false, verbose: false)
75
76
 
76
77
  # Triggers the core plugins
77
78
  @env = env_manager
@@ -25,10 +25,10 @@ module Danger
25
25
  "danger_base".freeze
26
26
  end
27
27
 
28
- def initialize(env, ui)
28
+ def initialize(env, ui = nil)
29
29
  ci_klass = self.class.local_ci_source(env)
30
30
  self.ci_source = ci_klass.new(env)
31
- self.ui = ui
31
+ self.ui = ui || Cork::Board.new(silent: false, verbose: false)
32
32
 
33
33
  RequestSources::RequestSource.available_request_sources.each do |klass|
34
34
  next unless self.ci_source.supports?(klass)
@@ -37,7 +37,7 @@ module Danger
37
37
  end
38
38
 
39
39
  def ensure_commitish_exists!(commitish)
40
- exec("fetch") if exec("rev-parse --quiet --verify #{commitish}").empty?
40
+ exec("fetch") if exec("rev-parse --quiet --verify \"#{commitish}^{commit}\"").empty?
41
41
  end
42
42
 
43
43
  private
@@ -1,4 +1,4 @@
1
1
  module Danger
2
- VERSION = "3.4.1".freeze
2
+ VERSION = "3.4.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: 3.4.1
4
+ version: 3.4.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: 2016-09-30 00:00:00.000000000 Z
12
+ date: 2016-10-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: claide
@@ -459,7 +459,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
459
459
  version: '0'
460
460
  requirements: []
461
461
  rubyforge_project:
462
- rubygems_version: 2.6.4
462
+ rubygems_version: 2.2.2
463
463
  signing_key:
464
464
  specification_version: 4
465
465
  summary: Like Unit Tests, but for your Team Culture.