diff options
| author | Zack Hobson | 2014-02-04 09:51:59 -0800 | 
|---|---|---|
| committer | Zack Hobson | 2014-02-04 09:54:41 -0800 | 
| commit | f02913985f2ab89356b68f697c371e136a110132 (patch) | |
| tree | 81300efc24b17b13a3761664be442c545d032ac8 | |
| parent | 855e636b96740de63e70f870113ed8fb785eb0c1 (diff) | |
| download | hcl-f02913985f2ab89356b68f697c371e136a110132.tar.bz2 | |
Rakefile: simplify man task dependencies
| -rw-r--r-- | Rakefile | 13 | 
1 files changed, 5 insertions, 8 deletions
| @@ -1,3 +1,6 @@ +require 'rubygems/tasks' +Gem::Tasks.new +  require 'fileutils'  task :clean do    FileUtils.rm_rf %w[ pkg coverage doc man/hcl.1 ] @@ -14,8 +17,7 @@ task :default => :test  require 'ronn'  task :man do    print "Writing manual page..." -  readme = File.read('README.markdown') -  head, content = readme.split("## SYNOPSIS\n") +  head, content = File.read('README.markdown').split("## SYNOPSIS\n")    content.prepend <<-END  hcl(1) -- Track time with Harvest time sheets  ============================================= @@ -29,14 +31,9 @@ hcl(1) -- Track time with Harvest time sheets    end    puts "done."  end -task 'build:gem' => [:man] -task 'install' => [:man] -task 'release' => [:man] +task "pkg/hcl-#{HCl::VERSION}.gem" => :man  require 'yard'  YARD::Rake::YardocTask.new  task :doc => [:yard, :man] -require 'rubygems/tasks' -Gem::Tasks.new - | 
