compare_linker 1.1.9 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/compare_linker/formatter/markdown.rb +7 -6
- data/lib/compare_linker/version.rb +1 -1
- 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: 061a65f1395cc27c55e4cdcb32e24466548b83ad
|
4
|
+
data.tar.gz: a3952ac958f607203a2c025a9c4bfe8ca8a68678
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18ba00fe45acee1051c760e0a4815a6d24c2b2cbdbd0bfcbac63f4789ed45f8501be53dc27ea2587d990d63b52dec174ec86c2e3c171184ebe9700777522221d
|
7
|
+
data.tar.gz: 1c72aaa66668992b3dba358e93ae3c7cdfe29d4012a4e32c3a2e98a2f519e5ebfeca9c0ccae756f4e2f227b6050110f66405b40937492c0ca0675123addf2487
|
@@ -6,17 +6,18 @@ class CompareLinker
|
|
6
6
|
def format(gem_info)
|
7
7
|
g = OpenStruct.new(gem_info)
|
8
8
|
|
9
|
-
text =
|
9
|
+
text = "* [ ] "
|
10
|
+
text += case
|
10
11
|
when g.owner && g.old_rev && g.new_rev
|
11
|
-
"
|
12
|
+
"#{g.gem_name}: https://github.com/#{g.owner}/#{g.gem_name}/compare/#{g.old_rev}...#{g.new_rev}"
|
12
13
|
when g.homepage_uri
|
13
|
-
"
|
14
|
+
"[#{g.gem_name}](#{g.homepage_uri}): #{g.old_ver} => #{g.new_ver}"
|
14
15
|
when g.old_tag && g.new_tag
|
15
|
-
"
|
16
|
+
"#{g.gem_name}: https://github.com/#{g.repo_owner}/#{g.repo_name}/compare/#{g.old_tag}...#{g.new_tag}"
|
16
17
|
when g.repo_owner && g.repo_name
|
17
|
-
"
|
18
|
+
"[#{g.gem_name}](https://github.com/#{g.repo_owner}/#{g.repo_name}): #{g.old_ver} => #{g.new_ver}"
|
18
19
|
else
|
19
|
-
"
|
20
|
+
"#{g.gem_name}: (link not found) #{g.old_ver} => #{g.new_ver}"
|
20
21
|
end
|
21
22
|
|
22
23
|
if downgrade?(g.old_ver, g.new_ver, g.old_tag, g.new_tag)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: compare_linker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kensuke Nagae
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octokit
|
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
134
|
version: '0'
|
135
135
|
requirements: []
|
136
136
|
rubyforge_project:
|
137
|
-
rubygems_version: 2.4.5
|
137
|
+
rubygems_version: 2.4.5.1
|
138
138
|
signing_key:
|
139
139
|
specification_version: 4
|
140
140
|
summary: Create GitHub's compare view URLs for pull request
|