compare_linker 1.4.3 → 1.4.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9bae334a1336c83a873958fd02d6f31fd7637bf654a9119dc7812b887957aeeb
|
4
|
+
data.tar.gz: e2da7fd305c318105735b670cbe3aa1a0a4dd3233d79e2fd72cfd3a2c6d3f15e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38de120f6bda8fed338f6afd28c46253181f8107698af8c64d26a4f8262364c051fda12987e8296dee80eaede71b2a2fac884a2c5828949791641d1ab2cf8c1b
|
7
|
+
data.tar.gz: b3c4ca050cb298579e1d290a405db09b9d0f146d8506b9ef8f01fcf7c9454e1ac3ae56ab3a4d7032c37a1f480f70a25ddfa1abffa3f85a5c4c30267402d8a5e5
|
@@ -22,7 +22,7 @@ class CompareLinker
|
|
22
22
|
].find { |uri| uri.to_s.match(/github\.com\//) }
|
23
23
|
|
24
24
|
if github_url = redirect_url(github_url)
|
25
|
-
_, @repo_owner, @repo_name = github_url.match(%r!github\.com/([^/]+)/([
|
25
|
+
_, @repo_owner, @repo_name = github_url.match(%r!github\.com/([^/]+)/([^/#]+)!).to_a
|
26
26
|
else
|
27
27
|
@repo_owner, @repo_name = gem_dictionary.lookup(gem_info["name"])
|
28
28
|
@homepage_uri = gem_info["homepage_uri"]
|
@@ -0,0 +1 @@
|
|
1
|
+
{"name":"digest-crc","downloads":24696499,"version":"0.5.1","version_downloads":404439,"platform":"ruby","authors":"Postmodern","info":"Adds support for calculating Cyclic Redundancy Check (CRC) to the Digest module.","licenses":["MIT"],"metadata":{"changelog_uri":"https://github.com/postmodern/digest-crc/blob/master/ChangeLog.md","bug_tracker_uri":"https://github.com/postmodern/digest-crc/issues","source_code_uri":"https://github.com/postmodern/digest-crc","documentation_uri":"https://rubydoc.info/gems/digest-crc"},"yanked":false,"sha":"697b64b7c94e46756c178840d42bebdae9ebdb215da682f00dc3e6f3a107c181","project_uri":"https://rubygems.org/gems/digest-crc","gem_uri":"https://rubygems.org/gems/digest-crc-0.5.1.gem","homepage_uri":"https://github.com/postmodern/digest-crc#readme","wiki_uri":null,"documentation_uri":"https://rubydoc.info/gems/digest-crc","mailing_list_uri":null,"source_code_uri":"https://github.com/postmodern/digest-crc","bug_tracker_uri":"https://github.com/postmodern/digest-crc/issues","changelog_uri":"https://github.com/postmodern/digest-crc/blob/master/ChangeLog.md","dependencies":{"development":[{"name":"bundler","requirements":"~\u003e 2.0"}],"runtime":[]}}
|
@@ -32,6 +32,19 @@ describe CompareLinker::GithubLinkFinder do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
+
context "if github url includes hash" do
|
36
|
+
before do
|
37
|
+
allow(HTTPClient).to receive(:get_content).and_return load_fixture("digest-crc.json")
|
38
|
+
allow(subject).to receive(:redirect_url).and_return "https://github.com/postmodern/digest-crc#readme"
|
39
|
+
end
|
40
|
+
|
41
|
+
it "extracts repo_owner and repo_name" do
|
42
|
+
subject.find("digest-crc")
|
43
|
+
expect(subject.repo_owner).to eq "postmodern"
|
44
|
+
expect(subject.repo_name).to eq "digest-crc"
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
35
48
|
context "if gem not found on rubygems.org" do
|
36
49
|
before do
|
37
50
|
exception = HTTPClient::BadResponseError.new "unexpected response:..."
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: compare_linker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takashi Masuda
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-03-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: octokit
|
@@ -128,6 +128,7 @@ files:
|
|
128
128
|
- runner.rb
|
129
129
|
- spec/factories/gem_info.rb
|
130
130
|
- spec/fixtures/coffee-script-source.json
|
131
|
+
- spec/fixtures/digest-crc.json
|
131
132
|
- spec/fixtures/rails.json
|
132
133
|
- spec/fixtures/web_translate_it.json
|
133
134
|
- spec/lib/compare_linker/formatter/markdown_spec.rb
|
@@ -155,13 +156,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
156
|
- !ruby/object:Gem::Version
|
156
157
|
version: '0'
|
157
158
|
requirements: []
|
158
|
-
rubygems_version: 3.0.
|
159
|
+
rubygems_version: 3.0.3
|
159
160
|
signing_key:
|
160
161
|
specification_version: 4
|
161
162
|
summary: Create GitHub's compare view URLs for pull request
|
162
163
|
test_files:
|
163
164
|
- spec/factories/gem_info.rb
|
164
165
|
- spec/fixtures/coffee-script-source.json
|
166
|
+
- spec/fixtures/digest-crc.json
|
165
167
|
- spec/fixtures/rails.json
|
166
168
|
- spec/fixtures/web_translate_it.json
|
167
169
|
- spec/lib/compare_linker/formatter/markdown_spec.rb
|