Sha256: 4f0384723fd5a19e5894d26910501e657ea560583d375b87c8d16a2107b54f55

Contents?: true

Size: 1.18 KB

Versions: 1

Compression:

Stored size: 1.18 KB

Contents

require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'

begin
  require 'rubygems'
  gem 'echoe', '=1.3'
  ENV['RUBY_FLAGS'] = ""
  require 'echoe'

  Echoe.new('ambition', '0.1.3') do |p|
    p.rubyforge_name = 'err'
    p.summary = "Ambition builds SQL from plain jane Ruby."
    p.description = "Ambition builds SQL from plain jane Ruby."
    p.url = "http://errtheblog.com/"
    p.author = 'Chris Wanstrath'
    p.email = "chris@ozmm.org"
    p.extra_deps << ['ParseTree',    '=2.0.1']
    p.extra_deps << ['activerecord', '>=1.15.0']
    p.test_globs = 'test/*_test.rb'
  end

rescue LoadError 
end

desc 'Default: run unit tests.'
task :default => :test

desc 'Generate RDoc documentation'
Rake::RDocTask.new(:rdoc) do |rdoc|
  files = ['README', 'LICENSE', 'lib/**/*.rb']
  rdoc.rdoc_files.add(files)
  rdoc.main = "README" # page to start on
  rdoc.title = "ambition"
  rdoc.template = File.exists?(t="/Users/chris/ruby/projects/err/rock/template.rb") ? t : "/var/www/rock/template.rb"
  rdoc.rdoc_dir = 'doc' # rdoc output folder
  rdoc.options << '--inline-source'
end

desc 'Generate coverage reports'
task :rcov do
  `rcov -e gems test/*_test.rb`
  puts 'Generated coverage reports.'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ambition-0.1.3 ./Rakefile