Skip to content

Commit c5d1dd4

Browse files
committed
Add project metadata to the gemspec
As per https://guides.rubygems.org/specification-reference/#metadata, add metadata to the gemspec file. This'll allow people to more easily access the source code, raise issues and read the changelog. These `bug_tracker_uri`, `changelog_uri`, `documentation_uri` and `source_code_uri` links will appear on the rubygems page at https://rubygems.org/gems/actionpack-action_caching and be available via the rubygems API after the next release.
1 parent 6bce590 commit c5d1dd4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

actionpack-action_caching.gemspec

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ Gem::Specification.new do |gem|
77
gem.summary = "Action caching for Action Pack (removed from core in Rails 4.0)"
88
gem.homepage = "https://github.com/rails/actionpack-action_caching"
99

10+
gem.metadata = {
11+
"bug_tracker_uri" => "https://github.com/rails/actionpack-action_caching/issues",
12+
"changelog_uri" => "https://github.com/rails/actionpack-action_caching/blob/v#{gem.version}/CHANGELOG.md",
13+
"documentation_uri" => "https://www.rubydoc.info/gems/actionpack-action_caching/#{gem.version}",
14+
"source_code_uri" => "https://github.com/rails/actionpack-action_caching/tree/v#{gem.version}",
15+
}
16+
1017
gem.required_ruby_version = ">= 1.9.3"
1118
gem.files = `git ls-files`.split($/)
1219
gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }

0 commit comments

Comments
 (0)