gemdiff 2.0.2 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gemdiff/repo_finder.rb +6 -2
- data/lib/gemdiff/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 173ec5ea250a39f9f3f8bc1d8b4d780c72b85a7feb7b5265432f20a949294f32
|
4
|
+
data.tar.gz: 6bb3676b463a56dda594e753b9600aeeff318ce842a81ac99c4640f3b063eebd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42fb8c2b3c17e8d9899c806c936a17c1bed2930132327e80b99f76e6f65b5adaa2a03fcda110c2362750b4139117fe9b4d5ce62a523c0630c6e978664f51b7ac
|
7
|
+
data.tar.gz: 4c85de98d620a5cdf32fd0d5b272d46607f9d6e8cdacc16bee7d35da637ffdf31f17add43e8f57f5b4b2abf7907bbcc9ac214b33ba7444f1b688e451e2f37b5f
|
data/lib/gemdiff/repo_finder.rb
CHANGED
@@ -92,9 +92,13 @@ module Gemdiff
|
|
92
92
|
end
|
93
93
|
return nil unless (yaml = gemspec(gem_name))
|
94
94
|
spec = YAML.load(yaml)
|
95
|
-
return spec.homepage if spec.homepage =~ GITHUB_REPO_REGEX
|
95
|
+
return secure_url(spec.homepage) if spec.homepage =~ GITHUB_REPO_REGEX
|
96
96
|
match = spec.description.match(GITHUB_REPO_REGEX)
|
97
|
-
match && match[0]
|
97
|
+
match && secure_url(match[0])
|
98
|
+
end
|
99
|
+
|
100
|
+
def secure_url(url)
|
101
|
+
url.gsub(/\Ahttp:/, "https:")
|
98
102
|
end
|
99
103
|
|
100
104
|
def search(gem_name)
|
data/lib/gemdiff/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gemdiff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tee Parham
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octokit
|