Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (29 sloc) 1.014 kB
require "rubygems"
require "rake/gempackagetask"
require "rake/rdoctask"
task :default => :package
spec = Gem::Specification.new do |s|
s.name = "geminabox"
s.version = "0.2.1"
s.summary = "Really simple rubygem hosting"
s.author = "Tom Lea"
s.email = "contrib@tomlea.co.uk"
s.homepage = "http://tomlea.co.uk/p/gem-in-a-box"
s.has_rdoc = true
s.extra_rdoc_files = %w(README.markdown)
s.rdoc_options = %w(--main README.markdown)
s.files = %w(README.markdown) + Dir.glob("{lib,public,views}/**/*")
s.require_paths = ["lib"]
s.add_dependency("sinatra")
s.add_dependency("builder")
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end
Rake::RDocTask.new do |rd|
rd.main = "README.markdown"
rd.rdoc_files.include("README.markdown", "lib/**/*.rb")
rd.rdoc_dir = "rdoc"
end
desc 'Clear out RDoc and generated packages'
task :clean => [:clobber_rdoc, :clobber_package]
Jump to Line
Something went wrong with that request. Please try again.