Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (47 sloc) 1.65 KB
require 'rubygems'
require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "interfacelift"
gem.summary = %Q{Installs templates in rails applications}
gem.description = %Q{Installs themes and other layout/interface related resources}
gem.email = [ "michel@re-invention.nl", "jeroen.v.schagen@gmail.com" ]
gem.homepage = "http://github.com/michel/interfacelift"
gem.authors = ["Michel de Graaf","Jeroen van Schagen"]
gem.add_dependency "commander"
gem.add_dependency "git"
gem.add_development_dependency "thoughtbot-shoulda"
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
require 'spec/rake/spectask'
desc "Run all specs"
Spec::Rake::SpecTask.new('spec') do |t|
t.spec_files = FileList['spec/*_spec.rb']
t.spec_opts = ['--options', "\"spec/spec.opts\""]
end
desc "Run all specs with RCov"
Spec::Rake::SpecTask.new('specs_with_rcov') do |t|
t.spec_files = FileList['spec/*_spec.rb']
t.rcov = true
t.spec_opts = ['--options', "\"spec/spec.opts\""]
t.rcov_opts = ['--exclude', 'spec']
end
task :test => :check_dependencies
task :default => :test
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
if File.exist?('VERSION')
version = File.read('VERSION')
else
version = ""
end
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "interfacelift #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end