Sha256: ce340e7d31f1fe2eda7239ed71a74431f3689eb4e0461d0fb925191e476fe051

Contents?: true

Size: 967 Bytes

Versions: 2

Compression:

Stored size: 967 Bytes

Contents

require "rake/testtask"
load "Rakefile.cloud" if File.exist? "Rakefile.cloud"

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.description = "Mediainfo is a class wrapping the mediainfo CLI (http://mediainfo.sourceforge.net)"
  p.author = "Seth Thomas Rasmussen"
  p.email = "sethrasmussen@gmail.com"
  p.url = "http://greatseth.com"
  p.ignore_pattern = %w( test/**/* )
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
greatseth-mediainfo-0.5.1 Rakefile
mediainfo-0.5.1 Rakefile