danger 6.0.7 → 6.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 80f6b19935a240bbde880440ed797ee95e3a96e71caefda37b1285f83952c477
|
|
4
|
+
data.tar.gz: 5b847794e4248517cf14f07562150f35bd124e55b041638e393b5a4c55e5ae12
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 64a40935cdcd201bf18e4ce4b5164297810193f8652581109dc5ab7052770806e298fa301af21146ebfe5dd6339a7434219a62df59130399caeefe02cc1932cf
|
|
7
|
+
data.tar.gz: 8d6677ef236df76a8f06b268555b70e7046ad010b1c5b949b401b767ff305e992b55c2e28f206c59e74367af190c199fb8f217fdb25039cc9682ce8e42935ff7
|
|
@@ -78,8 +78,8 @@ module Danger
|
|
|
78
78
|
elsif opts.kind_of?(Hash)
|
|
79
79
|
if opts.key?(:github)
|
|
80
80
|
import_dangerfile_from_github(opts[:github], opts[:branch], opts[:path])
|
|
81
|
-
elsif opts.key?(:
|
|
82
|
-
import_dangerfile_from_gitlab(opts[:
|
|
81
|
+
elsif opts.key?(:gitlab)
|
|
82
|
+
import_dangerfile_from_gitlab(opts[:gitlab], opts[:branch], opts[:path])
|
|
83
83
|
elsif opts.key?(:path)
|
|
84
84
|
import_dangerfile_from_path(opts[:path])
|
|
85
85
|
elsif opts.key?(:gem)
|
|
@@ -166,17 +166,16 @@ module Danger
|
|
|
166
166
|
# @!group Danger
|
|
167
167
|
# Download and execute a remote Dangerfile.
|
|
168
168
|
#
|
|
169
|
-
# @param [Int]
|
|
170
|
-
# The id of the repo where the Dangerfile is.
|
|
169
|
+
# @param [Int] slug_or_project_id
|
|
170
|
+
# The slug or id of the repo where the Dangerfile is.
|
|
171
171
|
# @param [String] branch
|
|
172
172
|
# A branch from repo where the Dangerfile is.
|
|
173
173
|
# @param [String] path
|
|
174
174
|
# The path at the repo where Dangerfile is.
|
|
175
175
|
# @return [void]
|
|
176
176
|
#
|
|
177
|
-
def import_dangerfile_from_gitlab(
|
|
178
|
-
|
|
179
|
-
download_url = env.request_source.file_url(repository: project_id, branch: branch, path: path || "Dangerfile")
|
|
177
|
+
def import_dangerfile_from_gitlab(slug_or_project_id, branch = nil, path = nil)
|
|
178
|
+
download_url = env.request_source.file_url(repository: slug_or_project_id, branch: branch, path: path || "Dangerfile")
|
|
180
179
|
local_path = download(download_url)
|
|
181
180
|
@dangerfile.parse(Pathname.new(local_path))
|
|
182
181
|
end
|
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: 6.0.
|
|
4
|
+
version: 6.0.8
|
|
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-05-
|
|
12
|
+
date: 2019-05-21 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: claide
|