From 333afb75b94b1193d642f1ed39b91a1cfcdfb71b Mon Sep 17 00:00:00 2001 From: alexdunae Date: Thu, 4 Mar 2010 00:07:52 -0800 Subject: [PATCH] Cleanup rake tasks --- rakefile.rb | 61 ----------------------------------------------------- 1 file changed, 61 deletions(-) diff --git a/rakefile.rb b/rakefile.rb index 27785e2..8758044 100644 --- a/rakefile.rb +++ b/rakefile.rb @@ -34,7 +34,6 @@ Rake::RDocTask.new(:rdoc) do |rdoc| rdoc.title = 'Ruby Holidays Gem' rdoc.options << '--all' << '--inline-source' << '--line-numbers' rdoc.options << '--charset' << 'utf-8' - #rdoc.template = 'extras/rdoc_template.rb' rdoc.rdoc_files.include('README.rdoc') rdoc.rdoc_files.include('data/SYNTAX') rdoc.rdoc_files.include('lib/holidays/MANIFEST') @@ -44,70 +43,10 @@ Rake::RDocTask.new(:rdoc) do |rdoc| rdoc.rdoc_files.include('lib/*.rb') end - - - -spec = Gem::Specification.new do |s| - s.name = 'holidays' - s.version = '0.9.4' - s.author = 'Alex Dunae' - s.homepage = 'http://code.dunae.ca/holidays' - s.platform = Gem::Platform::RUBY - s.description = <<-EOF - A collection of Ruby methods to deal with statutory and other holidays. You deserve a holiday! - EOF - s.summary = 'A collection of Ruby methods to deal with statutory and other holidays. You deserve a holiday!' - s.files = FileList["{lib}/**/*", "{data}/**/*", "*.rb"].to_a - s.test_files = FileList['test/defs/test*.rb'].exclude('test_helper.rb') - s.has_rdoc = true - s.extra_rdoc_files = ['README.rdoc', 'data/SYNTAX', 'lib/holidays/MANIFEST', 'REFERENCES', 'CHANGELOG', 'LICENSE'] - -end - - - - - - - -desc 'Build the gem.' -Rake::GemPackageTask.new(spec) do |pkg| - pkg.need_zip = true - pkg.need_tar = true -end - desc 'Definition file tasks' namespace :defs do DATA_PATH = 'data' - desc 'Create the gem spec' - task :create_gemspec do - File.open("holidays.gemspec","w") do |file| - file.puts <<-EOH -# Auto-generated gemspec -Gem::Specification.new do |s| - s.name = "holidays" - s.version = "0.9.4" - s.date = "2008-12-29" - s.summary = "A collection of Ruby methods to deal with statutory and other holidays. You deserve a holiday!" - s.email = "code@dunae.ca" - s.homepage = "http://code.dunae.ca/holidays" - s.description = "A collection of Ruby methods to deal with statutory and other holidays. You deserve a holiday!" - s.has_rdoc = true - s.author = "Alex Dunae" - s.extra_rdoc_files = ['README.rdoc', 'data/SYNTAX', 'lib/holidays/MANIFEST', 'REFERENCES', 'CHANGELOG', 'LICENSE'] - s.rdoc_options << '--all' << '--inline-source' << '--line-numbers' << '--charset' << 'utf-8' -EOH - - file.puts " s.test_files = ['" + Dir.glob("{test}/**/*").join("','") + "']" - file.puts " s.files = ['" + Dir.glob("{data,lib,test}/**/*").join("','") + "']" - file.puts 'end' - end - end - - - - desc 'Build holiday definition files' task :build_all do # load the index