platform=

platform=(platform) Instance Public methods The platform this gem runs on. This is usually Gem::Platform::RUBY or Gem::Platform::CURRENT. Most gems contain pure Ruby code; they should simply leave the default value in place. Some gems contain C (or other) code to be compiled into a Ruby âextensionâ. The should leave the default value in place unless their code will only compile on a certain type of system. Some gems consist of pre-compiled code (âbinary gemsâ). It's especially

files

files() Instance Public methods Files included in this gem. You cannot append to this accessor, you must assign to it. Only add files you can require to this list, not directories, etc. Directories are automatically stripped from this list when building a gem, other non-files cause an error. Usage: require 'rake' spec.files = FileList['lib .rb', 'bin/*', '[A-Z]*', 'test/ *'].to_a # or without Rake... spec.fil

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']

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'

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'

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'

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']

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'

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']

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.