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.
Showing
... | @@ -15,7 +15,7 @@ Gem::Specification.new do |s| | ... | @@ -15,7 +15,7 @@ Gem::Specification.new do |s| |
s.executables = ['annotate'] | s.executables = ['annotate'] | ||
s.extra_rdoc_files = ['README.md', 'CHANGELOG.md'] | s.extra_rdoc_files = ['README.md', 'CHANGELOG.md'] | ||
s.files = `git ls-files -z LICENSE.txt *.md *.gemspec bin lib`.split("\x0") | s.files = `git ls-files -z LICENSE.txt *.md *.gemspec bin lib`.split("\x0") | ||
s.homepage = 'http://github.com/ctran/annotate_models' | s.homepage = 'https://github.com/ctran/annotate_models' | ||
s.licenses = ['Ruby'] | s.licenses = ['Ruby'] | ||
s.require_paths = ['lib'] | s.require_paths = ['lib'] | ||
s.rubygems_version = '2.1.11' | s.rubygems_version = '2.1.11' | ||
... | @@ -25,5 +25,8 @@ Gem::Specification.new do |s| | ... | @@ -25,5 +25,8 @@ Gem::Specification.new do |s| |
s.add_runtime_dependency(%q<rake>, '>= 10.4', '< 14.0') | s.add_runtime_dependency(%q<rake>, '>= 10.4', '< 14.0') | ||
s.add_runtime_dependency(%q<activerecord>, ['>= 3.2', '< 7.0']) | s.add_runtime_dependency(%q<activerecord>, ['>= 3.2', '< 7.0']) | ||
s.metadata = { "github_repo" => "ssh://github.com/ctran/annotate_models" } | s.metadata = { | ||
"bug_tracker_uri" => "https://github.com/ctran/annotate_models/issues/", | |||
"source_code_uri" => "https://github.com/ctran/annotate_models.git" | |||
} | |||
end | end |
Please
register
or
sign in
to comment