Sha256: 7f1f447de2f403852b7183d2d09b3344d786a3bc1a5534aec1a2155ff24b50ba

Contents?: true

Size: 798 Bytes

Versions: 1

Compression:

Stored size: 798 Bytes

Contents

#!/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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
geocerts-1.0.1 Rakefile