require 'rubygems' require 'rake/rdoctask' require 'rake/testtask' require 'spec/rake/spectask' %w[rubygems rake rake/clean fileutils newgem rubigen].each { |f| require f } require File.dirname(__FILE__) + '/lib/yore.orig' # built following http://newgem.rubyforge.org/ # using RSpec option # and had to add processor_ids from dr nic : # http://groups.google.com/group/new-gem-generator/browse_thread/thread/648f70da782e607a/928ea0fe8319d886?lnk=raot # Generate all the Rake tasks # Run 'rake -T' to see list of generated tasks (from gem root directory) $hoe = Hoe.new('yore', Yore::VERSION) do |p| p.developer('Gary McGhee', 'contact@buzz@ware@com@au') p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n") #p.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required p.rubyforge_name = 'buzzware' #p.name # TODO this is default value p.extra_deps = [ ['RequirePaths','>= 1.0.1'], ['cmdparse', '>= 2.0.2'], ['s3sync', '>= 1.2.5'] ] p.extra_dev_deps = [ ['newgem', ">= #{::Newgem::VERSION}"] ] p.clean_globs |= %w[**/.DS_Store tmp *.log] path = (p.rubyforge_name == p.name) ? p.rubyforge_name : "\#{p.rubyforge_name}/\#{p.name}" p.remote_rdoc_dir = File.join(path.gsub(/^#{p.rubyforge_name}\/?/,''), 'rdoc') p.rsync_args = '-av --delete --ignore-errors' end require 'newgem/tasks' # load /tasks/*.rake Dir['tasks/**/*.rake'].each { |t| load t } # TODO - want other tests/tasks run by default? Add them to the list # task :default => [:spec, :features] # this was generated by netbeans # Rake::RDocTask.new do |rdoc| # files =['README', 'LICENSE', 'lib/**/*.rb'] # rdoc.rdoc_files.add(files) # rdoc.main = "README" # page to start on # rdoc.title = "yore Docs" # rdoc.rdoc_dir = 'doc/rdoc' # rdoc output folder # rdoc.options << '--line-numbers' # end # # Rake::TestTask.new do |t| # t.test_files = FileList['test/**/*.rb'] # end Spec::Rake::SpecTask.new do |t| t.spec_files = FileList['spec/**/*.rb'] end