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: aa6b37fb17398fe4c260d3061dc0f70e65a78394d7457d315073d44dba7b879f
4
- data.tar.gz: 0ab01536474a4520b80f06451dd0c94d4f3965b0094968745c72d58780ee0307
3
+ metadata.gz: 80f6b19935a240bbde880440ed797ee95e3a96e71caefda37b1285f83952c477
4
+ data.tar.gz: 5b847794e4248517cf14f07562150f35bd124e55b041638e393b5a4c55e5ae12
5
5
  SHA512:
6
- metadata.gz: c79ca524ee16c5e5bf9e7c5e99895bbadcc3ee3979ba5fda2b8510bae5f08a0ee48eef52675566bb745f05799ba2b5ab32e1110b924a0bc205d3510b1da908a9
7
- data.tar.gz: 31ad9d9cb0e42ec3954d5ba510106fe2ebb4b3bbaca7bb92916018eb6c4690e3fe73f3bb975683ff1e99e94c9118e55682bf78870fcec8f02949204247e90ba0
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?(:gitlab_project_id)
82
- import_dangerfile_from_gitlab(opts[:gitlab_project_id], opts[:branch], opts[:path])
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] project_id
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(project_id, branch = nil, path = nil)
178
- raise "`import_dangerfile_from_gitlab` requires a integer" unless project_id.kind_of?(Integer)
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
@@ -1,4 +1,4 @@
1
1
  module Danger
2
- VERSION = "6.0.7".freeze
2
+ VERSION = "6.0.8".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: 6.0.7
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-15 00:00:00.000000000 Z
12
+ date: 2019-05-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: claide