repomen 0.1.3 → 0.1.4

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
  SHA1:
3
- metadata.gz: 44c0c7d629d7334b190107453ad40a8807cb110b
4
- data.tar.gz: a8326f4aaba2609d5eabc5ef2d3689cf07ff7a34
3
+ metadata.gz: 7e363c4f3d53c1accfd725c0f9186b5ae75fea9a
4
+ data.tar.gz: 8fc0a4c3b2d791cc588b466e4aa53f2ddcc0b2aa
5
5
  SHA512:
6
- metadata.gz: 05f2a6d1528a440784ab468971833e3780b6e35dd0c34037476c613373ce24a07d05f0752896f1cb7a06fc0560e6d8e785e0e85fa1deb652c170e640dcbd5473
7
- data.tar.gz: b5553661c07d7fdfaf5e35b9f4735832eaab386174998a4cf300f9a8554b792c9dd952ae9811c4f06ceafdc6e41b0196e549f039330e8be144f9f8ffb6ee2681
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[\:\/]([^\/]+)\/([^\.]+)\.git$/
5
+ SERVICE_REGEXP = /(https:\/\/|git\@)bitbucket.org[\:\/]([^\/]+)\/(.+)\.git$/
6
6
 
7
7
  # @param url [String]
8
8
  def applicable?
@@ -2,7 +2,7 @@ module Repomen
2
2
  module Repo
3
3
  module Service
4
4
  class GitHub < Base
5
- SERVICE_REGEXP = /(https:\/\/|git\@)github.com[\:\/]([^\/]+)\/([^\.]+)\.git$/
5
+ SERVICE_REGEXP = /(https:\/\/|git\@)github.com[\:\/]([^\/]+)\/(.+)\.git$/
6
6
 
7
7
  # @param url [String]
8
8
  def applicable?
@@ -1,3 +1,3 @@
1
1
  module Repomen
2
- VERSION = "0.1.3"
2
+ VERSION = '0.1.4'
3
3
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: repomen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - René Föhring