Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v0.9.4
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (25 sloc) 0.837 kb
require 'rubygems'
require 'hoe'
require './lib/grit.rb'
Hoe.new('grit', Grit::VERSION) do |p|
p.author = 'Tom Preston-Werner'
p.email = 'tom@rubyisawesome.com'
p.summary = 'Object model interface to a git repo'
p.description = p.paragraphs_of('README.txt', 2..2).join("\n\n")
p.url = p.paragraphs_of('README.txt', 0).first.split(/\n/)[2..-1].map { |u| u.strip }
p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
p.extra_deps << ['mime-types']
end
desc "Open an irb session preloaded with this library"
task :console do
sh "irb -rubygems -r ./lib/grit.rb"
end
task :coverage do
system("rm -fr coverage")
system("rcov test/test_*.rb")
system("open coverage/index.html")
end
desc "Upload site to Rubyforge"
task :site do
sh "scp -r doc/* mojombo@grit.rubyforge.org:/var/www/gforge-projects/grit"
end
Jump to Line
Something went wrong with that request. Please try again.