require 'rubygems'
require 'rake'

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.name = "mutter"
    gem.summary = %Q{the tiny CLI library}
    gem.description = %Q{the tiny command-line interface library with lots of style}
    gem.email = "self@cloudhead.net"
    gem.homepage = "http://github.com/cloudhead/mutter"
    gem.authors = ["cloudhead"]
  end
  Jeweler::GemcutterTasks.new
rescue LoadError
  puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end

require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new("spec") do |t|
  t.pattern   = 'spec/**/*_spec.rb'
  t.rspec_opts = ['--color', '--format=documentation']
end

task :test do
  Rake::Task['spec'].invoke
end

task :default => :spec
