Sha256: 50cd78ded5f26a2c45ffcbe09327f7ef281747a9094536548f4e9cb61679d34a

Contents?: true

Size: 736 Bytes

Versions: 3

Compression:

Stored size: 736 Bytes

Contents

require 'rake'
require 'rdoc/task'
require 'rake/testtask'
require 'rake/clean'

CLEAN.include ['*.gem', 'pkg']  

$spec = eval(File.read('dowl.gemspec'))

Rake::RDocTask.new do |rdoc|
    rdoc.rdoc_dir = 'doc/rdoc'
    rdoc.options += RDOC_OPTS
    rdoc.rdoc_files.include("README", "CHANGES", "lib/**/*.rb")
    rdoc.main = "README"    
end

Rake::TestTask.new do |test|
  test.test_files = FileList['tests/tc_*.rb']
end

task :package do
  sh %{gem build dowl.gemspec}  
end


desc "Install from a locally built copy of the gem"
task :install do
  sh %{rake package}
  sh %{sudo gem install --no-ri --no-rdoc dowl-#{$spec.version}.gem}
end

desc "Uninstall the gem"
task :uninstall => [:clean] do
  sh %{sudo gem uninstall dowl}
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dowl-0.7 Rakefile
dowl-0.6 Rakefile
dowl-0.5 Rakefile