summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Davis <ryand@zenspider.com>2009-02-18 02:26:03 -0800
committerRyan Davis <ryand@zenspider.com>2009-02-18 02:26:03 -0800
commit0d7810f32d3c09fd6b3635859b568680867898f6 (patch)
tree7c18f596d8fd8d9bb98c712d6e2e15d126a17a7a
parent3abee1af3113b05d57f78e722d2da9702cb765fa (diff)
downloadhoe-0d7810f32d3c09fd6b3635859b568680867898f6.tar.gz
Added sow template
[git-p4: depot-paths = "//src/hoe/dev/": change = 4598]
-rw-r--r--template/.autotest23
-rw-r--r--template/History.txt6
-rw-r--r--template/Manifest.txt7
-rw-r--r--template/README.txt48
-rw-r--r--template/Rakefile12
-rwxr-xr-xtemplate/bin/file_name3
-rw-r--r--template/lib/file_name.rb3
-rw-r--r--template/test/test_file_name.rb8
8 files changed, 110 insertions, 0 deletions
diff --git a/template/.autotest b/template/.autotest
new file mode 100644
index 0000000..ef753ad
--- /dev/null
+++ b/template/.autotest
@@ -0,0 +1,23 @@
+# -*- ruby -*-
+
+require 'autotest/restart'
+
+# Autotest.add_hook :initialize do |at|
+# at.extra_files << "../some/external/dependency.rb"
+#
+# at.libs << ":../some/external"
+#
+# at.add_exception 'vendor'
+#
+# at.add_mapping(/dependency.rb/) do |f, _|
+# at.files_matching(/test_.*rb$/)
+# end
+#
+# %w(TestA TestB).each do |klass|
+# at.extra_class_map[klass] = "test/test_misc.rb"
+# end
+# end
+
+# Autotest.add_hook :run_command do |at|
+# system "rake build"
+# end
diff --git a/template/History.txt b/template/History.txt
new file mode 100644
index 0000000..d90f052
--- /dev/null
+++ b/template/History.txt
@@ -0,0 +1,6 @@
+=== 1.0.0 / <%= Time.new.strftime("%Y-%m-%d") %>
+
+* 1 major enhancement
+
+ * Birthday!
+
diff --git a/template/Manifest.txt b/template/Manifest.txt
new file mode 100644
index 0000000..a6f8832
--- /dev/null
+++ b/template/Manifest.txt
@@ -0,0 +1,7 @@
+History.txt
+Manifest.txt
+README.txt
+Rakefile
+bin/<%= project %>
+lib/<%= project %>.rb
+test/test_<%= project %>.rb
diff --git a/template/README.txt b/template/README.txt
new file mode 100644
index 0000000..531df89
--- /dev/null
+++ b/template/README.txt
@@ -0,0 +1,48 @@
+= <%= project %>
+
+* <%= XIF %> (url)
+
+== DESCRIPTION:
+
+<%= XIF %> (describe your package)
+
+== FEATURES/PROBLEMS:
+
+* <%= XIF %> (list of features or problems)
+
+== SYNOPSIS:
+
+ <%= XIF %> (code sample of usage)
+
+== REQUIREMENTS:
+
+* <%= XIF %> (list of requirements)
+
+== INSTALL:
+
+* <%= XIF %> (sudo gem install, anything else)
+
+== LICENSE:
+
+(The MIT License)
+
+Copyright (c) <%= Time.new.strftime("%Y") %> <%= XIF %>
+
+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.
diff --git a/template/Rakefile b/template/Rakefile
new file mode 100644
index 0000000..7a59ce7
--- /dev/null
+++ b/template/Rakefile
@@ -0,0 +1,12 @@
+# -*- ruby -*-
+
+require 'rubygems'
+require 'hoe'
+require './lib/<%= project %>.rb'
+
+Hoe.new('<%= project %>', <%= klass %>::VERSION) do |p|
+ # p.rubyforge_name = '<%= project %>x' # if different than lowercase project name
+ # p.developer('<%= XIF %>', '<%= XIF %>@example.com')
+end
+
+# vim: syntax=Ruby
diff --git a/template/bin/file_name b/template/bin/file_name
new file mode 100755
index 0000000..1b4eff8
--- /dev/null
+++ b/template/bin/file_name
@@ -0,0 +1,3 @@
+#!/usr/bin/env ruby
+
+abort "you need to write me"
diff --git a/template/lib/file_name.rb b/template/lib/file_name.rb
new file mode 100644
index 0000000..2c5cda5
--- /dev/null
+++ b/template/lib/file_name.rb
@@ -0,0 +1,3 @@
+class <%= klass %>
+ VERSION = '1.0.0'
+end
diff --git a/template/test/test_file_name.rb b/template/test/test_file_name.rb
new file mode 100644
index 0000000..44fb2fa
--- /dev/null
+++ b/template/test/test_file_name.rb
@@ -0,0 +1,8 @@
+require "test/unit"
+require "<%= file_name %>"
+
+class Test<%= klass %> < Test::Unit::TestCase
+ def test_sanity
+ flunk "write tests or I will kneecap you"
+ end
+end