Find file
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (33 sloc) 1.07 KB
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
desc 'Default: run unit tests.'
task :default => :test
desc 'Test the expiring_memory_store plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
desc 'Generate documentation for the expiring_memory_store plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'ExpiringMemoryStore'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end
begin
require 'jeweler'
project_name = 'expiring_memory_store'
Jeweler::Tasks.new do |gem|
gem.name = project_name
gem.summary = "Fallback when original is not present or somethings not right."
gem.email = "dunno@dunno.com"
gem.homepage = "http://github.com/matthewrudy/#{project_name}"
gem.authors = ["Matthew Rudy Jacobs"]
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install jeweler"
end