require 'rake/rdoctask' require 'rubygems/package_task' require 'rspec/core/rake_task' task :default => :spec desc "Run all specs in spec directory" RSpec::Core::RakeTask.new(:spec) do |t| t.pattern = "./spec/**/*_spec.rb" # don't need this, it's default. end Rake::RDocTask.new do |rd| rd.main = "README" rd.rdoc_dir = 'doc' rd.rdoc_files.include("README", "**/*.rb") end begin require 'jeweler' Jeweler::Tasks.new do |s| s.name = %q{diffy} s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["Sam Goldstein"] s.description = %q{Convenient diffing in ruby} s.email = %q{sgrock@gmail.com} s.has_rdoc = true s.homepage = "http://github.com/samg/diffy/tree/master" s.rdoc_options = ["--inline-source", "--charset=UTF-8"] s.require_paths = ["lib"] s.summary = %q{A convenient way to diff string in ruby} end rescue LoadError puts "Jeweler not available." end