diff options
| -rw-r--r-- | Rakefile | 7 | ||||
| -rw-r--r-- | hcl.gemspec | 4 |
2 files changed, 8 insertions, 3 deletions
@@ -10,8 +10,13 @@ Rake::TestTask.new do |t| end task :default => :test +require 'ronn' task :man do - system 'ronn -r man/hcl.1.ronn' + print "Writing manual page..." + File.open('man/hcl.1','w').tap do |man| + man.write Ronn::Document.new('man/hcl.1.ronn').to_roff + end + puts "done." end task 'build:gem' => [:man] diff --git a/hcl.gemspec b/hcl.gemspec index d70ff4e..ab61793 100644 --- a/hcl.gemspec +++ b/hcl.gemspec @@ -9,8 +9,8 @@ Gem::Specification.new do |s| s.email = "zack@zackhobson.com" s.description = "HCl is a command-line client for manipulating Harvest time sheets." s.executables = ["hcl"] - s.files = %w[LICENSE Rakefile Gemfile] + Dir['*.markdown'] + - Dir['bin/*'] + Dir['lib/**/*.rb'] + Dir['test/**/*.rb'] + Dir['man/hcl.1'] + s.files = %w[LICENSE Rakefile Gemfile bin/hcl man/hcl.1] + Dir['*.markdown'] + + Dir['lib/**/*.rb'] + Dir['test/**/*.rb'] s.homepage = "http://zackhobson.com/hcl/" s.licenses = ["MIT"] s.summary = "Harvest timesheets from the command-line" |
