Module: Hoe::Doofus
- Defined in:
- lib/hoe/doofus.rb
Constant Summary collapse
- VERSION =
Duh.
"1.0.0"
Instance Attribute Summary collapse
-
#doofus_checklist ⇒ Object
An array of reminder questions that should be asked before a release, in the form, “Did you…
Instance Method Summary collapse
-
#define_doofus_tasks ⇒ Object
:nodoc:.
-
#initialize_doofus ⇒ Object
:nodoc:.
Instance Attribute Details
#doofus_checklist ⇒ Object
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 rake doofus
.
11 12 13 |
# File 'lib/hoe/doofus.rb', line 11 def doofus_checklist @doofus_checklist end |
Instance Method Details
#define_doofus_tasks ⇒ Object
:nodoc:
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/hoe/doofus.rb', line 24 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 |
#initialize_doofus ⇒ Object
:nodoc:
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/hoe/doofus.rb', line 13 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 |