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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44b2fc8e9ba271755b5995d03991b6039535ef80
|
4
|
+
data.tar.gz: 20de81281c3a7291570bf4d0cabef7b995806cca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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)
|
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: 3.4.
|
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-
|
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.
|
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.
|