repomen 0.2.0 → 0.2.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: f7da6e4ac7e6ed01f6892935ba8466666f3954ab
4
- data.tar.gz: 36ca690f5c29727d134d3d30d4b5389a19459da2
3
+ metadata.gz: 5b17b0bb8dccc1eba0b6b370ad46ef55395724ee
4
+ data.tar.gz: 5930ef600c544cb5bd1376d2c04438dad48f5e98
5
5
  SHA512:
6
- metadata.gz: afd6dd51dc418792ca775e2f14513dea5c3c5ff529e66c9bf5a5e915d9fbe0b842c434780846353248bbfa6a3c6fe680a60d20415d4cf7302712db4f67204881
7
- data.tar.gz: 3c0d704f5903df4196300925dbf7dadf47f5b92ed533e732c5aa6621780c43eea94de5ae87bebcf7e33faae0f979793294ea0e649c590fe9cf9b9b70d763b0a0
6
+ metadata.gz: 1242d8cee15ed6cb1aa7b65127bfc67601f4b3542370fe502bb37ae7114eeaed9367a991677d0ddc2fac068696021273bfcbd98798583b7454bbbdcaff17dd1e
7
+ data.tar.gz: 26585a8302496f78e7d3f763bcf32dbde78e145bc8048898ae47c4687799fefa0df29372145d97fd7658278ae8cea6e21f510bd514af7e5c1366c9951b303d0d
@@ -1 +1 @@
1
- ruby-2.1.0
1
+ ruby-2.1.5
@@ -2,7 +2,7 @@ module Repomen
2
2
  module Repo
3
3
  module Service
4
4
  class GitHub < Base
5
- SERVICE_REGEXP = /(https:\/\/|git:\/\/|git\@)github.com[\:\/]([^\/]+)\/(.+)\.git$/
5
+ SERVICE_REGEXP = /(https:\/\/|git:\/\/|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.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
@@ -26,4 +26,12 @@ describe ::Repomen::Repo::Service::GitHub do
26
26
  assert_equal "octocat", service.user_name
27
27
  assert_equal "Hello-World", service.repo_name
28
28
  end
29
+
30
+ it "should recognize a Github URL via https w/o .git extension" do
31
+ url = "https://github.com/octocat/Hello-World"
32
+ service = described_class.new(url)
33
+ assert service.applicable?
34
+ assert_equal "octocat", service.user_name
35
+ assert_equal "Hello-World", service.repo_name
36
+ end
29
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: repomen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - René Föhring
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-06 00:00:00.000000000 Z
11
+ date: 2015-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  version: '0'
137
137
  requirements: []
138
138
  rubyforge_project:
139
- rubygems_version: 2.2.0
139
+ rubygems_version: 2.4.3
140
140
  signing_key:
141
141
  specification_version: 4
142
142
  summary: Interface wrapper for retrieving repos