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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90f43ed402d11d09d9d94d0a046660c1c115a28d
4
- data.tar.gz: fa5c9e2034928df030239b568d88c7079a71499a
3
+ metadata.gz: 061a65f1395cc27c55e4cdcb32e24466548b83ad
4
+ data.tar.gz: a3952ac958f607203a2c025a9c4bfe8ca8a68678
5
5
  SHA512:
6
- metadata.gz: 86856071e1a424bf2a9ab05b071135687cbbb3d62ce8a4f5e32a528d9eb2dfc6aa6f855d06cf3902f5324880845340216f7ecc94f60edf3c4cb3bdc2b9681a6d
7
- data.tar.gz: b71d72f3bb2fc96cebb85adb029a76db14aef4a48b07572212e58be6ef5141940fc992896ebd8195699c0391db841754633bc717235d552a21faebba9aa10dc6
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 = case
9
+ text = "* [ ] "
10
+ text += case
10
11
  when g.owner && g.old_rev && g.new_rev
11
- "* #{g.gem_name}: https://github.com/#{g.owner}/#{g.gem_name}/compare/#{g.old_rev}...#{g.new_rev}"
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
- "* [#{g.gem_name}](#{g.homepage_uri}): #{g.old_ver} => #{g.new_ver}"
14
+ "[#{g.gem_name}](#{g.homepage_uri}): #{g.old_ver} => #{g.new_ver}"
14
15
  when g.old_tag && g.new_tag
15
- "* #{g.gem_name}: https://github.com/#{g.repo_owner}/#{g.repo_name}/compare/#{g.old_tag}...#{g.new_tag}"
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
- "* [#{g.gem_name}](https://github.com/#{g.repo_owner}/#{g.repo_name}): #{g.old_ver} => #{g.new_ver}"
18
+ "[#{g.gem_name}](https://github.com/#{g.repo_owner}/#{g.repo_name}): #{g.old_ver} => #{g.new_ver}"
18
19
  else
19
- "* #{g.gem_name}: (link not found) #{g.old_ver} => #{g.new_ver}"
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)
@@ -1,3 +1,3 @@
1
1
  class CompareLinker
2
- VERSION = "1.1.9"
2
+ VERSION = "1.2.0"
3
3
  end
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.1.9
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-06-07 00:00:00.000000000 Z
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