summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Davis <ryand@zenspider.com>2009-08-27 13:42:47 -0800
committerRyan Davis <ryand@zenspider.com>2009-08-27 13:42:47 -0800
commit0a83b4f3e64e97a3c295c570f96a0f681799656e (patch)
tree90520eb0a2307ed2b809fcc5679f16ceaa43d788
parent237aca66e62c9481cf3843a91036f045418570db (diff)
downloadhoe-0a83b4f3e64e97a3c295c570f96a0f681799656e.tar.gz
+ Added newb plugin. (jbarnette)
[git-p4: depot-paths = "//src/hoe/dev/": change = 5434]
-rw-r--r--README.txt1
-rw-r--r--lib/hoe.rb4
-rw-r--r--lib/hoe/newb.rb20
-rw-r--r--template/README.txt.erb9
4 files changed, 32 insertions, 2 deletions
diff --git a/README.txt b/README.txt
index b82a975..bebe174 100644
--- a/README.txt
+++ b/README.txt
@@ -32,6 +32,7 @@ below.
* Hoe::Flay
* Hoe::Flog
* Hoe::Inline
+* Hoe::Newb
* Hoe::Package
* Hoe::Publish
* Hoe::RCov
diff --git a/lib/hoe.rb b/lib/hoe.rb
index 291c7bd..6a76383 100644
--- a/lib/hoe.rb
+++ b/lib/hoe.rb
@@ -60,8 +60,8 @@ class Hoe
# duh
VERSION = '2.3.3'
- @@plugins = [:clean, :debug, :deps, :flay, :flog, :package, :publish,
- :rcov, :rubyforge, :signing, :test]
+ @@plugins = [:clean, :debug, :deps, :flay, :flog, :newb, :package,
+ :publish, :rcov, :rubyforge, :signing, :test]
##
# Used to add extra flags to RUBY_FLAGS.
diff --git a/lib/hoe/newb.rb b/lib/hoe/newb.rb
new file mode 100644
index 0000000..7c574ab
--- /dev/null
+++ b/lib/hoe/newb.rb
@@ -0,0 +1,20 @@
+##
+# Newb plugin for hoe.
+#
+# === Tasks Provided:
+#
+# newb:: Get a new developer up to speed.
+
+module Hoe::Newb
+ def define_newb_tasks
+ desc "Install deps, generate docs, run tests/specs."
+ task :newb => %w(check_extra_deps docs default) do
+ puts <<-END
+
+ GOOD TO GO! Tests are passing, docs are generated,
+ dependencies are installed. Get to hacking.
+
+ END
+ end
+ end
+end
diff --git a/template/README.txt.erb b/template/README.txt.erb
index 531df89..890f174 100644
--- a/template/README.txt.erb
+++ b/template/README.txt.erb
@@ -22,6 +22,15 @@
* <%= XIF %> (sudo gem install, anything else)
+== DEVELOPERS:
+
+After checking out the source, run:
+
+ $ rake newb
+
+This task will install any missing dependencies, run the tests/specs,
+and generate the RDoc.
+
== LICENSE:
(The MIT License)