#!/usr/bin/env rake require 'bundler/gem_tasks' require 'rake/testtask' begin require 'rdoc/task' rescue LoadError require 'rake/rdoctask' end task :default => :test Rake::TestTask.new(:test) do |test| test.libs << 'lib' << 'test' test.pattern = 'test/**/*_test.rb' test.verbose = true end Rake::RDocTask.new do |rdoc| if File.exist?('VERSION.yml') config = YAML.load(File.read('VERSION.yml')) version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}" elsif File.exist?('VERSION') version = File.read('VERSION') else version = "" end rdoc.rdoc_dir = 'rdoc' rdoc.title = "geocerts #{version}" rdoc.main = "README.rdoc" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('LICENSE*') rdoc.rdoc_files.include('lib/**/*.rb') end