<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>CHANGELOG</filename>
    </added>
    <added>
      <filename>LICENSE</filename>
    </added>
    <added>
      <filename>Manifest</filename>
    </added>
    <added>
      <filename>README</filename>
    </added>
    <added>
      <filename>tasks/deployment.rake</filename>
    </added>
    <added>
      <filename>tasks/testing.rake</filename>
    </added>
    <added>
      <filename>tasks/transcoding.rake</filename>
    </added>
    <added>
      <filename>tasks/website.rake</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1 +1,2 @@
 spec/spec.log
+.DS_Store</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -1,185 +1,59 @@
-require 'rubygems'
-require 'rake'
-require 'rake/clean'
-require 'rake/testtask'
-require 'rake/packagetask'
-require 'rake/gempackagetask'
-require 'rake/rdoctask'
-require 'rake/contrib/rubyforgepublisher'
-require 'fileutils'
-require 'hoe'
+require &quot;rubygems&quot;
+require &quot;fileutils&quot;
+require &quot;echoe&quot;
+
 begin
-  require 'spec/rake/spectask'
+  require &quot;spec/rake/spectask&quot;
 rescue LoadError
-  puts 'To use rspec for testing you must install rspec gem:'
-  puts '$ sudo gem install rspec'
+  puts &quot;To use rspec for testing you must install rspec gem:&quot;
+  puts &quot;$ sudo gem install rspec&quot;
   exit
 end
 
-include FileUtils
-require File.join(File.dirname(__FILE__), 'lib', 'rvideo', 'version')
-
-AUTHOR = 'Jonathan Dahl (Slantwise Design)'  # can also be an array of Authors
-EMAIL = &quot;jon@slantwisedesign.com&quot;
-DESCRIPTION = &quot;Inspect and process video or audio files&quot;
-GEM_NAME = 'rvideo' # what ppl will type to install your gem
+__HERE__ = File.dirname(__FILE__)
+require File.join(__HERE__, 'lib', 'rvideo', 'version')
+require File.join(__HERE__, 'lib', 'rvideo')
 
-@config_file = &quot;~/.rubyforge/user-config.yml&quot;
-@config = nil
-def rubyforge_username
-  unless @config
-    begin
-      @config = YAML.load(File.read(File.expand_path(@config_file)))
-    rescue
-      puts &lt;&lt;-EOS
-ERROR: No rubyforge config file found: #{@config_file}&quot;
-Run 'rubyforge setup' to prepare your env for access to Rubyforge
- - See http://newgem.rubyforge.org/rubyforge.html for more details
-      EOS
-      exit
-    end
-  end
-  @rubyforge_username ||= @config[&quot;username&quot;]
-end
+###
 
-RUBYFORGE_PROJECT = 'rvideo' # The unix name for your project
-HOMEPATH = &quot;http://#{RUBYFORGE_PROJECT}.rubyforge.org&quot;
-DOWNLOAD_PATH = &quot;http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}&quot;
+AUTHOR = [
+  &quot;Jonathan Dahl (Slantwise Design)&quot;,
+  &quot;Seth Thomas Rasmussen&quot;
+]
+EMAIL       = &quot;jon@slantwisedesign.com&quot;
+DESCRIPTION = &quot;Inspect and transcode video and audio files.&quot;
 
 NAME = &quot;rvideo&quot;
-REV = nil 
-# UNCOMMENT IF REQUIRED: 
-# REV = `svn info`.each {|line| if line =~ /^Revision:/ then k,v = line.split(': '); break v.chomp; else next; end} rescue nil
-VERS = Rvideo::VERSION::STRING + (REV ? &quot;.#{REV}&quot; : &quot;&quot;)
-CLEAN.include ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store']
-RDOC_OPTS = ['--quiet', '--title', 'rvideo documentation',
-    &quot;--opname&quot;, &quot;index.html&quot;,
-    &quot;--line-numbers&quot;, 
-    &quot;--main&quot;, &quot;README&quot;,
-    &quot;--inline-source&quot;]
 
-class Hoe
-  def extra_deps 
-    @extra_deps.reject { |x| Array(x).first == 'hoe' } 
-  end 
-end
+REV    = `git log -n1 --pretty=oneline | cut -d' ' -f1`.strip
+BRANCH = `git branch | grep '*' | cut -d' ' -f2`.strip
+
+VERS = &quot;#{RVideo::VERSION::STRING} (#{BRANCH} @ #{REV})&quot;
 
-# Generate all the Rake tasks
-# Run 'rake -T' to see list of generated tasks (from gem root directory)
-hoe = Hoe.new(GEM_NAME, VERS) do |p|
-  p.author = AUTHOR 
+Echoe.new NAME do |p|
+  p.author      = AUTHOR 
   p.description = DESCRIPTION
-  p.email = EMAIL
-  p.summary = DESCRIPTION
-  p.url = HOMEPATH
-  p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
-  p.test_globs = [&quot;test/**/test_*.rb&quot;]
-  p.clean_globs |= CLEAN  #An array of file patterns to delete on clean.
+  p.email       = EMAIL
+  p.summary     = DESCRIPTION
+  p.url         = &quot;http://github.com/greatseth/rvideo&quot;
   
-  # == Optional
-  p.changes = p.paragraphs_of(&quot;History.txt&quot;, 0..1).join(&quot;\n\n&quot;)
-  #p.extra_deps = []     # An array of rubygem dependencies [name, version], e.g. [ ['active_support', '&gt;= 1.3.1'] ]
-  #p.spec_extras = {}    # A hash of extra values to set in the gemspec.
-end
-
-CHANGES = hoe.paragraphs_of('History.txt', 0..1).join(&quot;\n\n&quot;)
-PATH    = (RUBYFORGE_PROJECT == GEM_NAME) ? RUBYFORGE_PROJECT : &quot;#{RUBYFORGE_PROJECT}/#{GEM_NAME}&quot;
-hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')
-
-desc 'Generate website files'
-task :website_generate do
-  Dir['website/**/*.txt'].each do |txt|
-    sh %{ ruby scripts/txt2html #{txt} &gt; #{txt.gsub(/txt$/,'html')} }
-  end
-end
-
-desc 'Upload website files to rubyforge'
-task :website_upload do
-  host = &quot;#{rubyforge_username}@rubyforge.org&quot;
-  remote_dir = &quot;/var/www/gforge-projects/#{PATH}/&quot;
-  local_dir = 'website'
-  sh %{rsync -aCv #{local_dir}/ #{host}:#{remote_dir}}
-end
-
-desc 'Generate and upload website files'
-task :website =&gt; [:website_generate, :website_upload, :publish_docs]
-
-desc 'Release the website and new gem version'
-task :deploy =&gt; [:check_version, :website, :release] do
-  puts &quot;Remember to create SVN tag:&quot;
-  puts &quot;svn copy svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/trunk &quot; +
-    &quot;svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/tags/REL-#{VERS} &quot;
-  puts &quot;Suggested comment:&quot;
-  puts &quot;Tagging release #{CHANGES}&quot;
-end
-
-desc 'Runs tasks website_generate and install_gem as a local deployment of the gem'
-task :local_deploy =&gt; [:website_generate, :install_gem]
-
-task :check_version do
-  unless ENV['VERSION']
-    puts 'Must pass a VERSION=x.y.z release version'
-    exit
-  end
-  unless ENV['VERSION'] == VERS
-    puts &quot;Please update your version.rb to match the release version, currently #{VERS}&quot;
-    exit
-  end
-end
-
-#require 'rake'
-#require 'spec/rake/spectask'
-require File.dirname(__FILE__) + '/lib/rvideo'
-
-namespace :spec do
-  desc &quot;Run Unit Specs&quot;
-  Spec::Rake::SpecTask.new(&quot;units&quot;) do |t| 
-    t.spec_files = FileList['spec/units/**/*.rb']
-    t.spec_opts = %w( --color )
-  end
-
-  desc &quot;Run Integration Specs&quot;
-  Spec::Rake::SpecTask.new(&quot;integrations&quot;) do |t| 
-    t.spec_files = FileList['spec/integrations/**/*.rb']
-    t.spec_opts = %w( --color )
-  end
+  p.runtime_dependencies     = [&quot;activesupport&quot;]
+  p.development_dependencies = [&quot;rspec&quot;]
+  
+  p.rdoc_options = [
+    &quot;--quiet&quot;,
+    &quot;--title&quot;, &quot;rvideo documentation&quot;,
+    &quot;--opname&quot;, &quot;index.html&quot;,
+    &quot;--line-numbers&quot;, 
+    &quot;--main&quot;, &quot;README&quot;,
+    &quot;--inline-source&quot;
+  ]
 end
 
-desc &quot;Run unit and integration specs&quot;
-task :spec =&gt; [&quot;spec:units&quot;, &quot;spec:integrations&quot;]
-
-task :default =&gt; :spec
+# Load supporting Rake files
+Dir[File.dirname(__FILE__) + &quot;/tasks/*.rake&quot;].each { |t| load t }
 
-desc &quot;Process a file&quot;
-task(:transcode) do
-  RVideo::Transcoder.logger = Logger.new(STDOUT)
-  transcode_single_job(ENV['RECIPE'], ENV['FILE'])
-end
-
-desc &quot;Batch transcode files&quot;
-task(:batch_transcode) do
-  RVideo::Transcoder.logger = Logger.new(File.dirname(__FILE__) + '/test/output.log')
-  f = YAML::load(File.open(File.dirname(__FILE__) + '/test/batch_transcode.yml'))
-  recipes = f['recipes']
-  files = f['files']
-  files.each do |f|
-    file = &quot;#{File.dirname(__FILE__)}/test/files/#{f}&quot;
-    recipes.each do |recipe|
-      transcode_single_job(recipe, file)
-    end
-  end
-end
+# Echo defines the :default task to run the :test task
+task :test =&gt; :spec
 
-def transcode_single_job(recipe, input_file)
-  puts &quot;Transcoding #{File.basename(input_file)} to #{recipe}&quot;
-  r = YAML::load(File.open(File.dirname(__FILE__) + '/test/recipes.yml'))[recipe]
-  transcoder = RVideo::Transcoder.new(input_file)
-  output_file = &quot;#{TEMP_PATH}/#{File.basename(input_file, &quot;.*&quot;)}-#{recipe}.#{r['extension']}&quot;
-  FileUtils.mkdir_p(File.dirname(output_file))
-  begin
-    transcoder.execute(r['command'], {:output_file =&gt; output_file}.merge(r))
-    puts &quot;Finished #{File.basename(output_file)} in #{transcoder.total_time}&quot;
-  rescue StandardError =&gt; e
-    puts &quot;Error transcoding #{File.basename(output_file)} - #{e.class} (#{e.message}\n#{e.backtrace})&quot;
-  end
-end
+puts &quot;#{NAME} #{VERS}&quot;</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
-module Rvideo #:nodoc:
+module RVideo #:nodoc:
   module VERSION #:nodoc:
     MAJOR = 0
     MINOR = 9</diff>
      <filename>lib/rvideo/version.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>History.txt</filename>
    </removed>
    <removed>
      <filename>License.txt</filename>
    </removed>
    <removed>
      <filename>Manifest.txt</filename>
    </removed>
    <removed>
      <filename>README.txt</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>5e60a970502c7769033385c2c09621da7fbc2907</id>
    </parent>
  </parents>
  <author>
    <name>Seth Thomas Rasmussen</name>
    <email>sethrasmussen@gmail.com</email>
  </author>
  <url>http://github.com/greatseth/rvideo/commit/9f3a08ab9c9f24d3f4c4087149602f071619c26d</url>
  <id>9f3a08ab9c9f24d3f4c4087149602f071619c26d</id>
  <committed-date>2009-02-13T10:34:33-08:00</committed-date>
  <authored-date>2009-02-13T10:34:33-08:00</authored-date>
  <message>moving from Hoe to Echoe for package utilities

- general tasks including running specs all work
- website and rubyforge publishing are probably broken,
  going to look at publishing website as github pages</message>
  <tree>312b829850aaae5be4e3ffe5266c88406033d7d3</tree>
  <committer>
    <name>Seth Thomas Rasmussen</name>
    <email>sethrasmussen@gmail.com</email>
  </committer>
</commit>
