Skip to content

Commit 65dc39f

Browse files
authored
gemspec: Add metadata URIs (#798)
Allow people easier access the source code, raise issues and read the changelog, by adding [project metadata](https://guides.rubygems.org/specification-reference/#metadata) to the gemspec file. These links will appear on the RubyGems page at https://rubygems.org/gems/annotate and be available via the RubyGems API – after the next release. Also: used https in URLs.
1 parent 8666d89 commit 65dc39f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

annotate.gemspec

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
1515
s.executables = ['annotate']
1616
s.extra_rdoc_files = ['README.md', 'CHANGELOG.md']
1717
s.files = `git ls-files -z LICENSE.txt *.md *.gemspec bin lib`.split("\x0")
18-
s.homepage = 'http://github.com/ctran/annotate_models'
18+
s.homepage = 'https://github.com/ctran/annotate_models'
1919
s.licenses = ['Ruby']
2020
s.require_paths = ['lib']
2121
s.rubygems_version = '2.1.11'
@@ -25,5 +25,8 @@ Gem::Specification.new do |s|
2525
s.add_runtime_dependency(%q<rake>, '>= 10.4', '< 14.0')
2626
s.add_runtime_dependency(%q<activerecord>, ['>= 3.2', '< 7.0'])
2727

28-
s.metadata = { "github_repo" => "ssh://github.com/ctran/annotate_models" }
28+
s.metadata = {
29+
"bug_tracker_uri" => "https://github.com/ctran/annotate_models/issues/",
30+
"source_code_uri" => "https://github.com/ctran/annotate_models.git"
31+
}
2932
end

0 commit comments

Comments
 (0)