Skip to content
Browse files

First.

  • Loading branch information...
0 parents commit d6c6fd22f6e6ffdb86b875e69c03e737271d85ad @jbarnette committed Jul 2, 2009
Showing with 113 additions and 0 deletions.
  1. +5 −0 .autotest
  2. +2 −0 .gitignore
  3. +6 −0 CHANGELOG.rdoc
  4. +6 −0 Manifest.txt
  5. +38 −0 README.rdoc
  6. +14 −0 Rakefile
  7. +42 −0 lib/hoe/doofus.rb
5 .autotest
@@ -0,0 +1,5 @@
+require "autotest/restart"
+
+Autotest.add_hook :initialize do |at|
+ at.testlib = "minitest/autorun"
+end
2 .gitignore
@@ -0,0 +1,2 @@
+doc
+pkg
6 CHANGELOG.rdoc
@@ -0,0 +1,6 @@
+=== 1.0.0 / 2009-07-02
+
+* 1 major enhancement
+
+ * Birthday!
+
6 Manifest.txt
@@ -0,0 +1,6 @@
+.autotest
+CHANGELOG.rdoc
+Manifest.txt
+README.rdoc
+Rakefile
+lib/hoe/doofus.rb
38 README.rdoc
@@ -0,0 +1,38 @@
+= hoe_doofus
+
+* http://github.com/jbarnette/hoe_doofus
+
+== Description
+
+FIX (describe your package)
+
+== Examples
+
+ FIX (code sample of usage)
+
+== Installation
+
+ $ gem install hoe_doofus
+
+== License
+
+Copyright 2009 John Barnette (jbarnette@rubyforge.org)
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
14 Rakefile
@@ -0,0 +1,14 @@
+$:<< "lib"
+
+require "rubygems"
+require "hoe"
+
+Hoe.plugin :doofus, :git
+
+Hoe.spec "hoe-doofus" do
+ developer "John Barnette", "jbarnette@rubyforge.org"
+
+ self.extra_rdoc_files = FileList["*.rdoc"]
+ self.history_file = "CHANGELOG.rdoc"
+ self.readme_file = "README.rdoc"
+end
42 lib/hoe/doofus.rb
@@ -0,0 +1,42 @@
+module Hoe::Doofus
+ 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

0 comments on commit d6c6fd2

Please sign in to comment.
Something went wrong with that request. Please try again.