The gemspec file defines a Gem::Specification object.
A gem consists of two things:
- some code
- a gemspec file
The gemspec file defines a Gem::Specification object. It contains the required information for a gem. Starting in RubyGems 2.0, a Specification can hold arbitrary metadata.
REQUIRED GEMSPEC ATTRIBUTES
- author=
- authors=
- files
- name
- platform=
- require_paths=
- rubygems_version
- summary
- version
Apart from the list, there are some more attributes that can be included in the gemspec file. These attributes are optional. Some of them are license=, description etc.