Rakefile
changeset 20 9d59d30685cb
parent 17 23c7f5c8ee39
child 21 1ebc33d48c85
equal deleted inserted replaced
19:c09ca4007e6c 20:9d59d30685cb
    21 # parse the current library version
    21 # parse the current library version
    22 $version = ( LIBDIR + "#{PROJECT}.rb" ).read.split(/\n/).
    22 $version = ( LIBDIR + "#{PROJECT}.rb" ).read.split(/\n/).
    23 	select{|line| line =~ /VERSION =/}.first.match(/([\d|.]+)/)[1]
    23 	select{|line| line =~ /VERSION =/}.first.match(/([\d|.]+)/)[1]
    24 
    24 
    25 task :default => [ :spec, :docs, :package ]
    25 task :default => [ :spec, :docs, :package ]
       
    26 task :spec    => [ :compile ]
    26 
    27 
    27 
    28 
    28 ########################################################################
    29 ########################################################################
    29 ### P A C K A G I N G
    30 ### P A C K A G I N G
    30 ########################################################################
    31 ########################################################################
    32 require 'rubygems'
    33 require 'rubygems'
    33 require 'rubygems/package_task'
    34 require 'rubygems/package_task'
    34 spec = Gem::Specification.new do |s|
    35 spec = Gem::Specification.new do |s|
    35 	s.email        = 'mahlon@martini.nu'
    36 	s.email        = 'mahlon@martini.nu'
    36 	s.homepage     = 'https://bitbucket.org/mahlon/Ruby-Ezmlm'
    37 	s.homepage     = 'https://bitbucket.org/mahlon/Ruby-Ezmlm'
    37 	s.authors      = [
    38 	s.authors      = [ 'Mahlon E. Smith', 'Michael Granger', 'Jeremiah Jordan' ]
    38 		'Mahlon E. Smith <mahlon@martini.nu>',
       
    39 		'Michael Granger <ged@faeriemud.org>',
       
    40 		'Jeremiah Jordan <jeremiah.m.jordan@gmail.com>'
       
    41 	]
       
    42 	s.platform     = Gem::Platform::RUBY
    39 	s.platform     = Gem::Platform::RUBY
    43 	s.summary      = "Interact with Ezmlm-IDX mailing lists."
    40 	s.summary      = "Interact with Ezmlm-IDX mailing lists."
    44 	s.name         = PROJECT
    41 	s.name         = PROJECT
    45 	s.version      = $version
    42 	s.version      = $version
    46 	s.license      = 'BSD-3-Clause'
    43 	s.license      = 'BSD-3-Clause'
    82 	RDoc::Task.new do |rdoc|
    79 	RDoc::Task.new do |rdoc|
    83 		rdoc.name       = :docs
    80 		rdoc.name       = :docs
    84 		rdoc.rdoc_dir   = 'docs'
    81 		rdoc.rdoc_dir   = 'docs'
    85 		rdoc.main       = "README.rdoc"
    82 		rdoc.main       = "README.rdoc"
    86 		# rdoc.options    = [ '-f', 'fivefish' ]
    83 		# rdoc.options    = [ '-f', 'fivefish' ]
    87 		rdoc.rdoc_files = [ 'lib', *FileList['ext/*/*.c'], *FileList['*.rdoc'] ]
    84 		rdoc.rdoc_files = [ 'lib', *FileList['ext/**.c'], *FileList['*.rdoc'], *FileList['*.md'] ]
    88 	end
    85 	end
    89 
    86 
    90 	RDoc::Task.new do |rdoc|
    87 	RDoc::Task.new do |rdoc|
    91 		rdoc.name       = :doc_coverage
    88 		rdoc.name       = :doc_coverage
    92 		rdoc.options    = [ '-C1' ]
    89 		rdoc.options    = [ '-C1' ]