Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (37 sloc) 1.12 KB
require 'rubygems'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require 'rake/version_task'
require 'spec/rake/spectask'
spec = Gem::Specification.new do |s|
s.name = 'monkey'
s.version = Version.current
s.summary = 'A smart, scoped monkeypatching library'
s.homepage = 'http://github.com/stouset/monkey-patches'
s.author = 'Stephen Touset'
s.email = 'stephen@touset.org'
s.files = Dir['[A-Z]*', 'lib/**/*.rb', 'spec/**/*']
s.extra_rdoc_files = Dir['*.rdoc']
s.rdoc_options = %w{ --main README.rdoc }
s.add_dependency 'RubyInline'
s.add_development_dependency 'version'
s.add_development_dependency 'rspec'
end
Rake::GemPackageTask.new(spec) do |gem|
gem.need_tar = true
end
Rake::RDocTask.new do |doc|
doc.title = "monkey #{Version.current}"
doc.rdoc_dir = 'doc'
doc.main = 'README.rdoc'
doc.rdoc_files.include('*.rdoc')
doc.rdoc_files.include('lib/**/*.rb')
end
Spec::Rake::SpecTask.new(:spec) do |task|
task.spec_files = FileList['spec/**/*_spec.rb']
end
Rake::VersionTask.new do |v|
v.with_git_tag = true
v.with_gemspec = spec
end
task :default => :spec