Sha256: 6d5b48650380bef39596bde4f882c506889f55bc563db297ff850310a8995d7b

Contents?: true

Size: 1.89 KB

Versions: 1

Compression:

Stored size: 1.89 KB

Contents

# Look in the tasks/setup.rb file for the various options that can be
# configured in this Rakefile. The .rake files in the tasks directory
# are where the options are used.

begin
  require 'bones'
  Bones.setup
rescue LoadError
  begin
    load 'tasks/setup.rb'
  rescue LoadError
    raise RuntimeError, '### please install the "bones" gem ###'
  end
end

ensure_in_path 'lib'
require 'synfeld_info'

task :default => 'spec:run'

PROJ.name = 'synfeld'
PROJ.authors = 'Steven Swerling'
PROJ.email = 'sswerling@yahoo.com'
PROJ.url = 'http://tab-a.slot-z.net'
PROJ.version = Synfeld::VERSION
PROJ.rubyforge.name = 'synfeld'
PROJ.gem.dependencies = ['rack', 'rack-router']
PROJ.rdoc.opts = ["--inline-source"]
PROJ.rdoc.exclude = ["^tasks/setup\.rb$", "lib/synfeld_info.rb"]

PROJ.spec.opts << '--color'



require 'fileutils'
def this_dir; File.join(File.dirname(__FILE__)); end
def doc_dir; File.join(this_dir, 'rdoc'); end
def tab_a_doc_dir; File.join(this_dir, '../tab-a/public/synfeld/rdoc'); end

task :default => 'spec:run'
task :myclobber => [:clobber] do
  mydir = File.join(File.dirname(__FILE__))
  sh "rm -rf #{File.join(mydir, 'pkg')}"
  sh "rm -rf #{File.join(mydir, 'doc')}"
  sh "rm -rf #{File.join(mydir, 'rdoc')}"
  sh "rm -rf #{File.join(mydir, 'ext/*.log')}"
  sh "rm -rf #{File.join(mydir, 'ext/*.o')}"
  sh "rm -rf #{File.join(mydir, 'ext/*.so')}"
  sh "rm -rf #{File.join(mydir, 'ext/Makefile')}"
  sh "rm -rf #{File.join(mydir, 'ext/Makefile')}"
end
task :mypackage => [:myclobber] do
  Rake::Task['gem:package'].invoke
end
task :mydoc => [:myclobber] do
  FileUtils.rm_f doc_dir()
  sh "cd #{this_dir()} && rdoc -o rdoc --inline-source --format=html -T hanna README.rdoc lib/**/*.rb" 
end
task :taba => [:mydoc] do
  this_dir = File.join(File.dirname(__FILE__))
  FileUtils.rm_rf tab_a_doc_dir
  FileUtils.cp_r doc_dir, tab_a_doc_dir
end
task :mygemspec => [:myclobber] do
  Rake::Task['gem:spec'].invoke
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
swerling-synfeld-0.0.2 Rakefile