authors=

authors=(value) Instance Public methods Sets the list of authors, ensuring it is an array. Usage: spec.authors = ['John Jones', 'Mary Smith']

executables

executables() Instance Public methods Executables included in the gem. For example, the rake gem has rake as an executable. You donât specify the full path (as in bin/rake); all application-style files are expected to be found in bindir. These files must be executable ruby files. Files that use bash or other interpreters will not work. Usage: spec.executables << 'rake'

extensions

extensions() Instance Public methods Extensions to build when installing the gem, specifically the paths to extconf.rb-style files used to compile extensions. These files will be run when the gem is installed, causing the C (or whatever) code to be compiled on the userâs machine. Usage: spec.extensions << 'ext/rmagic/extconf.rb' See Gem::Ext::Builder for information about writing extensions for gems.

extra_rdoc_files

extra_rdoc_files() Instance Public methods Extra files to add to RDoc such as README or doc/examples.txt When the user elects to generate the RDoc documentation for a gem (typically at install time), all the library files are sent to RDoc for processing. This option allows you to have some non-code files included for a more complete set of documentation. Usage: spec.extra_rdoc_files = ['README', 'doc/user-guide.txt']

license=

license=(o) Instance Public methods The license for this gem. The license must be a short name, no more than 64 characters. This should just be the name of your license. The full text of the license should be inside of the gem when you build it. You can set multiple licenses with licenses= Usage: spec.license = 'MIT'

licenses=

licenses=(licenses) Instance Public methods The license(s) for the library. Each license must be a short name, no more than 64 characters. This should just be the name of your license. The full text of the license should be inside of the gem when you build it. Usage: spec.licenses = ['MIT', 'GPL-2']

rdoc_options

rdoc_options() Instance Public methods Specifies the rdoc options to be used when generating API documentation. Usage: spec.rdoc_options << '--title' << 'Rake -- Ruby Make' << '--main' << 'README' << '--line-numbers'

required_ruby_version=

required_ruby_version=(req) Instance Public methods The version of Ruby required by this gem. The ruby version can be specified to the patch-level: $ ruby -v -e 'p Gem.ruby_version' ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.4.0] #<Gem::Version "2.0.0.247"> Usage: # This gem will work with 1.8.6 or greater... spec.required_ruby_version = '>= 1.8.6' # Only with ruby 2.0.x spec.required_ruby_version = '~> 2.0'

requirements

requirements() Instance Public methods Lists the external (to RubyGems) requirements that must be met for this gem to work. It's simply information for the user. Usage: spec.requirements << 'libmagick, v6.0' spec.requirements << 'A good graphics card'

test_files=

test_files=(files) Instance Public methods A collection of unit test files. They will be loaded as unit tests when the user requests a gem to be unit tested. Usage: spec.test_files = Dir.glob('test/tc_*.rb') spec.test_files = ['tests/test-suite.rb']