danger 5.0.0 → 5.0.1

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: 5fd9deced6ae5de0f6db64053ea3d3f1ead250f1
4
- data.tar.gz: d3a785a80730cdccf0af24371c576e6a5c9363fc
3
+ metadata.gz: d067c562d43578651a43d425217f20956ea7b858
4
+ data.tar.gz: aeafb99774bdf963f6d19b31fc62cfd1dc777aef
5
5
  SHA512:
6
- metadata.gz: eecc7b5882cd573ed7c0ad359a7ef44cd0566c2f31b078311bf99640a25f568932f9db375cd4318f56025cf2b324e44d298b019950294c72827d9cd1d99da3d4
7
- data.tar.gz: '0810b70bd02212d2a31a4356d4dbb26a16899815cb0507295353f6ddd5b020002ab318951fe84f5c53b6f5e5b4cd42d07bdbb66bcc388235a31ac44ce63f1ff5'
6
+ metadata.gz: 56441fecbe0d64456a7b33f6485e454801d1d6618b1c1dfc2a8d27adc797e437df1c01af0a8f6a48c29ed797ddbfdabf873a445907b74c3c1df017d1147bc80d
7
+ data.tar.gz: ff3be7ffe9b5cce3b7a4434cae8ee7474b9a5d882d248532b646938a697c568b71c1508b0fb14d7c139ee3c4454f8b8c933a447bd813392fa203bc40e43007a7
@@ -22,7 +22,7 @@ module Danger
22
22
  #
23
23
  # @example Warn when there are merge commits in the diff
24
24
  #
25
- # if commits.any? { |c| c.message =~ /^Merge branch 'master'/ }
25
+ # if git.commits.any? { |c| c.message =~ /^Merge branch 'master'/ }
26
26
  # warn 'Please rebase to get rid of the merge commits in this PR'
27
27
  # end
28
28
  #
@@ -11,7 +11,10 @@ module Danger
11
11
  @username = environment["DANGER_BITBUCKETSERVER_USERNAME"]
12
12
  @password = environment["DANGER_BITBUCKETSERVER_PASSWORD"]
13
13
  self.host = environment["DANGER_BITBUCKETSERVER_HOST"]
14
- self.pr_api_endpoint = "https://#{host}/rest/api/1.0/projects/#{project}/repos/#{slug}/pull-requests/#{pull_request_id}"
14
+ if !(self.host.include? "http://") && !(self.host.include? "https://")
15
+ self.host = "https://" + self.host
16
+ end
17
+ self.pr_api_endpoint = "#{host}/rest/api/1.0/projects/#{project}/repos/#{slug}/pull-requests/#{pull_request_id}"
15
18
  end
16
19
 
17
20
  def inspect
@@ -1,4 +1,4 @@
1
1
  module Danger
2
- VERSION = "5.0.0".freeze
2
+ VERSION = "5.0.1".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: 5.0.0
4
+ version: 5.0.1
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-04-16 00:00:00.000000000 Z
12
+ date: 2017-04-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: claide