repomen 0.1.3 → 0.1.4
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: 7e363c4f3d53c1accfd725c0f9186b5ae75fea9a
|
4
|
+
data.tar.gz: 8fc0a4c3b2d791cc588b466e4aa53f2ddcc0b2aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77cd1457379599585fce99d80cc77684dab35c1b8d6610279c90457873bb190da2d535b263d5e05aea3458ae93270eeac5e1fbc74b00520a5167dee82d888d0f
|
7
|
+
data.tar.gz: f353e4811080d7484beaed49954d48e4617b93b240cc1d11308e50c90e801554076fb4da17fcd3bc9e2c0881785914b744208480e23ca5594bd25bcf22b9d30f
|
@@ -2,7 +2,7 @@ module Repomen
|
|
2
2
|
module Repo
|
3
3
|
module Service
|
4
4
|
class BitBucket < Base
|
5
|
-
SERVICE_REGEXP = /(https:\/\/|git\@)bitbucket.org[\:\/]([^\/]+)\/(
|
5
|
+
SERVICE_REGEXP = /(https:\/\/|git\@)bitbucket.org[\:\/]([^\/]+)\/(.+)\.git$/
|
6
6
|
|
7
7
|
# @param url [String]
|
8
8
|
def applicable?
|
data/lib/repomen/version.rb
CHANGED
@@ -6,12 +6,21 @@ describe ::Repomen::Repo::Service do
|
|
6
6
|
it "should recognize a GitHub URL via git" do
|
7
7
|
url = "git@github.com:octocat/Hello-World.git"
|
8
8
|
service = described_class.for(url)
|
9
|
+
refute service.nil?
|
10
|
+
assert_equal :github, service.name
|
11
|
+
end
|
12
|
+
|
13
|
+
it "should recognize a GitHub URL with .rb at the end via git" do
|
14
|
+
url = "git@github.com:bfontaine/Graphs.rb.git"
|
15
|
+
service = described_class.for(url)
|
16
|
+
refute service.nil?
|
9
17
|
assert_equal :github, service.name
|
10
18
|
end
|
11
19
|
|
12
20
|
it "should recognize a BitBucket URL via git" do
|
13
21
|
url = "git@bitbucket.org:atlassian_tutorial/helloworld.git"
|
14
22
|
service = described_class.for(url)
|
23
|
+
refute service.nil?
|
15
24
|
assert_equal :bitbucket, service.name
|
16
25
|
end
|
17
26
|
end
|