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 +4 -4
- data/.ruby-version +1 -1
- data/lib/repomen/repo/service/git_hub.rb +1 -1
- data/lib/repomen/version.rb +1 -1
- data/test/repomen/repo/service/git_hub_test.rb +8 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b17b0bb8dccc1eba0b6b370ad46ef55395724ee
|
4
|
+
data.tar.gz: 5930ef600c544cb5bd1376d2c04438dad48f5e98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1242d8cee15ed6cb1aa7b65127bfc67601f4b3542370fe502bb37ae7114eeaed9367a991677d0ddc2fac068696021273bfcbd98798583b7454bbbdcaff17dd1e
|
7
|
+
data.tar.gz: 26585a8302496f78e7d3f763bcf32dbde78e145bc8048898ae47c4687799fefa0df29372145d97fd7658278ae8cea6e21f510bd514af7e5c1366c9951b303d0d
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-2.1.
|
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[\:\/]([^\/]+)\/(
|
5
|
+
SERVICE_REGEXP = /(https:\/\/|git:\/\/|git\@)github.com[\:\/]([^\/]+)\/(.+?)(\.git)?$/
|
6
6
|
|
7
7
|
# @param url [String]
|
8
8
|
def applicable?
|
data/lib/repomen/version.rb
CHANGED
@@ -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.
|
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:
|
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.
|
139
|
+
rubygems_version: 2.4.3
|
140
140
|
signing_key:
|
141
141
|
specification_version: 4
|
142
142
|
summary: Interface wrapper for retrieving repos
|