<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>Manifest</filename>
    </added>
    <added>
      <filename>lib/tasks/p4_git.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,6 @@
 .git_revision
 doc
 example/*.zuml.bak*
+coverage
+
 </diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -1,102 +1,56 @@
-
-######################################################################
-
-CURRENT_DIR = File.expand_path(File.dirname(__FILE__))
-
-######################################################################
-
-PKG_Name = 'red_steak'
-PKG_Author = 'Kurt Stephens'
-PKG_Email = 'ruby-red_steak@umleta.com'
-PKG_DESCRIPTION = %{RedSteak - A UML 2 Statemachine for Ruby.
-
-For more details, see:
-
-http://rubyforge.org/projects/red_steak
-http://redsteak.rubyforge.org/
-http://redsteak.rubyforge.org/files/README_txt.html
-
-}
-PKG_lib_ruby_dir = 'lib/ruby'
-PKG_manifest_reject = %r{example/.*/gems/.*/gems|example/doc|gen/rdoc}
-
-######################################################################
-
-
-$:.unshift &quot;#{CURRENT_DIR}/lib/ruby&quot;
-
 require 'rubygems'
-
-
-desc &quot;Runs tests&quot;
-task :default =&gt; [ :test ] do
-end
-
-desc &quot;Runs tests&quot;
-task :test do
-  sh &quot;mkdir -p doc/example&quot;
-  gem_bin_path = Gem.path.map{|x| &quot;#{x}/bin&quot;}
-  ENV['RUBYLIB'] = ($: + [ 'lib' ]) * ':'
-  Dir[ENV['test'] || 'test/*.spec'].each do | t |
-    sh &quot;PATH=#{gem_bin_path * ':'}:$PATH spec -f specdoc #{t}&quot;
+require 'rake'
+ 
+begin
+  require 'echoe'
+ 
+  Echoe.new('redsteak', '0.0.1') do |p|
+    p.rubyforge_name = 'redsteak'
+    p.summary = &quot;RedSteak - A UML 2 Statemachine for Ruby.&quot;
+    p.description = &quot;The official `github` command line helper for simplifying your GitHub experience.&quot;
+    p.url = &quot;http://redsteak.rubyforge.com/&quot;
+    p.author = ['Kurt Stephens']
+    p.email = &quot;ruby-redsteak@umleta.com&quot;
+    # p.dependencies = [&quot;launchy&quot;]
   end
+ 
+rescue LoadError =&gt; boom
+  puts &quot;You are missing a dependency required for meta-operations on this gem.&quot;
+  puts &quot;#{boom.to_s.capitalize}.&quot;
 end
-
-
-    ############################################################
-    # Doco
-
+ 
+# add spec tasks, if you have rspec installed
 begin
-  require 'rdoc/task'
-rescue LoadError
-  require 'rake/rdoctask'
+  require 'spec/rake/spectask'
+ 
+  SPEC_FILES = FileList['test/**/*.spec']
+  SPEC_OPTS = ['--color', '--backtrace']
+  Spec::Rake::SpecTask.new(&quot;spec&quot;) do |t|
+    t.spec_files = SPEC_FILES
+    t.spec_opts = SPEC_OPTS
+  end
+ 
+  task :test do
+    Rake::Task['spec'].invoke
+  end
+ 
+  Spec::Rake::SpecTask.new(&quot;rcov_spec&quot;) do |t|
+    t.spec_files = SPEC_FILES
+    t.spec_opts = SPEC_OPTS
+    t.rcov = true
+    t.rcov_opts = ['--exclude', '^spec,/gems/']
+  end
 end
 
-Rake::RDocTask.new(:docs) do |rd|
-  name = 'red_steak'
-  version = '0.1'
-  rubyforge_name = name
-  readme_file = 'README.txt'
-  spec = OpenStruct.new(:require_paths =&gt; [ 'lib' ], :extra_rdoc_files =&gt; [ ])
-  WINDOZE = false
-
-      rd.main = readme_file
-      rd.options &lt;&lt; '-d' if (`which dot` =~ /\/dot/) unless
-        ENV['NODOT'] || WINDOZE
-      rd.rdoc_dir = 'doc'
-
-      rd.rdoc_files += spec.require_paths
-      rd.rdoc_files += spec.extra_rdoc_files
-
-      title = &quot;#{name}-#{version} Documentation&quot;
-      title = &quot;#{rubyforge_name}'s &quot; + title if rubyforge_name != name
-
-      rd.options &lt;&lt; &quot;-S&quot; &lt;&lt; '-N'
-      rd.options &lt;&lt; &quot;-t&quot; &lt;&lt; title
-    end
-
-
-task :docs =&gt; :test
-
-desc &quot;Records current git commit id to .git_revision for p4 check-in&quot;
-task :git_revision do
-  git_revision
-end
+directory 'doc/example'
 
-def git_revision 
-  sh &quot;git log | head -1 &gt; .git_revision&quot;
+task :test =&gt; [ Rake::Task['doc/example'], :rcov_spec ] do
+  # NOTHING
 end
 
-desc &quot;p4 edit; git pull origin master; p4 revert -a&quot;
-task :p4_git_pull do
-  sh &quot;p4 edit ...&quot;
-  sh &quot;git pull origin master&quot;
-  git_revision
-  sh &quot;find . -type f | grep -v ./.git | xargs p4 add&quot;
-  sh &quot;p4 revert example/...&quot;
-  sh &quot;p4 revert doc/...&quot;
-  sh &quot;p4 revert -a ...&quot;
+task :docs =&gt; :test do
+  # NOTHING
 end
 
+require 'lib/tasks/p4_git'
 
-# require &quot;#{CURRENT_DIR}/rake_helper.rb&quot;</diff>
      <filename>Rakefile</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>Manifest.txt</filename>
    </removed>
    <removed>
      <filename>Releases.txt</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>df4d1fbffcd54189a565b0204ef79fdd10d7fbb1</id>
    </parent>
  </parents>
  <author>
    <name>Kurt Stephens</name>
    <email>ks.github@kurtstephens.com</email>
  </author>
  <url>http://github.com/kstephens/red_steak/commit/50aa87d9de54b210851e064aa5911d712ce3d980</url>
  <id>50aa87d9de54b210851e064aa5911d712ce3d980</id>
  <committed-date>2009-05-03T04:47:26-07:00</committed-date>
  <authored-date>2009-05-03T04:47:26-07:00</authored-date>
  <message>Use Echoe to simplify Rakefile.
TODO: Move test/*.spec to spec/*_spec.rb.</message>
  <tree>5b982012a43b30b072adcca58ad31296bf6e3732</tree>
  <committer>
    <name>Kurt Stephens</name>
    <email>ks.github@kurtstephens.com</email>
  </committer>
</commit>
