Gem development: recommended gem metadata

Updated . Posted . Visible to the public. Repeats.

The $gemname.gemspec file adds metadata to your Gem. You can provide links to your Github bugtracker or changelog file that are then displayed on the Rubygems page for your Gem ( example Show archive.org snapshot ).

Here are some values you can fill:

Gem::Specification.new do |s|
  s.name = 'my-gem'
  s.homepage = 'https://github.com/makandra/my-gem'

  s.metadata = {
    'source_code_uri' => s.homepage,
    'bug_tracker_uri' => s.homepage + '/issues',
    'changelog_uri' => s.homepage + '/blob/master/CHANGELOG.md',
    'rubygems_mfa_required' => 'true',
  }
  ...
end
Profile picture of Daniel Straßner
Daniel Straßner
Last edit
Dominik Schöler
License
Source code in this card is licensed under the MIT License.
Posted by Daniel Straßner to makandra dev (2022-03-16 10:35)