Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (27 sloc) 740 Bytes
# Available commands:
# Testing the specification:
# bundle exec rake spec
# Building a gem package from source:
# bundle exec rake package
# Create documentation files (html):
# bundle exec rake rdoc
require 'rubygems'
require 'rubygems/package_task'
require 'rdoc/task'
require 'rspec/core/rake_task'
# Build gem:
gem_spec = eval(File.read('dicom.gemspec'))
Gem::PackageTask.new(gem_spec) do |pkg|
pkg.gem_spec = gem_spec
pkg.need_tar = true
end
# RSpec 2:
RSpec::Core::RakeTask.new do |t|
t.rspec_opts = ["-c", "-f progress", "-r ./spec/spec_helper.rb"]
t.pattern = 'spec/**/*_spec.rb'
end
# Build documentation:
RDoc::Task.new do |rd|
rd.main = "README.rdoc"
rd.rdoc_files.include("README.rdoc", "lib/**/*.rb")
end