Sha256: 64ec991857567d5020db29d0869410e97e7834561665476daf24b8c68b5f28e3
Contents?: true
Size: 1.16 KB
Versions: 1
Compression:
Stored size: 1.16 KB
Contents
class Hoe #:nodoc: module Doofus # Duh. VERSION = "1.0.0" # An array of reminder questions that should be asked before a # release, in the form, "Did you... [question]?" You can see the # defaults by running <tt>rake doofus</tt>. attr_accessor :doofus_checklist def initialize_doofus #:nodoc: self.doofus_checklist = [] doofus_checklist << "bump the version" << "check everything in" << "review the manifest" << "update the README and RDocs" << "update the changelog" end def define_doofus_tasks #:nodoc: desc "Show a reminder for the steps I always forget." task :doofus do puts "\n### HEY! Doofus! Did you...\n\n" doofus_checklist.each do |question| question[0..0] = question[0..0].upcase question << "?" unless question[-2..-1] == "?" puts " * #{question}" end puts end task :release_sanity do Rake::Task[:doofus].invoke puts "Hit return if you're sure, Ctrl-C if you forgot something." $stdin.gets end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hoe-doofus-1.0.0 | lib/hoe/doofus.rb |