saddler-reporter-support-git 0.1.4 → 0.1.5
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: e551049f03f6773c69c4417080cef021e16e2535
|
4
|
+
data.tar.gz: 6ba6c76681a35733397ca1675890cf89e206c29d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffaf3106f6706b862fe1bbf6b85861596f37e955ffa79ccc71218eb50c2e539b041128d99f4f9e4c2fd3f0508dded2ba301997711ae19b2f14731558837dd2ff
|
7
|
+
data.tar.gz: f7f03800be7c7d79c4f59f4d9aeefc6e16d7218057210e77a352f6a910f0988cab990679c02188a65a02384475d7eaf1558da5843256ff83907f3edcea254bbc
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
### 0.1.5 (2015-03-05)
|
2
|
+
|
3
|
+
#### Fix
|
4
|
+
|
5
|
+
* **slug:** use uri-ssh_git if ssh protocol ([90ad516](https://github.com/packsaddle/ruby-saddler-reporter-support-git/commit/90ad516ccb5e39cdb374572fa43641383becdcfb))
|
6
|
+
|
7
|
+
### 0.1.4 (2015-02-26)
|
8
|
+
|
9
|
+
#### Features
|
10
|
+
|
11
|
+
* **circleci:** detect circle-ci branch ([357c77f](https://github.com/packsaddle/ruby-saddler-reporter-support-git/commit/357c77f75d783ce89c0c5a1fa367dcf4b04a59e1))
|
@@ -10,9 +10,13 @@ module Saddler
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def slug
|
13
|
-
slug_regex = %r{\A
|
13
|
+
slug_regex = %r{\A/(?<slug>.*?)(?:\.git)?\Z}
|
14
14
|
remote_urls.map do |url|
|
15
|
-
|
15
|
+
if URI::SshGit.ssh_protocol?(url)
|
16
|
+
uri = URI::SshGit.parse(url)
|
17
|
+
else
|
18
|
+
uri = Addressable::URI.parse(url)
|
19
|
+
end
|
16
20
|
match = slug_regex.match(uri.path)
|
17
21
|
match[:slug] if match
|
18
22
|
end.compact.first
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: saddler-reporter-support-git
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sanemat
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: git
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: uri-ssh_git
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: addressable
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -105,6 +119,7 @@ files:
|
|
105
119
|
- ".rubocop.yml"
|
106
120
|
- ".tachikoma.yml"
|
107
121
|
- ".travis.yml"
|
122
|
+
- CHANGELOG.md
|
108
123
|
- CODE_OF_CONDUCT.md
|
109
124
|
- Gemfile
|
110
125
|
- LICENSE.txt
|