summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Herold <opensource@michaeljherold.com>2019-11-16 20:18:15 -0600
committerMichael Herold <opensource@michaeljherold.com>2019-11-17 11:47:40 -0600
commit3692cddcd9c1a713a773b1ccc19b419e366b4dd2 (patch)
tree3584686867022227584ba6daaee083091db54305
parent2846ea63a90a594ed67e3eb8ba7c5fd125909089 (diff)
downloadhashie-3692cddcd9c1a713a773b1ccc19b419e366b4dd2.tar.gz
Adjust URL in gemspec and add metadata URLs
RubyGems.org has recently added the capability to have extra metadata URLs shown on the gem page. These are handy for people who are new to a gem or need to report an issue.
-rw-r--r--hashie.gemspec9
1 files changed, 9 insertions, 0 deletions
diff --git a/hashie.gemspec b/hashie.gemspec
index 250ecf2..507f388 100644
--- a/hashie.gemspec
+++ b/hashie.gemspec
@@ -17,6 +17,15 @@ Gem::Specification.new do |gem|
gem.files += Dir['spec/**/*.rb']
gem.test_files = Dir['spec/**/*.rb']
+ if gem.respond_to?(:metadata)
+ gem.metadata = {
+ 'bug_tracker_uri' => 'https://github.com/hashie/hashie/issues',
+ 'changelog_uri' => 'https://github.com/hashie/hashie/blob/master/CHANGELOG.md',
+ 'documentation_uri' => 'https://www.rubydoc.info/gems/hashie',
+ 'source_code_uri' => 'https://github.com/hashie/hashie'
+ }
+ end
+
gem.add_development_dependency 'rake', '< 11'
gem.add_development_dependency 'rspec', '~> 3.0'
gem.add_development_dependency 'rspec-pending_for', '~> 0.1'