Sha256: d5c7586da38042a2024351a955ad659d21473c0f0f19e1359dca508ad27e019f

Contents?: true

Size: 810 Bytes

Versions: 1

Compression:

Stored size: 810 Bytes

Contents

require "rake/testtask"

Rake::TestTask.new do |t|
  t.libs << "test"
  t.test_files = FileList["test/*_test.rb"]
  t.verbose = true
end

task :default => :test

namespace :mediainfo do
  task :fixture do
    unless file = ENV["file"]
      puts "Usage: rake mediainfo:fixture file=/path/to/file"
      exit
    end
    fixture = File.expand_path "./test/fixtures/#{File.basename file}.txt"
    system "mediainfo #{file} > #{fixture}"
    if File.exist? fixture
      puts "Generated fixture #{fixture}."
    else
      puts "Error generating fixture. #{fixture} not created."
    end
  end
end

require "rubygems"
require "echoe"

Echoe.new "mediainfo" do |p|
  p.author = "Seth Thomas Rasmussen"
  p.email = "sethrasmussen@gmail.com"
  p.url = "http://greatseth.com"
  p.ignore_pattern = %w( test/**/* )
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
greatseth-mediainfo-0.1 Rakefile