danger 6.3.0 → 6.3.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
  SHA256:
3
- metadata.gz: 9d926df8cc4784ba1922fb73e34566e9b22e29f7345965d673fda190b265c151
4
- data.tar.gz: f8970d62ca3a0e305e1c80e1e27bde421c2eeb6dffc5633e7abba91d21c6b92f
3
+ metadata.gz: c582d1189749d620a69040b53f7fc73c581efd772c39ab7931cd7ed886522fe8
4
+ data.tar.gz: 59a22185cdd2cd993ceef9f01934e7757fa6f4f4cd4229e76634bca4b13dd5b1
5
5
  SHA512:
6
- metadata.gz: 9608e049321d268c0f3870c3bb8b73409a18f8fcedc7f51b199a70a0495f5ed4d2d729276fd65cfdf398b04702c2a55d75c4ddcfe73d80098971c5126f5b33c7
7
- data.tar.gz: 4fd51d8b97e1e1e417885ef72b4ece5755fbfe691bccd60b437950071cb70e009a3205397a5f8da281c776da58133d9690c98f415eb29a17bcb99da5b6fc277d
6
+ metadata.gz: 9e6f93dae26ee18d328f10d1287c4dc0127b3199e8b055992795d4440180625010b7ecb5d229241b4d415918846cdecd9d46d214fc51b66ed43c399203ce0490
7
+ data.tar.gz: f0ea9446eadaa3705337982b51bf1abd49ca96e9ddecf14b888c69b48cad6ceec7ff5d59cd48f18061d8128c6c12c3cc9be12d8149461eedc8d6388f65e17179
@@ -25,7 +25,7 @@ module Danger
25
25
  # finding the project and repo slug in the GIT_REPOSITORY_URL variable. This GIT_REPOSITORY_URL variable
26
26
  # comes from the App Settings tab for your Bitrsie App. If you are manually setting a repo URL in the
27
27
  # Git Clone Repo step, you may need to set adjust this propery in the settings tab, maybe even fake it.
28
- # The patterns used are `(%r{\.com/(.*)})` and `(%r{\.com:(.*)})` .
28
+ # The patterns used are `(%r{\.com/(.*)})` and `(%r{\.com:(.*)})` and .split(/\.git$|$/) to remove ".git" if the URL contains it.
29
29
  #
30
30
  class Bitrise < CI
31
31
  def self.validates_as_ci?(env)
@@ -50,9 +50,9 @@ module Danger
50
50
  self.repo_url = env["GIT_REPOSITORY_URL"]
51
51
 
52
52
  if repo_url.include? ".com/"
53
- repo_matches = self.repo_url.match(%r{\.com/(.*)})[1]
53
+ repo_matches = self.repo_url.match(%r{\.com/(.*)})[1].split(/\.git$|$/)[0]
54
54
  elsif repo_url.include? ".com:"
55
- repo_matches = self.repo_url.match(%r{\.com:(.*)})[1]
55
+ repo_matches = self.repo_url.match(%r{\.com:(.*)})[1].split(/\.git$|$/)[0]
56
56
  end
57
57
 
58
58
  self.repo_slug = repo_matches unless repo_matches.nil?
@@ -1,4 +1,4 @@
1
1
  module Danger
2
- VERSION = "6.3.0".freeze
2
+ VERSION = "6.3.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: 6.3.0
4
+ version: 6.3.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: 2020-02-28 00:00:00.000000000 Z
12
+ date: 2020-03-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: claide