Sha256: d767b3faa231f2a06087a17638e8d90e2000a0ff39c2f483c7c41363ac0b4eaa
Contents?: true
Size: 1.2 KB
Versions: 2
Compression:
Stored size: 1.2 KB
Contents
# -*- ruby -*- require 'rubygems' require 'hoe' $:.unshift "lib" require 'trollop' class Hoe def extra_deps; @extra_deps.reject { |x| Array(x).first == "hoe" } end end # thanks to "Mike H" Hoe.new('trollop', Trollop::VERSION) do |p| p.rubyforge_name = 'trollop' p.author = "William Morgan" p.summary = "Trollop is a commandline option parser for Ruby that just gets out of your way. One line of code per option is all you need to write. For that, you get a nice automatically-generated help page, robust option parsing, command subcompletion, and sensible defaults for everything you don't specify." p.description = p.paragraphs_of('README.txt', 4..5, 9..18).join("\n\n").gsub(/== SYNOPSIS/, "Synopsis") p.url = "http://trollop.rubyforge.org" p.changes = p.paragraphs_of('History.txt', 0..0).join("\n\n") p.email = "wmorgan-trollop@masanjin.net" end WWW_FILES = FileList["www/*"] + %w(README.txt FAQ.txt) task :upload_webpage => WWW_FILES do |t| sh "rsync -Paz -essh #{t.prerequisites * ' '} wmorgan@rubyforge.org:/var/www/gforge-projects/trollop/" end task :upload_docs => [:docs] do |t| sh "rsync -Paz -essh doc/* wmorgan@rubyforge.org:/var/www/gforge-projects/trollop/trollop/" end # vim: syntax=ruby
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
trollop-1.10 | Rakefile |
trollop-1.9 | Rakefile |