github_url 0.2.0 → 0.2.1
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 +4 -4
- data/lib/github_url.rb +1 -0
- data/lib/github_url/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 490a93953d68f995bc851b4ee572d2bbb960cc5e
|
|
4
|
+
data.tar.gz: 8b31e5d411d7fc2078dc06a847dc79a3ad68474f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6a7ffe690a7715c48c444c300105663dab6e369c85bac01f0cf0172f2aea40f2459714f11b61df174734ed081e884e1212a38ceb8adc6920866ccbe1e63d3f91
|
|
7
|
+
data.tar.gz: 1eb0985b39b06417408bc11c06ef187bb5399d699f832e5ce0908e26ca74159fcf546372f034c63381b1af4aad3f7b0d7122210f649cb44330f18071b833ab69
|
data/lib/github_url.rb
CHANGED
|
@@ -37,6 +37,7 @@ class GithubUrl
|
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
def validate_url
|
|
40
|
+
raise(Invalid, "Url cannot be blank.") if url.strip.empty?
|
|
40
41
|
raise(Invalid, "Must contain #{@host}") unless url.split("/").any? { |e| e.include?(@host) }
|
|
41
42
|
raise(Invalid, "Missing organization") if organization.nil?
|
|
42
43
|
raise(Invalid, "Missing repository") if repository.nil?
|
data/lib/github_url/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: github_url
|
|
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
|
- dizehacioglu
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-07-
|
|
11
|
+
date: 2017-07-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|