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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 96ab8e39041d373be6381b1438f1684c8e00f95afbd4302bf78cb1f493349f39
4
- data.tar.gz: 4a1590181d02f5d6fc8bbe165281ce6ecb04aa78f70abd167c2b792e095ca9ac
3
+ metadata.gz: 173ec5ea250a39f9f3f8bc1d8b4d780c72b85a7feb7b5265432f20a949294f32
4
+ data.tar.gz: 6bb3676b463a56dda594e753b9600aeeff318ce842a81ac99c4640f3b063eebd
5
5
  SHA512:
6
- metadata.gz: 63712c6b4308873c124d9482adf7a1e310b81e18b19bea6c800b1a0fd88a16c57326b8256865ca1437c62fd669eb4dd2ad29d9c8ed7c6a0cdf63d1175cad73fb
7
- data.tar.gz: fbd67a91c582236e5504e9dc083538708aec75fcaca4f09b9545e4e907a84ccb1fc2461caea56499b1f5be4b8790250f1aaad17243fa5fe82d0488f777caff34
6
+ metadata.gz: 42fb8c2b3c17e8d9899c806c936a17c1bed2930132327e80b99f76e6f65b5adaa2a03fcda110c2362750b4139117fe9b4d5ce62a523c0630c6e978664f51b7ac
7
+ data.tar.gz: 4c85de98d620a5cdf32fd0d5b272d46607f9d6e8cdacc16bee7d35da637ffdf31f17add43e8f57f5b4b2abf7907bbcc9ac214b33ba7444f1b688e451e2f37b5f
@@ -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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gemdiff
4
- VERSION = "2.0.2"
4
+ VERSION = "2.1.0"
5
5
  end
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.2
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-03-12 00:00:00.000000000 Z
11
+ date: 2018-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit