Sha256: 738727a89e314fd684b6f01e69c2ac9ca5e0a730b12bc3ef6315ccb7ef016a61

Contents?: true

Size: 559 Bytes

Versions: 1

Compression:

Stored size: 559 Bytes

Contents

# -*- ruby -*-

require 'rubygems'

require 'spec'
require 'spec/rake/spectask'
require 'pathname'
require 'yard'

desc "Run specs"
Spec::Rake::SpecTask.new('spec')

task :clean do
  sh "rm -r pkg"
end

desc 'Package as a gem.'
task :package do
  sh "gem build rack_datamapper.gemspec" 
  sh "mkdir -p pkg"
  sh "mv rack-datamapper-*.gem pkg"
end

desc 'Install the package as a gem.'
task :install => [:clean, :package] do
  gem = Dir['pkg/*.gem'].first
  sh "gem install --local #{gem} --no-ri --no-rdoc"
end

YARD::Rake::YardocTask.new

# vim: syntax=Ruby

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rack-datamapper-0.3.2 Rakefile