Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

41 lines (35 sloc) 0.952 kb
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
desc 'Default: run unit tests.'
task :default => :test
desc 'Run unit tests'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
desc 'Generate documentation'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'EncodedAttachment'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end
namespace :gem do
desc 'Build gem'
task :build => :cleanup do
system "gem build encoded_attachment.gemspec"
end
desc 'Build and install gem'
task :install => :build do
require 'lib/encoded_attachment/version'
system "gem install encoded_attachment-#{EncodedAttachment::VERSION}.gem"
end
desc 'Remove built gem(s)'
task :cleanup do
system 'rm encoded_attachment-*.gem'
end
end
Jump to Line
Something went wrong with that request. Please try again.