Skip to content
Snippets Groups Projects
Rakefile 587 B
Newer Older
  • Learn to ignore specific revisions
  • require 'bundler'
    Bundler::GemHelper.install_tasks
    
    Alex Reisner's avatar
    Alex Reisner committed
    require 'rake/testtask'
    
    Rake::TestTask.new(:test) do |test|
      test.libs << 'lib' << 'test'
    
      test.pattern = 'test/unit/**/*_test.rb'
    
      test.verbose = true
    end
    
    
    Rake::TestTask.new(:integration) do |test|
      test.libs << 'lib' << 'test'
      test.pattern = 'test/integration/*_test.rb'
      test.verbose = true
    end
    
    
    task :default => [:test]
    
    Alex Reisner's avatar
    Alex Reisner committed
    
    
    require 'rdoc/task'
    
    Rake::RDocTask.new do |rdoc|
    
    Alex Reisner's avatar
    Alex Reisner committed
      rdoc.rdoc_dir = 'rdoc'
    
      rdoc.title = "Geocoder #{Geocoder::VERSION}"
    
      rdoc.rdoc_files.include('*.rdoc')
    
    Alex Reisner's avatar
    Alex Reisner committed
      rdoc.rdoc_files.include('lib/**/*.rb')
    end