Method: Gem::Specification#metadata

Defined in:
lib/rubygems/specification.rb

#metadataObject

:attr_accessor: metadata

The metadata holds extra data for this gem that may be useful to other consumers and is settable by gem authors without requiring an update to the rubygems software.

Metadata items have the following restrictions:

  • The metadata must be a Hash object

  • All keys and values must be Strings

  • Keys can be a maximum of 128 bytes and values can be a maximum of 1024 bytes

  • All strings must be UTF-8, no binary data is allowed

To add metadata for the location of a issue tracker:

s. = { "issue_tracker" => "https://example/issues" }


460
461
462
# File 'lib/rubygems/specification.rb', line 460

def 
  
end